pkgsrc/lang/squeak/Makefile
2006-03-09 21:04:39 +00:00

58 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.30 2006/03/09 21:04:44 jlam Exp $
#
DISTNAME= Squeak-3.6-3
PKGNAME= squeak-3.6.3
PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://www-sor.inria.fr/~piumarta/squeak/unix/release/
DISTFILES= Squeak-3.6-3.src.tar.gz Squeak-3.6-5429.image.tar.gz
DISTFILES+= Squeak-3.sources.tar.gz
MAINTAINER= fredb@NetBSD.org
HOMEPAGE= http://www-sor.inria.fr/~piumarta/squeak/
COMMENT= Full Smalltalk 80 with portability to UN*X, Mac, and Windows
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= automake14
AUTOCONF_REQD= 2.57
AUTOMAKE_REQD= 1.4.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-*-*
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
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 \
&& ${LN} -s ${SQUEAK_CHANGES:C/.*\///} squeak.changes.gz \
&& ${LN} -s ${SQUEAK_IMAGE:C/.*\///} squeak.image.gz
${INSTALL_SCRIPT} ${INSTALLATION_DIRS}/inisqueak ${PREFIX}/bin/
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == i386
CONFIGURE_ARGS+= --enable-mpg-mmx
.endif
.include "../../audio/nas/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"