aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2019-11-12 05:05:09 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2019-11-12 05:05:09 +0800
commit87bd1a43a4543764125ca27a0c08dc58e64320bb (patch)
tree6711a4618887cb3b1b58260e95d424f2e70edced /games
parent8ea3e3c2f2e44ab37dd48d9bc9911dfb80ba4367 (diff)
downloadfreebsd-ports-gnome-87bd1a43a4543764125ca27a0c08dc58e64320bb.tar.gz
freebsd-ports-gnome-87bd1a43a4543764125ca27a0c08dc58e64320bb.tar.zst
freebsd-ports-gnome-87bd1a43a4543764125ca27a0c08dc58e64320bb.zip
- Fix LICENSE (COPYING is GPLv3, but source files mention GPLv2+)
- Add LICENSE_FILE - Switch to USES=localbase - Optionize NLS (doesn't build with --disable-nls, so just make translation files installation optional)
Diffstat (limited to 'games')
-rw-r--r--games/pushover/Makefile10
-rw-r--r--games/pushover/pkg-plist16
2 files changed, 13 insertions, 13 deletions
diff --git a/games/pushover/Makefile b/games/pushover/Makefile
index 32ee2b328731..056a5d356c44 100644
--- a/games/pushover/Makefile
+++ b/games/pushover/Makefile
@@ -10,15 +10,14 @@ MASTER_SITES= SF/${PORTNAME}/Pushover/${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Puzzle game where the goal is to push over all dominoes
-LICENSE= GPLv3
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png
+USES= gettext gmake localbase:ldflags lua pkgconfig sdl
GNU_CONFIGURE= yes
USE_SDL= sdl mixer ttf
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-USES= gettext gmake lua pkgconfig sdl
PORTDOCS= *
PORTDATA= *
@@ -30,7 +29,8 @@ DESKTOP_ENTRIES="Pushover" \
"Game;LogicGame;" \
false
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
post-patch:
@${REINPLACE_CMD} -e 's|lua5.1|lua-${LUA_VER}|' ${WRKSRC}/configure
diff --git a/games/pushover/pkg-plist b/games/pushover/pkg-plist
index c5a8619b4462..417584ee74c7 100644
--- a/games/pushover/pkg-plist
+++ b/games/pushover/pkg-plist
@@ -1,9 +1,9 @@
bin/pushover
-share/locale/cs/LC_MESSAGES/pushover.mo
-share/locale/de/LC_MESSAGES/pushover.mo
-share/locale/eo/LC_MESSAGES/pushover.mo
-share/locale/es/LC_MESSAGES/pushover.mo
-share/locale/fr/LC_MESSAGES/pushover.mo
-share/locale/it/LC_MESSAGES/pushover.mo
-share/locale/ru/LC_MESSAGES/pushover.mo
-share/locale/sv/LC_MESSAGES/pushover.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/pushover.mo
+%%NLS%%share/locale/de/LC_MESSAGES/pushover.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/pushover.mo
+%%NLS%%share/locale/es/LC_MESSAGES/pushover.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/pushover.mo
+%%NLS%%share/locale/it/LC_MESSAGES/pushover.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/pushover.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/pushover.mo