aboutsummaryrefslogtreecommitdiff
path: root/emulators/xsystem35
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-04-26 06:56:29 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-04-26 06:56:29 +0000
commitf9aee927a0be6bc6071fd741f5f385f15c866362 (patch)
treea8bdad4edd3660a12496ff695db50d251e05bdf8 /emulators/xsystem35
parent70d191e8c86004d1020cdd5151daed67cf1eb9d0 (diff)
downloadports-f9aee927a0be6bc6071fd741f5f385f15c866362.tar.gz
ports-f9aee927a0be6bc6071fd741f5f385f15c866362.zip
- Fix build
PR: 177559 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=316577
Diffstat (limited to 'emulators/xsystem35')
-rw-r--r--emulators/xsystem35/Makefile58
-rw-r--r--emulators/xsystem35/files/pkg-message.in (renamed from emulators/xsystem35/pkg-message)4
-rw-r--r--emulators/xsystem35/pkg-plist92
3 files changed, 76 insertions, 78 deletions
diff --git a/emulators/xsystem35/Makefile b/emulators/xsystem35/Makefile
index 8beeefeb9387..295360cc74b6 100644
--- a/emulators/xsystem35/Makefile
+++ b/emulators/xsystem35/Makefile
@@ -10,44 +10,44 @@ MASTER_SITES= http://8ne.sakura.ne.jp:20008/chika/unitbase/xsys35/down/
MAINTAINER= ports@FreeBSD.org
COMMENT= AliceSoft System 3.5/3.6/3.8/3.9 on X Window System
-BROKEN= Does not build
+LICENSE= GPLv2 # (or later)
-LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis \
- jpeg.11:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis \
+ jpeg:${PORTSDIR}/graphics/jpeg
+
+OPTIONS_DEFINE= ESOUND DOCS EXAMPLES
-USE_AUTOTOOLS= autoconf libtool
USES= gettext
-USE_GMAKE= yes
USE_GNOME= gtk12
-WANT_GNOME= yes
-
-PKGMESSAGE= ${WRKSRC}/MESSAGE
-
-DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME}
-PATCHES= pastel.diff
-
-.include <bsd.port.pre.mk>
-
+USE_GMAKE= yes
+USE_AUTOTOOLS= autoconf libtool
CONFIGURE_ARGS= --without-included-gettext \
- --program-prefix="" \
--with-cachesize=20 \
--enable-midi=seq,extp,raw \
--enable-cdrom=bsd,mp3
+MAKE_JOBS_SAFE= yes
+
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if ${HAVE_GNOME:Mesound}!=""
+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(WITH_SDL)
+#.if ${PORT_OPTIONS:MSDL}
#USE_SDL= sdl
#CONFIGURE_ARGS+= --enable-sdl
-#CONFIGURE_ENV+= "CPPFLAGS=`$(SDL_CONFIG) --cflags`" \
-# "LIBS=`$(SDL_CONFIG) --libs`"
+#CPPFLAGS+= $$(${SDL_CONFIG} --cflags)
+#LDFLAGS+= $$(${SDL_CONFIG} --libs)
#.else
CONFIGURE_ARGS+= --disable-sdl
#.endif
@@ -59,11 +59,6 @@ BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
CONFIGURE_ARGS+= --disable-mmx
.endif
-pre-everything::
-#.if !defined(WITH_SDL)
-# @${ECHO_MSG} '===> Define WITH_SDL to enable SDL support'
-#.endif
-
post-extract:
@${CP} ${WRKSRC}/INSTALL ${WRKSRC}/doc/INSTALL
@@ -71,24 +66,27 @@ post-patch:
${FIND} ${WRKSRC}/src -type f |\
${XARGS} ${GREP} -l '<SDL/SDL' /dev/null |\
${XARGS} ${REINPLACE_CMD} -e 's,<SDL/,<,'
+ @${REINPLACE_CMD} -e \
+ 's|__COUNTER__|__COUNTER_H__|' ${WRKSRC}/src/counter.h
pre-configure:
(cd ${WRKSRC}/libltdl; ${AUTOCONF})
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/instgame ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc;\
- ${INSTALL_MAN} * ${DOCSDIR})
+ ${INSTALL_DATA} * ${DOCSDIR})
.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/src/xsys35rc.sample ${EXAMPLESDIR}
@(cd ${WRKSRC}/contrib; \
${INSTALL_DATA} *.* ${EXAMPLESDIR})
@(cd ${WRKSRC}/patch; \
- ${INSTALL_DATA} ${PATCHES} ${EXAMPLESDIR})
- @${SED} -e s,PREFIX,${PREFIX}, ${PKGDIR}/pkg-message > ${WRKSRC}/MESSAGE
- @${CAT} ${WRKSRC}/MESSAGE
+ ${INSTALL_DATA} pastel.diff ${EXAMPLESDIR})
+.endif
+ @${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/emulators/xsystem35/pkg-message b/emulators/xsystem35/files/pkg-message.in
index cf81c549f86a..2fd8bbf6d42d 100644
--- a/emulators/xsystem35/pkg-message
+++ b/emulators/xsystem35/files/pkg-message.in
@@ -2,11 +2,11 @@
o Make sure your kernel has been configured with options SHMMAXPGS=4096
when you run on display 16bpp or deeper color.
-o Copy PREFIX/share/example/xsystem35/xsys35rc.sample
+o Copy %%PREFIX%%/share/example/xsystem35/xsys35rc.sample
to ~/.xsys35rc and fit it to your environment.
o Install game data from AliceSoft's cdrom with
- PREFIX/bin/instgame.
+ %%PREFIX%%/bin/instgame.
o pcm0 sound device doesn't work well with this program for now.
Try snd0 instead, OSS commercial product or
diff --git a/emulators/xsystem35/pkg-plist b/emulators/xsystem35/pkg-plist
index ac76fdba40e2..bd98ccb19a7f 100644
--- a/emulators/xsystem35/pkg-plist
+++ b/emulators/xsystem35/pkg-plist
@@ -87,52 +87,52 @@ lib/xsystem35/tDemo.so
%%PORTDOCS%%%%DOCSDIR%%/TECH.TXT
%%PORTDOCS%%%%DOCSDIR%%/THANKS
%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%EXAMPLESDIR%%/20cDPS.inf
-%%EXAMPLESDIR%%/20cKaeru.inf
-%%EXAMPLESDIR%%/456atlach.inf
-%%EXAMPLESDIR%%/456ningen.inf
-%%EXAMPLESDIR%%/456zero.inf
-%%EXAMPLESDIR%%/README.TXT
-%%EXAMPLESDIR%%/ambi.inf
-%%EXAMPLESDIR%%/atlach_new.inf
-%%EXAMPLESDIR%%/chairs.inf
-%%EXAMPLESDIR%%/daiakuji.inf
-%%EXAMPLESDIR%%/dalk.inf
-%%EXAMPLESDIR%%/darcrows.inf
-%%EXAMPLESDIR%%/diabo.inf
-%%EXAMPLESDIR%%/diabo_new.inf
-%%EXAMPLESDIR%%/drstop.inf
-%%EXAMPLESDIR%%/esuka.inf
-%%EXAMPLESDIR%%/hushaby.inf
-%%EXAMPLESDIR%%/kakurezuki.inf
-%%EXAMPLESDIR%%/katsumi.inf
-%%EXAMPLESDIR%%/kichiku.inf
-%%EXAMPLESDIR%%/mamatoto.inf
-%%EXAMPLESDIR%%/mamori.inf
-%%EXAMPLESDIR%%/miko.inf
-%%EXAMPLESDIR%%/mugen.inf
-%%EXAMPLESDIR%%/nd.inf
-%%EXAMPLESDIR%%/onlyyou_r.inf
-%%EXAMPLESDIR%%/oudou.inf
-%%EXAMPLESDIR%%/panyo.inf
-%%EXAMPLESDIR%%/panyo_new.inf
-%%EXAMPLESDIR%%/pascha.inf
-%%EXAMPLESDIR%%/pastel.diff
-%%EXAMPLESDIR%%/persiom.inf
-%%EXAMPLESDIR%%/progood.inf
-%%EXAMPLESDIR%%/rance1.inf
-%%EXAMPLESDIR%%/rance2.inf
-%%EXAMPLESDIR%%/rance3.inf
-%%EXAMPLESDIR%%/rance4.inf
-%%EXAMPLESDIR%%/rance5d.inf
-%%EXAMPLESDIR%%/seeinao.inf
-%%EXAMPLESDIR%%/toushin.inf
-%%EXAMPLESDIR%%/toushin2.inf
-%%EXAMPLESDIR%%/tsuma.inf
-%%EXAMPLESDIR%%/tsuma2.inf
-%%EXAMPLESDIR%%/xsys35rc.sample
-%%EXAMPLESDIR%%/zero_new.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/20cDPS.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/20cKaeru.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/456atlach.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/456ningen.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/456zero.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README.TXT
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ambi.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/atlach_new.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/chairs.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/daiakuji.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dalk.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/darcrows.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/diabo.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/diabo_new.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/drstop.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/esuka.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hushaby.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/kakurezuki.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/katsumi.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/kichiku.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mamatoto.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mamori.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/miko.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mugen.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nd.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/onlyyou_r.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/oudou.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panyo.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panyo_new.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pascha.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pastel.diff
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/persiom.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/progood.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rance1.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rance2.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rance3.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rance4.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rance5d.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/seeinao.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/toushin.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/toushin2.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsuma.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsuma2.inf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xsys35rc.sample
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zero_new.inf
share/locale/ja/LC_MESSAGES/xsystem35.mo
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm lib/xsystem35