aboutsummaryrefslogtreecommitdiff
path: root/emulators/xsystem35
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-02-10 02:15:08 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-02-10 02:15:08 +0000
commit706edf15fe4cf27519a2b91fb7e1f874b88670b0 (patch)
treec9eef43ed8b72def83b5bd2ad581d8d62911ec1d /emulators/xsystem35
parente11fc2fa7ffba6c83ef55326d4b854b45d9edc22 (diff)
downloadports-706edf15fe4cf27519a2b91fb7e1f874b88670b0.tar.gz
ports-706edf15fe4cf27519a2b91fb7e1f874b88670b0.zip
Notes
Diffstat (limited to 'emulators/xsystem35')
-rw-r--r--emulators/xsystem35/Makefile25
1 files changed, 9 insertions, 16 deletions
diff --git a/emulators/xsystem35/Makefile b/emulators/xsystem35/Makefile
index 72fb715465ec..4cd6afa30331 100644
--- a/emulators/xsystem35/Makefile
+++ b/emulators/xsystem35/Makefile
@@ -17,6 +17,13 @@ LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
libjpeg.so:${PORTSDIR}/graphics/jpeg
OPTIONS_DEFINE= ESOUND DOCS EXAMPLES
+OPTIONS_DEFINE_i386= MMX
+OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:MMMX}
+
+ESOUND_USE= GNOME=esound
+ESOUND_CONFIGURE_ON=--enable-audio=oss,esd --with-default-output=esd
+MMX_BUILD_DEPENDS=nasm:${PORTSDIR}/devel/nasm
+MMX_CONFIGURE_ENABLE=mmx
USES= gettext gmake libtool shebangfix
SHEBANG_FILES= contrib/instgame
@@ -27,6 +34,8 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-included-gettext \
--with-cachesize=20 \
--disable-static \
+ --enable-audio=oss \
+ --with-default-output=oss \
--enable-midi=seq,extp,raw \
--enable-cdrom=bsd,mp3
CPPFLAGS+= -I${LOCALBASE}/include
@@ -38,22 +47,6 @@ SUB_FILES= pkg-message
DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME}
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MESOUND}
-USE_GNOME+= esound
-CONFIGURE_ARGS+= --enable-audio=oss,esd --with-default-output=esd
-.else
-CONFIGURE_ARGS+= --enable-audio=oss --with-default-output=oss
-.endif
-
-.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx}
-CONFIGURE_ARGS+= --enable-mmx
-BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
-.else
-CONFIGURE_ARGS+= --disable-mmx
-.endif
-
post-patch:
@${CP} ${WRKSRC}/INSTALL ${WRKSRC}/doc/INSTALL
@${REINPLACE_CMD} '/-lxpg4/d' ${WRKSRC}/configure