openbsd-ports/lang/squeak/Makefile
espie 9767b3b32c Repair sound.
ossaudio should be somewhat documented, having to go to the source to
discover that fragments is unsupported, and that this is what freezes
squeak, is beyond lame.
2001-04-23 16:24:18 +00:00

67 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2001/04/23 16:24:18 espie Exp $
COMMENT= "smalltalk system"
CATEGORIES= lang
NEED_VERSION= 1.400
MAINTAINER= Marc Espie <espie@openbsd.org>
# Apple license, similar to GPL, with a clause to protect Apple
# against litigation
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
MAJOR=3
MINOR=0
V=${MAJOR}.${MINOR}
DIST_SUBDIR=squeak3.0
HOMEPAGE= http://squeak.org/
MASTER_SITES=ftp://st.cs.uiuc.edu/pub/Smalltalk/Squeak/$V/files/
MASTER_SITES0=http://www-sor.inria.fr/~piumarta/squeak/unix/
COMMON_FILES=ReadMe.txt.gz Squeak$Vfinal.changes.gz Squeak$Vfinal.image.gz SqueakV${MAJOR}.sources.gz
DISTNAME=squeak-$V
PKGNAME=squeak-$V.pre2
DISTFILES=Squeak-$Vpre2.tar.gz:0 ${COMMON_FILES}
EXTRACT_ONLY=Squeak-$Vpre2.tar.gz
WRKDIST=${WRKDIR}/Squeak-$V
WRKSRC= ${WRKDIST}/src/unix
SEPARATE_BUILD=simple
CONFIGURE_STYLE=gnu
CONFIGURE_ENV=RANLIB=ranlib
#MAKE_FLAGS=CFLAGS=-O2
#ALL_TARGET=squeak plugins map
ALL_TARGET=all squeak.1
USE_GMAKE=yes
MAKE_FLAGS=INTERP=gnu-interp docdir=${TRUEPREFIX}/share/doc/squeak-$V
FAKE_FLAGS=${MAKE_FLAGS} DESTDIR=${WRKINST}
PLUGINS= Profiler.so SoundCodecPrims.so Squeak3D.so System.so
post-extract:
cp ${FILESDIR}/sqOpenBSDSound.c ${WRKSRC}
rm ${WRKSRC}/sqUnixSound.c
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/squeak
cd ${PREFIX}/share/squeak && for i in ${COMMON_FILES}; \
do \
${INSTALL_DATA} ${FULLDISTDIR}/$$i ${PREFIX}/share/squeak; \
done; gunzip SqueakV${MAJOR}.sources.gz
sed -e 's,@PREFIX@,${TRUEPREFIX},' -e 's,@V@,$V,' \
<${FILESDIR}/inisqueak >${PREFIX}/lib/squeak/$V/inisqueak
@chmod a+x ${PREFIX}/bin/inisqueak
.include <bsd.port.mk>