aboutsummaryrefslogtreecommitdiffstats
path: root/games/lpairs
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-11-18 03:26:44 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-11-18 03:26:44 +0800
commit3f1291fb1ac9993803fbe0528eae053bfcba36f5 (patch)
treefe0ae43338bda2b8fd72ed9680b011386d0ed4d5 /games/lpairs
parentae5f03effeb3c20095b4053f5f7f680cea36992a (diff)
downloadfreebsd-ports-gnome-3f1291fb1ac9993803fbe0528eae053bfcba36f5.tar.gz
freebsd-ports-gnome-3f1291fb1ac9993803fbe0528eae053bfcba36f5.tar.zst
freebsd-ports-gnome-3f1291fb1ac9993803fbe0528eae053bfcba36f5.zip
- Add LICENSE
- Use new OPTIONS features
Diffstat (limited to 'games/lpairs')
-rw-r--r--games/lpairs/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/games/lpairs/Makefile b/games/lpairs/Makefile
index e0248f072fe2..801cc24ae5ec 100644
--- a/games/lpairs/Makefile
+++ b/games/lpairs/Makefile
@@ -10,6 +10,9 @@ MASTER_SITES= SF/lgames/${PORTNAME}/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Classical memory game
+LICENSE= GPLv2 # or later
+LICENSE_FILE= ${WRKSRC}/COPYING
+
GNU_CONFIGURE= yes
USE_SDL= sdl
CPPFLAGS+= -I${LOCALBASE}/include
@@ -19,16 +22,10 @@ PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
OPTIONS_DEFINE= NLS
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}
-PLIST_FILES+= share/locale/de/LC_MESSAGES/lpairs.mo
-.else
-CONFIGURE_ARGS+=--disable-nls
-.endif
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
+NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE}
+NLS_PLIST_FILES= share/locale/de/LC_MESSAGES/lpairs.mo
post-patch:
@${REINPLACE_CMD} -e '/^LIBS =/ s|$$| $${INTLLIBS}|' \