From b536a2f6214b62f1c1eeafe7eb537d48267f3cc3 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Fri, 14 Jun 2013 12:25:13 +0000 Subject: - Fix WWW - Add LICENSE - Make NLS optional - Install manpages PR: 179329 Submitted by: nemysis --- games/plee-the-bear/Makefile | 30 ++++++++++++++++++++++++++++-- games/plee-the-bear/pkg-descr | 2 +- games/plee-the-bear/pkg-plist | 8 ++++---- 3 files changed, 33 insertions(+), 7 deletions(-) (limited to 'games') diff --git a/games/plee-the-bear/Makefile b/games/plee-the-bear/Makefile index cea924f1f4bb..78438b90814f 100644 --- a/games/plee-the-bear/Makefile +++ b/games/plee-the-bear/Makefile @@ -3,13 +3,20 @@ PORTNAME= plee-the-bear PORTVERSION= 0.6.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/Plee%20the%20Bear/${PORTVERSION:R} MAINTAINER= amdmi3@FreeBSD.org COMMENT= 2D platform jump and run game +LICENSE= GPLv2 CCbySA3 +LICENSE_COMB= dual +LICENSE_NAME_CCbySA3=Attribution-ShareAlike 3.0 Unported +LICENSE_FILE_CCbySA3=${WRKSRC}/CCPL +LICENSE_PERMS_CCbySA3=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +BUILD_DEPENDS= docbook-to-man:${PORTSDIR}/textproc/docbook-to-man LIB_DEPENDS= boost_filesystem:${PORTSDIR}/devel/boost-libs \ claw_application:${PORTSDIR}/devel/libclaw @@ -21,8 +28,27 @@ USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes USE_GCC= 4.6+ -USES= cmake gettext +USES= cmake CMAKE_ARGS= -Dlibclaw_DIR="${LOCALBASE}/share/libclaw/cmake" \ -DBEAR_NO_EDITOR=YES +MAN6= plee-the-bear.6 running-bear.6 + +.include + +.if ${PORT_OPTIONS:MNLS} +USES+= gettext +PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/CMakeLists.txt +.if ! ${PORT_OPTIONS:MNLS} + @${REINPLACE_CMD} -e 's|locale||' \ + ${WRKSRC}/bear-engine/desktop/CMakeLists.txt \ + ${WRKSRC}/plee-the-bear/desktop/CMakeLists.txt +.endif + .include diff --git a/games/plee-the-bear/pkg-descr b/games/plee-the-bear/pkg-descr index dc4198be88a3..9cded3a5af00 100644 --- a/games/plee-the-bear/pkg-descr +++ b/games/plee-the-bear/pkg-descr @@ -3,4 +3,4 @@ the best platform games of the 90's (the golden age of this kind of games). You're a bear, trying to catch his son, which ran away after he ate all your honey. -WWW: http://plee-the-bear.sourceforge.net/ +WWW: http://sourceforge.net/projects/plee-the-bear/ diff --git a/games/plee-the-bear/pkg-plist b/games/plee-the-bear/pkg-plist index 11feb9809d2c..d9083b50cff9 100644 --- a/games/plee-the-bear/pkg-plist +++ b/games/plee-the-bear/pkg-plist @@ -108,10 +108,10 @@ share/icons/hicolor/24x24/apps/ptb.png share/icons/hicolor/32x32/apps/ptb.png share/icons/hicolor/48x48/apps/ptb.png share/icons/hicolor/64x64/apps/ptb.png -share/locale/fr/LC_MESSAGES/bear-engine.mo -share/locale/fr/LC_MESSAGES/plee-the-bear.mo -share/locale/nn/LC_MESSAGES/bear-engine.mo -share/locale/nn/LC_MESSAGES/plee-the-bear.mo +%%NLS%%share/locale/fr/LC_MESSAGES/bear-engine.mo +%%NLS%%share/locale/fr/LC_MESSAGES/plee-the-bear.mo +%%NLS%%share/locale/nn/LC_MESSAGES/bear-engine.mo +%%NLS%%share/locale/nn/LC_MESSAGES/plee-the-bear.mo share/pixmaps/ptb.png share/pixmaps/ptb.xpm %%DATADIR%%/animation/air_bubble_generator.canim -- cgit