[Midnightbsd-cvs] mports [17281] trunk/games/scummvm: scummvm 1.7

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 15 00:19:38 EDT 2014


Revision: 17281
          http://svnweb.midnightbsd.org/mports/?rev=17281
Author:   laffer1
Date:     2014-09-15 00:19:38 -0400 (Mon, 15 Sep 2014)
Log Message:
-----------
scummvm 1.7

Modified Paths:
--------------
    trunk/games/scummvm/Makefile
    trunk/games/scummvm/distinfo

Modified: trunk/games/scummvm/Makefile
===================================================================
--- trunk/games/scummvm/Makefile	2014-09-15 04:16:01 UTC (rev 17280)
+++ trunk/games/scummvm/Makefile	2014-09-15 04:19:38 UTC (rev 17281)
@@ -1,7 +1,7 @@
 # $MidnightBSD$
 
 PORTNAME=	scummvm
-DISTVERSION=	1.6.0
+DISTVERSION=	1.7.0
 CATEGORIES=	games emulators
 MASTER_SITES=	SF
 MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}/${DISTVERSION}
@@ -8,15 +8,13 @@
 
 MAINTAINER=	ports at MidnightBSD.org
 COMMENT=	Graphical Adventure Game Virtual Machine
+
 LICENSE=	gpl2
 
-USE_BZIP2=	yes
-USE_GMAKE=	yes
+USES=		gmake tar:bzip2
 HAS_CONFIGURE=	yes
 USE_SDL=	sdl
 
-MAKE_JOBS_SAFE=	yes
-
 CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		--with-sdl-prefix=${LOCALBASE} \
 		--disable-alsa \
@@ -26,92 +24,43 @@
 		--disable-tremor
 LDFLAGS+=	${PTHREAD_LIBS}
 
-OPTIONS_DEFINE=	VORBIS MP3 FLAC FLUIDSYNTH MT32EMU
+OPTIONS_DEFINE=	VORBIS MP3 PNG FLAC FLUIDSYNTH MT32EMU DOCS
 FLUIDSYNTH_DESC=	FluidSynth MIDI synthesizer
 MT32EMU_DESC=	MT-32 emulator
-OPTIONS_DEFAULT=	VORBIS MP3 MT32EMU
+OPTIONS_DEFAULT=	VORBIS MP3 PNG MT32EMU
 
-MAN6=		scummvm.6
+VORBIS_LIB_DEPENDS=	libogg.so:${PORTSDIR}/audio/libogg \
+			libvorbis.so:${PORTSDIR}/audio/libvorbis
+VORBIS_CONFIGURE_ON=	--with-ogg-prefix=${LOCALBASE} \
+			--with-vorbis-prefix=${LOCALBASE}
+VORBIS_CONFIGURE_OFF=	--disable-vorbis
 
-PORTDOCS=	AUTHORS NEWS README TODO COPYRIGHT
-ENGINEDATA=	drascula.dat \
-		hugo.dat \
-		kyra.dat \
-		lure.dat \
-		queen.tbl \
-		sky.cpt \
-		teenagent.dat \
-		toon.dat
+MP3_LIB_DEPENDS=	libmad.so:${PORTSDIR}/audio/libmad
+MP3_CONFIGURE_ON=	--with-mad-prefix=${LOCALBASE}
+MP3_CONFIGURE_OFF=	--disable-mad
 
-DESKTOP_ENTRIES="ScummVM" \
-		"ScummVM - Run classic adventure games" \
-		"${DATADIR}/scummvm.svg" \
-		"scummvm" \
-		"Game;AdventureGame;" \
-		false
+PNG_LIB_DEPENDS=	libpng.so:${PORTSDIR}/graphics/png
+PNG_CONFIGURE_ON=	--with-png-prefix=${LOCALBASE}
+PNG_CONFIGURE_OFF=	--disable-png
 
