openbsd-ports/lang/squeak/vm/Makefile
2013-01-29 23:52:28 +00:00

50 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.17 2013/01/29 23:52:28 brad Exp $
COMMENT = smalltalk system, vm
SRCV = 1
DISTFILES = Squeak-$V-${SRCV}.src.tar.gz
PKGNAME = squeak-vm-$V.${SRCV}
REVISION = 3
WRKDIST = ${WRKDIR}/Squeak-$V-${SRCV}
WRKSRC = ${WRKDIST}/platforms/unix/config
SEPARATE_BUILD = Yes
MASTER_SITES = ${SQUEAK_SITE}unix-linux/
RUN_DEPENDS = squeak-sources-${SOURCEV}:lang/squeak/sources
CONFIGURE_STYLE = gnu
AUTOCONF_VERSION = 2.60
DESTDIRNAME = ROOT
CONFIGURE_ENV = LDFLAGS="-lpthread ${LDFLAGS}" RANLIB=ranlib \
ac_cv_socklen_t=yes
USE_GMAKE = Yes
USE_GROFF = Yes
WANTLIB = GL X11 m c SM util Xext ICE Xrender Xt pthread \
pthread-stubs xcb
FULLV = $V-${SRCV}
.if ${MACHINE_ARCH} != "powerpc"
MAKE_FLAGS += INTERP=gnu-interp
.endif
MAKE_FLAGS += docdir=${PREFIX}/share/doc/squeak
DESTDIRNAME = ROOT
SUBST_VARS += FULLV
post-extract:
# start with the sun sound-plugin that we'll patch
mkdir ${WRKDIST}/platforms/unix/vm-sound-OpenBSD
cd ${WRKDIST}/platforms/unix && cp vm-sound-Sun/acinclude.m4 vm-sound-OpenBSD && cp vm-sound-Sun/sqUnixSoundSun.c vm-sound-OpenBSD/sqUnixSoundOpenBSD.c
pre-build:
@perl -pi -e s,dprintf,debugprintf, ${WRKDIST}/platforms/unix/vm/*.c
@perl -pi -e s,"define dprintf","define debugprintf", ${WRKDIST}/platforms/unix/vm/debug.h
.include <bsd.port.mk>