diff options
author | mat <mat@FreeBSD.org> | 2016-03-09 00:04:23 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2016-03-09 00:04:23 +0800 |
commit | 768d8ab0ce6732897f2a3f51fff9a95b9f9cafdd (patch) | |
tree | 98ec946a2e6bd7a54390a22ed42f2777fb9e0a52 /games | |
parent | 836e6a8b7661d6b6a3cf874cc32df5de2f2fba06 (diff) | |
download | freebsd-ports-gnome-768d8ab0ce6732897f2a3f51fff9a95b9f9cafdd.tar.gz freebsd-ports-gnome-768d8ab0ce6732897f2a3f51fff9a95b9f9cafdd.tar.zst freebsd-ports-gnome-768d8ab0ce6732897f2a3f51fff9a95b9f9cafdd.zip |
Update to 0.7.14
PR: 207159
Submitted by: tkato432 yahoo com
Sponsored by: Absolight
Diffstat (limited to 'games')
-rw-r--r-- | games/freedoko/Makefile | 70 | ||||
-rw-r--r-- | games/freedoko/distinfo | 4 |
2 files changed, 51 insertions, 23 deletions
diff --git a/games/freedoko/Makefile b/games/freedoko/Makefile index 23d0c9fcc8dc..89b939422288 100644 --- a/games/freedoko/Makefile +++ b/games/freedoko/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= freedoko -PORTVERSION= 0.7.13 +PORTVERSION= 0.7.14 CATEGORIES= games MASTER_SITES= SF/free-doko/FreeDoko%20source DISTNAME= FreeDoko_${PORTVERSION}.src @@ -11,6 +11,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Play the card game Doppelkopf LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/../doc/GPL LIB_DEPENDS= libgnet-2.0.so:${PORTSDIR}/net/gnet2 @@ -20,23 +21,35 @@ USES= gmake pkgconfig zip:infozip USE_GNOME= gtkmm24 MAKE_ENV= OS="${OPSYS}" DATADIR="${DATADIR}" DOCSDIR="${DOCSDIR}" -DESKTOP_ENTRIES="FreeDoko" "" "${DATADIR}/icon.png" "FreeDoko" "" "" +OPTIONS_DEFINE= DOCS OPENAL +OPTIONS_DEFAULT= OPENAL -PORTDATA= * -PORTDOCS= * -PLIST_FILES= bin/FreeDoko bin/freedoko - -OPTIONS_DEFINE= DOCS +OPENAL_USES= openal:alut +OPENAL_MAKE_ENV= INCLUDE_SOUND_ALUT="$$(pkg-config --cflags freealut)" \ + LIBS_SOUND_ALUT="$$(pkg-config --libs freealut)" \ + USE_SOUND=true USE_SOUND_ALUT=true post-patch: - @${FIND} ${WRKSRC} -name "*Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \ - 's|\.\./data|$$(DATADIR)|g ; \ - s|\.\./doc/manual|$$(DOCSDIR)/manual|g ; \ - s|@echo $$(CXX)|@true $$(CXX)|g ; \ - s|@$$(CXX)|$$(CXX)|g ; \ - s|make -C|$$(MAKE) -C|g' - @${REINPLACE_CMD} -e '/\/X11\//d ; \ - s|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/misc/setting.cpp + @${REINPLACE_CMD} -e \ + 's|@echo $$(CXX)|@true $$(CXX)|g ; \ + s|@$$(CXX)|$$(CXX)|g' \ + ${WRKSRC}/Makefile.rules + @${REINPLACE_CMD} -e \ + '/\/X11\//d ; \ + s|/usr/local/|${LOCALBASE}/|g' \ + ${WRKSRC}/misc/setting.cpp + @${REINPLACE_CMD} -e \ + '/^Exec/s|=.*|=FreeDoko| ; \ + /^Path/d ; \ + /Categories/s|Application;|GTK;|' \ + ${WRKSRC}/../bin/FreeDoko.desktop + +do-configure: + @(cd ${WRKSRC} && ${SED} -e \ + '/VALUE/s|#CPPFLAGS|CPPFLAGS| ; \ + s|\.\./data|$$(DATADIR)| ; \ + s|\.\./manual|$$(DOCSDIR)/manual|' \ + < Makefile.local.template > Makefile.local) post-build: @${FIND} ${WRKSRC}/../doc -empty -delete @@ -45,15 +58,30 @@ do-install: (cd ${WRKSRC} && ${INSTALL_PROGRAM} FreeDoko \ ${STAGEDIR}${PREFIX}/bin) ${LN} -sf FreeDoko ${STAGEDIR}${PREFIX}/bin/freedoko - @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC}/../bin && ${INSTALL_DATA} FreeDoko.desktop \ + ${STAGEDIR}${PREFIX}/share/applications) + ${MKDIR} ${STAGEDIR}${DATADIR} (cd ${WRKSRC} && ${INSTALL_DATA} icon.png logo.png \ ${STAGEDIR}${DATADIR}) -.for i in backgrounds cardsets rules translations - (cd ${WRKSRC}/../data && ${FIND} ${i} ! -name "*Makefile*" | \ - ${CPIO} --quiet -pdum ${STAGEDIR}${DATADIR}) +.for i in backgrounds cardsets iconsets rules sounds translations + (cd ${WRKSRC}/../data && ${COPYTREE_SHARE} ${i} \ + ${STAGEDIR}${DATADIR} "! -name *Makefile*") .endfor - @${MKDIR} ${STAGEDIR}${DOCSDIR} - @(cd ${WRKSRC}/../doc/manual && ${COPYTREE_SHARE} . \ + ${LN} -sf ${DATADIR}/icon.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/FreeDoko.png + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/../doc && ${INSTALL_DATA} Bugs Roadmap \ ${STAGEDIR}${DOCSDIR}) + ${MKDIR} ${STAGEDIR}${DOCSDIR}/de + (cd ${WRKSRC}/../doc/de && ${INSTALL_DATA} LiesMich.* \ + ${STAGEDIR}${DOCSDIR}/de) + ${MKDIR} ${STAGEDIR}${DOCSDIR}/en + (cd ${WRKSRC}/../doc/en && ${INSTALL_DATA} README.* \ + ${STAGEDIR}${DOCSDIR}/en) + ${MKDIR} ${STAGEDIR}${DOCSDIR}/manual + (cd ${WRKSRC}/../manual && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${DOCSDIR}/manual "! -name *Makefile*") .include <bsd.port.mk> diff --git a/games/freedoko/distinfo b/games/freedoko/distinfo index 4a81dda86f4f..4158d5056640 100644 --- a/games/freedoko/distinfo +++ b/games/freedoko/distinfo @@ -1,2 +1,2 @@ -SHA256 (FreeDoko_0.7.13.src.zip) = 256187c8a5bf6f21cf8c57e40fe25391e371d028d5adff67114c5a8576938cac -SIZE (FreeDoko_0.7.13.src.zip) = 17463949 +SHA256 (FreeDoko_0.7.14.src.zip) = a27ab7acabb28aa8d038f0022377ea3e68d52626d454beaf0f65e0b91c777de9 +SIZE (FreeDoko_0.7.14.src.zip) = 21959828 |