diff options
author | sf <sf@FreeBSD.org> | 2001-12-23 00:15:24 +0000 |
---|---|---|
committer | sf <sf@FreeBSD.org> | 2001-12-23 00:15:24 +0000 |
commit | 66c11b943230cbf934a0e0ed118c584393bf9a1c (patch) | |
tree | 903ab840afaf9ef9e995adfe0e18d88d12beb697 /emulators/xsystem35 | |
parent | b29fd086cc6c57587b00bbbe390f4d19d1dc81e8 (diff) | |
download | FreeBSD-ports-66c11b943230cbf934a0e0ed118c584393bf9a1c.zip FreeBSD-ports-66c11b943230cbf934a0e0ed118c584393bf9a1c.tar.gz |
o update to 1.4.2.
o use LOCALBASE as default PREFIX.
PR: 32602
Submitted by: amorita
Diffstat (limited to 'emulators/xsystem35')
-rw-r--r-- | emulators/xsystem35/Makefile | 114 | ||||
-rw-r--r-- | emulators/xsystem35/distinfo | 2 | ||||
-rw-r--r-- | emulators/xsystem35/files/patch-af | 32 | ||||
-rw-r--r-- | emulators/xsystem35/files/patch-configure.in | 11 | ||||
-rw-r--r-- | emulators/xsystem35/pkg-message | 2 | ||||
-rw-r--r-- | emulators/xsystem35/pkg-plist | 18 |
6 files changed, 117 insertions, 62 deletions
diff --git a/emulators/xsystem35/Makefile b/emulators/xsystem35/Makefile index 46ecb6b..e4ddd6b 100644 --- a/emulators/xsystem35/Makefile +++ b/emulators/xsystem35/Makefile @@ -6,52 +6,122 @@ # PORTNAME= xsystem35 -PORTVERSION= 1.2.5.1 +PORTVERSION= 1.4.2 CATEGORIES= emulators MASTER_SITES= http://www.aist-nara.ac.jp/~masaki-c/private/unitbase/xsys35/down/ -DISTNAME= ${PORTNAME}-1.2.5-1 MAINTAINER= sf@FreeBSD.org -USE_IMAKE= yes +USE_AUTOCONF= yes +USE_GMAKE= yes USE_GTK= yes WANT_ESOUND= yes -WRKSRC= ${WRKDIR}/${DISTNAME}/src - PKGMESSAGE= ${WRKSRC}/MESSAGE -DOC_FILES= BUGS ChangeLog FAQ GRFMT.TXT INSTALL MISCGAME.TXT README \ - README.color README.joystick README.miko README.music \ - README.pastel THANKS TODO -EXAMPLES= README.TXT ambi.inf atlach.inf dalk.inf darcrows.inf \ - diabo.inf drstop.inf hushaby.inf katsumi.inf kichiku.inf \ - mamatoto.inf mamori.inf miko.inf mugen.inf ningen.inf \ - oudou.inf panyo.inf pascha.inf progood.inf rance1.inf \ - rance2.inf rance3.inf rance4.inf toushin.inf toushin2.inf \ - zero.inf +DOC_FILES= BUGS ChangeLog ChangeLog.1 FAQ GAMES.TXT GRFMT.TXT \ + INSTALL MISCGAME.TXT \ + README README.color README.joystick README.music \ + TECH.TXT THANKS TODO + +EXAMPLES= README.TXT \ + 456atlach.inf 456ningen.inf 456zero.inf \ + ambi.inf atlach_new.inf dalk.inf darcrows.inf diabo.inf \ + drstop.inf hushaby.inf kakurezuki.inf katsumi.inf \ + kichiku.inf mamatoto.inf mamori.inf miko.inf mugen.inf \ + oudou.inf panyo.inf panyo_new.inf pascha.inf persiom.inf \ + progood.inf rance1.inf rance2.inf rance3.inf rance4.inf \ + seeinao.inf toushin.inf toushin2.inf + +PATCHES= pastel.diff .include <bsd.port.pre.mk> +LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext + +SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config +FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config + +CONFIGURE_ARGS= --without-included-gettext \ + --with-cachesize=20 \ + --enable-midi=seq,extp,raw \ + --enable-cdrom=bsd,mp3 +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + .if defined(HAVE_ESOUND) USE_ESOUND= yes -pre-configure: - ${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig - ${SED} -e 43,43d -e 45,45d ${WRKSRC}/config.h.orig > ${WRKSRC}/config.h +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) +LIB_DEPENDS+= SDL-1.1.3:${PORTSDIR}/devel/sdl12 +CONFIGURE_ARGS+= --enable-sdl +CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}" +.else +CONFIGURE_ARGS+= --disable-sdl .endif +.if defined(WITH_FREETYPE) +CONFIGURE_ARGS+= --enable-ttf +.else +CONFIGURE_ARGS+= --disable-ttf +.endif + +.if ${ARCH} == "i386" +.if defined(WITHOUT_MMX) +CONFIGURE_ARGS+= --disable-mmx +.else +CONFIGURE_ARGS+= --enable-mmx +BUILD_DEPENDS+= nasm-0.98:${PORTSDIR}/devel/nasm +.endif +.endif + +pre-everything:: +.if !defined(WITH_SDL) + @${ECHO_MSG} '===> Define WITH_SDL to enable SDL support' +.endif +.if !defined(WITH_FREETYPE) + @${ECHO_MSG} '===> Define WITH_FREETYPE to enable FreeType support' +.endif +.if ${ARCH} == "i386" +.if !defined(WITHOUT_MMX) + @${ECHO_MSG} '===> Define WITHOUT_MMX to disable MMX routines' +.endif +.endif + +post-extract: + @${CP} ${WRKSRC}/INSTALL ${WRKSRC}/doc/INSTALL + +post-patch: + ${FIND} ${WRKSRC}/src -type f |\ + ${XARGS} ${GREP} -l '<SDL/SDL' /dev/null |\ + ${PERL} -pi.orig -e 's,<SDL/,<,'; \ + done + +pre-configure: + @${TOUCH} ${WRKSRC}/aclocal.m4 \ + ${WRKSRC}/Makefile.in \ + ${WRKSRC}/src/Makefile.in + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/xsystem35 ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/../contrib/instgame ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/src/xsystem35 ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/contrib/instgame ${PREFIX}/bin + ${MKDIR} ${PREFIX}/share/locale/ja/LC_MESSAGES + ${INSTALL_DATA} ${WRKSRC}/po/ja.mo ${PREFIX}/share/locale/ja/LC_MESSAGES/xsystem35.mo .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/ja/xsystem35 - (cd ${WRKSRC}/../doc;\ + (cd ${WRKSRC}/doc;\ ${INSTALL_MAN} ${DOC_FILES} ${PREFIX}/share/doc/ja/xsystem35) .endif @${MKDIR} ${PREFIX}/share/examples/xsystem35 - ${INSTALL_DATA} ${WRKSRC}/xsys35rc.sample ${PREFIX}/share/examples/xsystem35 - @(cd ${WRKSRC}/../contrib; \ + ${INSTALL_DATA} ${WRKSRC}/src/xsys35rc.sample ${PREFIX}/share/examples/xsystem35 + @(cd ${WRKSRC}/contrib; \ ${INSTALL_DATA} ${EXAMPLES} ${PREFIX}/share/examples/xsystem35) + @(cd ${WRKSRC}/patch; \ + ${INSTALL_DATA} ${PATCHES} ${PREFIX}/share/examples/xsystem35) @${SED} -e s,PREFIX,${PREFIX}, ${PKGDIR}/pkg-message > ${WRKSRC}/MESSAGE @${CAT} ${WRKSRC}/MESSAGE diff --git a/emulators/xsystem35/distinfo b/emulators/xsystem35/distinfo index fd84c6e..7094e5e 100644 --- a/emulators/xsystem35/distinfo +++ b/emulators/xsystem35/distinfo @@ -1 +1 @@ -MD5 (xsystem35-1.2.5-1.tar.gz) = dc84549b4fc5b7b6c5251f3205290465 +MD5 (xsystem35-1.4.2.tar.gz) = d775ddb4ae2c355ee416efbfb4bbc7f3 diff --git a/emulators/xsystem35/files/patch-af b/emulators/xsystem35/files/patch-af deleted file mode 100644 index 367c5af..0000000 --- a/emulators/xsystem35/files/patch-af +++ /dev/null @@ -1,32 +0,0 @@ ---- Imakefile.orig Sun Jan 9 02:23:15 2000 -+++ Imakefile Sun Jan 21 15:45:27 2001 -@@ -28,7 +28,6 @@ - OSDEPDEF = -DUSE_OSS - OSDEPINC = -I/usr/local/lib/oss/include - ****/ --OSDEPLIB = -lxpg4 - CDROM_S = cdrom.FreeBSD - AUDIO_IO = audioIO_oss - JOY_S = joystick_dmy -@@ -160,13 +159,13 @@ - /* - * include / library / definition - */ --SYS_LIBRARIES = -lm `gtk-config --libs` -+SYS_LIBRARIES = -lm `$(GTK_CONFIG) --libs` - #ifdef ENABLE_ESD - EXTRA_LIBRARIES = $(OSDEPLIB) -lesd - #else - EXTRA_LIBRARIES = $(OSDEPLIB) - #endif --EXTRA_INCLUDES = `gtk-config --cflags` $(OSDEPINC) -+EXTRA_INCLUDES = `$(GTK_CONFIG) --cflags` $(OSDEPINC) - EXTRA_DEFINES = $(OSDEPDEF) - - /* -@@ -196,4 +195,4 @@ - /* - * install program - */ --ComplexProgramTarget(xsystem35) -+ComplexProgramTargetNoMan(xsystem35) diff --git a/emulators/xsystem35/files/patch-configure.in b/emulators/xsystem35/files/patch-configure.in new file mode 100644 index 0000000..bb98e8b --- /dev/null +++ b/emulators/xsystem35/files/patch-configure.in @@ -0,0 +1,11 @@ +--- configure.in.orig Tue Nov 27 04:26:47 2001 ++++ configure.in Sun Dec 23 07:26:26 2001 +@@ -316,7 +316,7 @@ + *-*-linux*) + ;; + *-*-freebsd*) +- EXTRALIBS="$EXTRALIBS -lxpg4" ++ AC_CHECK_LIB(xpg4, _xpg4_setrunelocale, EXTRALIBS="$EXTRALIBS -lxpg4") + ;; + *-irix*) + chk_rgb=yes diff --git a/emulators/xsystem35/pkg-message b/emulators/xsystem35/pkg-message index 4791dec..7388205 100644 --- a/emulators/xsystem35/pkg-message +++ b/emulators/xsystem35/pkg-message @@ -8,8 +8,6 @@ o copy PREFIX/share/example/xsystem35/xsys35rc.sample o install game data from AliceSoft's cdrom with PREFIX/bin/instgame. -o install X-TT for your real pleasure(optional). - o pcm0 sound device doesn't work well with this program for now. Try snd0 instead, OSS commercial product or -devdsp none commandline option as the last resort. diff --git a/emulators/xsystem35/pkg-plist b/emulators/xsystem35/pkg-plist index 6d0746d..bfd2a6d 100644 --- a/emulators/xsystem35/pkg-plist +++ b/emulators/xsystem35/pkg-plist @@ -1,45 +1,53 @@ bin/instgame bin/xsystem35 +share/locale/ja/LC_MESSAGES/xsystem35.mo %%PORTDOCS%%share/doc/ja/xsystem35/BUGS %%PORTDOCS%%share/doc/ja/xsystem35/ChangeLog +%%PORTDOCS%%share/doc/ja/xsystem35/ChangeLog.1 %%PORTDOCS%%share/doc/ja/xsystem35/FAQ +%%PORTDOCS%%share/doc/ja/xsystem35/GAMES.TXT %%PORTDOCS%%share/doc/ja/xsystem35/GRFMT.TXT %%PORTDOCS%%share/doc/ja/xsystem35/INSTALL %%PORTDOCS%%share/doc/ja/xsystem35/MISCGAME.TXT %%PORTDOCS%%share/doc/ja/xsystem35/README %%PORTDOCS%%share/doc/ja/xsystem35/README.color %%PORTDOCS%%share/doc/ja/xsystem35/README.joystick -%%PORTDOCS%%share/doc/ja/xsystem35/README.miko %%PORTDOCS%%share/doc/ja/xsystem35/README.music -%%PORTDOCS%%share/doc/ja/xsystem35/README.pastel +%%PORTDOCS%%share/doc/ja/xsystem35/TECH.TXT %%PORTDOCS%%share/doc/ja/xsystem35/THANKS %%PORTDOCS%%share/doc/ja/xsystem35/TODO share/examples/xsystem35/README.TXT +share/examples/xsystem35/456atlach.inf +share/examples/xsystem35/456ningen.inf +share/examples/xsystem35/456zero.inf share/examples/xsystem35/ambi.inf -share/examples/xsystem35/atlach.inf +share/examples/xsystem35/atlach_new.inf share/examples/xsystem35/dalk.inf share/examples/xsystem35/darcrows.inf share/examples/xsystem35/diabo.inf share/examples/xsystem35/drstop.inf share/examples/xsystem35/hushaby.inf +share/examples/xsystem35/kakurezuki.inf share/examples/xsystem35/katsumi.inf share/examples/xsystem35/kichiku.inf share/examples/xsystem35/mamatoto.inf share/examples/xsystem35/mamori.inf share/examples/xsystem35/miko.inf share/examples/xsystem35/mugen.inf -share/examples/xsystem35/ningen.inf share/examples/xsystem35/oudou.inf share/examples/xsystem35/panyo.inf +share/examples/xsystem35/panyo_new.inf share/examples/xsystem35/pascha.inf +share/examples/xsystem35/persiom.inf share/examples/xsystem35/progood.inf share/examples/xsystem35/rance1.inf share/examples/xsystem35/rance2.inf share/examples/xsystem35/rance3.inf share/examples/xsystem35/rance4.inf +share/examples/xsystem35/seeinao.inf share/examples/xsystem35/toushin.inf share/examples/xsystem35/toushin2.inf share/examples/xsystem35/xsys35rc.sample -share/examples/xsystem35/zero.inf +share/examples/xsystem35/pastel.diff %%PORTDOCS%%@dirrm share/doc/ja/xsystem35 @dirrm share/examples/xsystem35 |