-PLIST_FILES=	bin/scummvm \
-		%%DATADIR%%/scummvm.svg \
-		%%DATADIR%%/scummmodern.zip \
-		%%DATADIR%%/translations.dat \
-		$(ENGINEDATA:S/^/%%DATADIR%%\//)
-PLIST_DIRS=	%%DATADIR%%
+FLAC_LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audio/flac
+FLAC_CONFIGURE_ON=	--with-flac-prefix=${LOCALBASE}
+FLAC_CONFIGURE_OFF=	--disable-flac
 
-.include <bsd.mport.options.mk>
+FLUIDSYNTH_LIB_DEPENDS=		libfluidsynth.so:${PORTSDIR}/audio/fluidsynth
+FLUIDSYNTH_CONFIGURE_ON=	--with-fluidsynth-prefix=${LOCALBASE}
+FLUIDSYNTH_CONFIGURE_OFF=	--disable-fluidsynth
 
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN=		Does not compile on ia64, powerpc, or sparc64
-.endif
+MT32EMU_CONFIGURE_OFF=	--disable-mt32emu
 
-.if ${PORT_OPTIONS:MVORBIS}
-LIB_DEPENDS+=	ogg:${PORTSDIR}/audio/libogg \
-		vorbis:${PORTSDIR}/audio/libvorbis
-CONFIGURE_ARGS+=--with-ogg-prefix=${LOCALBASE} \
-		--with-vorbis-prefix=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--disable-vorbis
-.endif
+.include <bsd.port.pre.mk>
 
-.if ${PORT_OPTIONS:MMP3}
-LIB_DEPENDS+=	mad:${PORTSDIR}/audio/libmad
-CONFIGURE_ARGS+=--with-mad-prefix=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--disable-mad
-.endif
+post-patch:
+	@${REINPLACE_CMD} -e '/^mandir=/s/datarootdir/prefix/' ${WRKSRC}/configure
 
-.if ${PORT_OPTIONS:MFLAC}
-LIB_DEPENDS+=	FLAC:${PORTSDIR}/audio/flac
-CONFIGURE_ARGS+=--with-flac-prefix=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--disable-flac
-.endif
+post-install:
+	${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+	${INSTALL_DATA} ${WRKSRC}/dists/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
-.if ${PORT_OPTIONS:MFLUIDSYNTH}
-LIB_DEPENDS+=	fluidsynth:${PORTSDIR}/audio/fluidsynth
-CONFIGURE_ARGS+=--with-fluidsynth-prefix=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--disable-fluidsynth
-.endif
-
-.if empty(PORT_OPTIONS:MMT32EMU)
-CONFIGURE_ARGS+=--disable-mt32emu
-.endif
-
-do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/scummvm ${PREFIX}/bin
-	@${INSTALL_MAN} ${WRKSRC}/dists/scummvm.6 ${PREFIX}/man/man6
-	@${MKDIR} ${DATADIR}
-	@${INSTALL_DATA} ${WRKSRC}/icons/scummvm.svg ${DATADIR}
-	@${INSTALL_DATA} ${WRKSRC}/gui/themes/scummmodern.zip ${DATADIR}
-	@${INSTALL_DATA} ${WRKSRC}/gui/themes/translations.dat ${DATADIR}
-.for i in ${ENGINEDATA}
-	@${INSTALL_DATA} ${WRKSRC}/dists/engine-data/${i} ${DATADIR}
-.endfor
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-.for i in ${PORTDOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
-.endif
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: trunk/games/scummvm/distinfo
===================================================================
--- trunk/games/scummvm/distinfo	2014-09-15 04:16:01 UTC (rev 17280)
+++ trunk/games/scummvm/distinfo	2014-09-15 04:19:38 UTC (rev 17281)
@@ -1,2 +1,2 @@
-SHA256 (scummvm-1.6.0.tar.bz2) = 396060da6a8f391438055c292a280048d29dc408c5b615db43256a86f0e57ec4
-SIZE (scummvm-1.6.0.tar.bz2) = 18516277
+SHA256 (scummvm-1.7.0.tar.bz2) = d9ff0e8cf911afa466d5456d28fef692a17d47ddecfd428bf2fef591237c2e66
+SIZE (scummvm-1.7.0.tar.bz2) = 20018016



More information about the Midnightbsd-cvs mailing list