diff options
author | wiz <wiz@pkgsrc.org> | 2001-08-04 09:52:26 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-08-04 09:52:26 +0000 |
commit | deb8b4d3ef09b273cad6b7e01c859a1274624ff6 (patch) | |
tree | d93c5380c26c53912b0ff6ab24f6803d30c2b74c /devel/id-utils/Makefile | |
parent | 6743f18727fde20d65cb005d3b4c4e32a91576d9 (diff) | |
download | pkgsrc-deb8b4d3ef09b273cad6b7e01c859a1274624ff6.tar.gz |
Some fixes provided by Stoned Elipot in pkg/13340:
. Use ${PKGLOCALEDIR} instead of share
. No more additional files installed depending on whether {x}emacs is
installed or not -- define USE_EMACS or USE_XEMACS if you want to have
.elc files installed.
. buildlinkify
Diffstat (limited to 'devel/id-utils/Makefile')
-rw-r--r-- | devel/id-utils/Makefile | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/devel/id-utils/Makefile b/devel/id-utils/Makefile index fa04db98ff0..037aad73f04 100644 --- a/devel/id-utils/Makefile +++ b/devel/id-utils/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2001/05/17 08:38:43 abs Exp $ +# $NetBSD: Makefile,v 1.16 2001/08/04 09:52:26 wiz Exp $ # FreeBSD Id: Makefile,v 1.4 1996/11/18 10:22:47 asami Exp # @@ -10,11 +10,58 @@ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.gnu.org/software/idutils/idutils.html COMMENT= Classic Berkeley gid/lid tools for looking up variables in code +BUILD_DEPENDS+= automake>=1.4:../../devel/automake + BUILD_USES_MSGFMT= yes +BUILD_USES_GETTEXT_M4= yes +USE_BUILDLINK_ONLY= yes INFO_FILES= id-utils.info GNU_CONFIGURE= yes USE_GMAKE= yes -USE_LIBINTL= yes +.include "../../mk/bsd.prefs.mk" + +.ifdef USE_XEMACS +EMACS= ${LOCALBASE}/bin/xemacs +BUILD_DEPENDS+= xemacs-*:../editors/xemacs +BUILD_DEPENDS+= xemacs-packages-*:../editors/xemacs-packages +.elifdef USE_EMACS +EMACS= ${LOCALBASE}/bin/emacs +BUILD_DEPENDS+= emacs-*:../../editors/emacs +.endif + +# we end-up installing .el file there whenever we use emacs or xemacs +LISPDIR?= share/emacs/site-lisp +# install byte-compiled file here whenever we use emacs or xemacs... +.if defined(USE_EMACS) || defined(USE_XEMACS) +CLISPDIR= ${LISPDIR} +.else +# ...or don't install it at all +CLISPDIR?= '@comment ' +.endif +# if not already, set this to the *full* pathname to false command +# so configure won't search further for emacs +EMACS?= ${FALSE:S|^false$|/usr/bin/false|} + +CONFIGURE_ENV+= EMACS=${EMACS} +BUILD_DEFS+= EMACS + +PLIST_SUBST+= LISPDIR=${LISPDIR} +PLIST_SUBST+= CLISPDIR=${CLISPDIR} + +post-patch: + cd ${WRKSRC}/lisp && ${RM} -f elisp-comp + +# we manually copy missing and elisp-comp scripts in the sources +# to get around an apparent bug (??) in automake... +pre-configure: + cd ${WRKSRC} && ${LOCALBASE}/bin/aclocal && \ + ${LOCALBASE}/bin/autoheader && \ + ${CP} ${LOCALBASE}/share/automake/missing ./missing && \ + ${CP} ${LOCALBASE}/share/automake/elisp-comp ./lisp/elisp-comp && \ + ${LOCALBASE}/bin/automake --gnu && \ + ${LOCALBASE}/bin/autoconf + +.include "../../devel/gettext-lib/buildlink.mk" .include "../../mk/bsd.pkg.mk" |