diff options
Diffstat (limited to 'games/scummvm')
-rw-r--r-- | games/scummvm/Makefile | 22 | ||||
-rw-r--r-- | games/scummvm/distinfo | 2 | ||||
-rw-r--r-- | games/scummvm/files/patch-Makefile | 20 | ||||
-rw-r--r-- | games/scummvm/files/patch-Makefile.common | 17 | ||||
-rw-r--r-- | games/scummvm/files/patch-Makefile.x11 | 21 | ||||
-rw-r--r-- | games/scummvm/files/patch-sound::mixer.h | 11 | ||||
-rw-r--r-- | games/scummvm/pkg-plist | 4 |
7 files changed, 29 insertions, 68 deletions
diff --git a/games/scummvm/Makefile b/games/scummvm/Makefile index a06008b1b9ad..71651ea1e372 100644 --- a/games/scummvm/Makefile +++ b/games/scummvm/Makefile @@ -6,32 +6,42 @@ # PORTNAME= scummvm -PORTVERSION= 0.2.0 +PORTVERSION= 0.3.0b CATEGORIES= games emulators MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= ${PORTNAME}_${PORTVERSION}-src -EXTRACT_SUFX= .tgz MAINTAINER= flynn@energyhq.homeip.net LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 USE_GMAKE= yes -WRKSRC= ${WRKDIR}/${PORTNAME} +WRKSRC= ${WRKDIR}/${PORTNAME}-0.3.0 +GNU_CONFIGURE= yes +USE_REINPLACE= yes -#MAKEFILE= Makefile.x11 +MAN6= scummvm.6 pre-patch: @${FIND} -E ${WRKSRC} -type f -iregex ".*\.(cpp|h|txt)" \ -exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \; - @${PERL} -pi -e 's|\r\n|\n|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|\r\n|\n|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's@sdl-config@sdl11-config@g' \ + ${WRKSRC}/backends/sdl/build.rules + +post-configure: + @${REINPLACE_CMD} -e 's@-lmad@@g; \ + s@:= -g -O@+= ${CFLAGS}@' \ + ${WRKSRC}/Makefile do-install: @${INSTALL_PROGRAM} ${WRKSRC}/scummvm ${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/scummvm.6 ${PREFIX}/man/man6 + .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for docs in copying.txt readme.txt whatsnew.txt +.for docs in README @${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR} .endfor .endif diff --git a/games/scummvm/distinfo b/games/scummvm/distinfo index 6cbf86bff4b2..feefca9758c4 100644 --- a/games/scummvm/distinfo +++ b/games/scummvm/distinfo @@ -1 +1 @@ -MD5 (scummvm_0.2.0-src.tgz) = faba7c1541c1e656813adeb65cc5fe72 +MD5 (scummvm_0.3.0b-src.tar.gz) = 2192a22fb40f7c63c4f6f862ad60897c diff --git a/games/scummvm/files/patch-Makefile b/games/scummvm/files/patch-Makefile deleted file mode 100644 index 2b95d83fc14c..000000000000 --- a/games/scummvm/files/patch-Makefile +++ /dev/null @@ -1,20 +0,0 @@ ---- Makefile.orig Tue May 14 17:11:37 2002 -+++ Makefile Tue May 14 17:12:23 2002 -@@ -1,14 +1,13 @@ - # $Header: /cvsroot/scummvm/scummvm/Makefile,v 1.41 2002/04/27 16:58:28 ender Exp $ - --CC = g++ --CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -+CFLAGS += -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar - DEFINES = -DUNIX - LDFLAGS := --INCLUDES:= `sdl-config --cflags` -I./ -I./sound -+INCLUDES:= `sdl11-config --cflags` -I./ -I./sound - CPPFLAGS= $(DEFINES) $(INCLUDES) - - # Add -lmad for -DCOMPRESSED_SOUND_FILE --LIBS = `sdl-config --libs` -lncurses -+LIBS = `sdl11-config --libs` -lncurses - - OBJS = sdl.o - diff --git a/games/scummvm/files/patch-Makefile.common b/games/scummvm/files/patch-Makefile.common deleted file mode 100644 index 4433617646c9..000000000000 --- a/games/scummvm/files/patch-Makefile.common +++ /dev/null @@ -1,17 +0,0 @@ ---- Makefile.common.orig Tue May 14 17:14:18 2002 -+++ Makefile.common Tue May 14 17:14:28 2002 -@@ -19,12 +19,12 @@ - scummvm.dsp scummvm.dsw sound/fmopl.h gui.h sound.h - - .cpp.o: -- $(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o -+ $(CXX) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o - - all: scummvm$(EXEEXT) - - scummvm$(EXEEXT): $(OBJS) -- $(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) -+ $(CXX) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) - - clean: - rm -f $(OBJS) scummvm$(EXEEXT) diff --git a/games/scummvm/files/patch-Makefile.x11 b/games/scummvm/files/patch-Makefile.x11 deleted file mode 100644 index f0fc01a326d9..000000000000 --- a/games/scummvm/files/patch-Makefile.x11 +++ /dev/null @@ -1,21 +0,0 @@ ---- Makefile.x11.orig Sat Apr 27 07:06:27 2002 -+++ Makefile.x11 Tue May 14 17:12:04 2002 -@@ -1,14 +1,13 @@ - # $Header: /cvsroot/scummvm/scummvm/Makefile.x11,v 1.4 2002/04/27 11:06:27 fingolfin Exp $ - --CC = gcc --CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -DCOMPRESSED_SOUND_FILE -+CFLAGS += -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -DCOMPRESSED_SOUND_FILE - DEFINES = -DUNIX_X11 --LDFLAGS := -L/usr/X11R6/lib -L/usr/local/lib --INCLUDES:= -I/usr/X11R6/include -I./ -I./sound -I/usr/local/include -+LDFLAGS := -L${X11BASE}/lib -L${LOCALBASE}/lib -+INCLUDES:= -I${X11BASE}/include -I./ -I./sound -I${LOCALBASE}/include - CPPFLAGS= $(DEFINES) $(INCLUDES) - - # Add -lmad for -DCOMPRESSED_SOUND_FILE --LIBS = -lXext -lX11 -lncurses -lm -lmad -lpthread -+LIBS = -lXext -lX11 -lncurses -lm -lmad ${PTHREAD_LIBS} - - OBJS = x11.o - diff --git a/games/scummvm/files/patch-sound::mixer.h b/games/scummvm/files/patch-sound::mixer.h new file mode 100644 index 000000000000..35b749684e18 --- /dev/null +++ b/games/scummvm/files/patch-sound::mixer.h @@ -0,0 +1,11 @@ +--- sound/mixer.h.orig Wed Jan 1 13:21:10 2003 ++++ sound/mixer.h Wed Jan 1 13:21:41 2003 +@@ -25,6 +25,8 @@ + + #include <stdio.h> + ++#undef USE_MAD ++ + #ifdef USE_MAD + #include <mad.h> + #endif diff --git a/games/scummvm/pkg-plist b/games/scummvm/pkg-plist index fbbe85fe8c14..5dcfc67bdc03 100644 --- a/games/scummvm/pkg-plist +++ b/games/scummvm/pkg-plist @@ -1,5 +1,3 @@ bin/scummvm -%%PORTDOCS%%share/doc/scummvm/copying.txt -%%PORTDOCS%%share/doc/scummvm/readme.txt -%%PORTDOCS%%share/doc/scummvm/whatsnew.txt +%%PORTDOCS%%share/doc/scummvm/README %%PORTDOCS%%@dirrm share/doc/scummvm |