Subject: Zenicb still has USE_XEMACS
To: None <tech-pkg@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: tech-pkg
Date: 09/12/2005 09:45:25
Hi folks,

I notice that my old USE_XEMACS=YES setup did not work anymore in chat/zenicb.
I tried converting the pkg Makefile to the new world order, but something
must be wrong still (xemacs fails to find zenicb.el).

Below is my try on the Makefile. Any hints?

Btw: anyone remembers why USE_XEMACS is passed to the Makefile? Doesn't realy
make sense to me.

Martin

--8<--
# $NetBSD: Makefile,v 1.16 2005/08/28 04:25:28 uebayasi Exp $

DISTNAME=		zenicb-19981202
PKGNAME=		${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=		2
CATEGORIES=		chat
MASTER_SITES=		${MASTER_SITE_LOCAL}

MAINTAINER=		tech-pkg@NetBSD.org
COMMENT=		ICB client for Emacs

NO_SRC_ON_FTP=		Already in MASTER_SITE_LOCAL

.include "../../mk/emacs.mk"

EMACS_VERSIONS_ACCEPTED=	emacs21 emacs21nox emacs20 xemacs214 xemacs215

.if EMACS_FLAVOR=="xemacs"
MAKEFLAGS+=		USE_XEMACS=${USE_XEMACS}
.endif

#PLIST_SUBST+=		ELISPDIR=${ELISPDIR}

do-build:

do-install:
	@${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/zenicb
	@for file in ${WRKSRC}/src/*.el; do \
		j="${INSTALL_DATA} $$file ${EMACS_LISPPREFIX}/zenicb"; \
		${ECHO} $$j; $$j; \
	done

.include "../../mk/bsd.pkg.mk"