diff options
author | jlam <jlam@pkgsrc.org> | 2002-06-23 05:13:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-06-23 05:13:10 +0000 |
commit | 8563318b2d7f4748ab76343c77a8f98ddc7cebfc (patch) | |
tree | 62c03ed03d413bcc4184791ee938fbb23297e9c9 /lang/kaffe/Makefile | |
parent | 0c6c7bc89b1bf52809f527fb30602b29098796a9 (diff) | |
download | pkgsrc-8563318b2d7f4748ab76343c77a8f98ddc7cebfc.tar.gz |
* Properly buildlinkify,
* use GNU_CONFIGURE_PREFIX instead of HAS_CONFIGURE workaround,
* and fix dynamic loading on NetBSD ELF platforms by explicitly linking
libc.so into the dynamically loadable modules. This requires bumping
the PKGREVISION to 2.
Diffstat (limited to 'lang/kaffe/Makefile')
-rw-r--r-- | lang/kaffe/Makefile | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/lang/kaffe/Makefile b/lang/kaffe/Makefile index a302df05c84..dc5023cece2 100644 --- a/lang/kaffe/Makefile +++ b/lang/kaffe/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.37 2002/03/13 17:37:21 fredb Exp $ +# $NetBSD: Makefile,v 1.38 2002/06/23 05:13:10 jlam Exp $ # DISTNAME= kaffe-1.0.6 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= lang MASTER_SITES= ftp://ftp.kaffe.org/pub/kaffe/ @@ -17,22 +17,34 @@ LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig ONLY_FOR_PLATFORM= *-*-arm32 *-*-i386 *-*-m68k *-*-mips* *-*-sparc -HAS_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${PREFIX}/kaffe -CONFIGURE_ARGS+= --with-rtlibraries="${LOCALBASE}/lib ${X11BASE}/lib" +GNU_CONFIGURE= yes +GNU_CONFIGURE_PREFIX= ${PREFIX}/kaffe +CONFIGURE_ARGS+= --with-includes="" +CONFIGURE_ARGS+= --with-libraries="" +CPPFLAGS+= -Dunix -CPPFLAGS+= -Dunix -I${LOCALBASE}/include -I${X11BASE}/include +.include "../../mk/bsd.prefs.mk" + +.if (${OPSYS} == "NetBSD") && (${OBJECT_FMT} == "ELF") +# +# We need to explicitly link libkaffe*.so with libc.so so that libc symbols +# are resolved correctly when libkaffe*.so are dynamically loaded. +# +CONFIGURE_ENV+= VM_LIBS="-lc" +.endif post-install: ${INSTALL_DATA} ${WRKSRC}/license.terms \ ${PREFIX}/kaffe/share test: - @cd ${WRKSRC}/test && ${MAKE} check + @cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} check .include "../../devel/gmp/buildlink.mk" .include "../../devel/zlib/buildlink.mk" .include "../../graphics/jpeg/buildlink.mk" .include "../../graphics/libungif/buildlink.mk" .include "../../graphics/png/buildlink.mk" +.include "../../mk/x11.buildlink.mk" + .include "../../mk/bsd.pkg.mk" |