summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-17 22:13:56 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-17 22:13:56 +0000
commit8e69f20134b817afd529caa1b0481384aef6496d (patch)
tree6c20788ed946387b1e6fef4da990f166debb3ffe
parentdbede5c88790f72d14b56fe12a16c5d514474674 (diff)
downloadpkgsrc-8e69f20134b817afd529caa1b0481384aef6496d.tar.gz
Modular Xorg and DESTDIR support.
-rw-r--r--lang/squeak/Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/lang/squeak/Makefile b/lang/squeak/Makefile
index 9f138736860..e6f48f5715e 100644
--- a/lang/squeak/Makefile
+++ b/lang/squeak/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.31 2007/03/25 05:31:57 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2007/08/17 22:13:56 joerg Exp $
#
DISTNAME= Squeak-3.6-3
PKGNAME= squeak-3.6.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= lang
MASTER_SITES= http://squeakvm.org/unix/release/
DISTFILES= Squeak-3.6-3.src.tar.gz Squeak-3.6-5429.image.tar.gz
@@ -13,6 +13,8 @@ MAINTAINER= fredb@NetBSD.org
HOMEPAGE= http://squeakvm.org/unix/
COMMENT= Full Smalltalk 80 with portability to UN*X, Mac, and Windows
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= automake14
@@ -24,7 +26,6 @@ BUILD_DIRS= ${WRKDIR}/build
CONFIGURE_DIRS= ${WRKDIR}/build
CONFIGURE_SCRIPT= ${WRKSRC}/platforms/unix/config/configure
DIST_SUBDIR= squeak
-INSTALLATION_DIRS= ${WRKDIR}/build
ONLY_FOR_PLATFORM= NetBSD-*-*
@@ -32,19 +33,22 @@ SQUEAK_CHANGES= ${DISTNAME}/usr/local/lib/squeak/Squeak3.6-5429.changes.gz
SQUEAK_IMAGE= ${DISTNAME}/usr/local/lib/squeak/Squeak3.6-5429.image.gz
SQUEAK_SOURCES= Squeak-3/usr/local/lib/squeak/SqueakV3.sources
+INSTALLATION_DIRS= bin lib/squeak
+INSTALL_ENV+= ROOT=${DESTDIR:Q}
+
pre-configure:
cd ${WRKSRC}/platforms/unix/config \
&& ${SETENV} PATH=${PREFIX}/bin:${PATH} ${MAKE} configure
${MKDIR} ${CONFIGURE_DIRS}
post-install:
- ${INSTALL_DATA} ${WRKDIR}/${SQUEAK_CHANGES} ${PREFIX}/lib/squeak/
- ${INSTALL_DATA} ${WRKDIR}/${SQUEAK_IMAGE} ${PREFIX}/lib/squeak/
- ${INSTALL_DATA} ${WRKDIR}/${SQUEAK_SOURCES} ${PREFIX}/lib/squeak/
- cd ${PREFIX}/lib/squeak \
+ ${INSTALL_DATA} ${WRKDIR}/${SQUEAK_CHANGES} ${DESTDIR}${PREFIX}/lib/squeak/
+ ${INSTALL_DATA} ${WRKDIR}/${SQUEAK_IMAGE} ${DESTDIR}${PREFIX}/lib/squeak/
+ ${INSTALL_DATA} ${WRKDIR}/${SQUEAK_SOURCES} ${DESTDIR}${PREFIX}/lib/squeak/
+ cd ${DESTDIR}${PREFIX}/lib/squeak \
&& ${LN} -s ${SQUEAK_CHANGES:C/.*\///} squeak.changes.gz \
&& ${LN} -s ${SQUEAK_IMAGE:C/.*\///} squeak.image.gz
- ${INSTALL_SCRIPT} ${INSTALLATION_DIRS}/inisqueak ${PREFIX}/bin/
+ ${INSTALL_SCRIPT} ${WRKDIR}/build/inisqueak ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.prefs.mk"
@@ -52,7 +56,12 @@ post-install:
CONFIGURE_ARGS+= --enable-mpg-mmx
.endif
+CONFIGURE_ARGS+= --x-libraries=${X11BASE}
+
.include "../../audio/nas/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
-.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"