aboutsummaryrefslogtreecommitdiff
path: root/emulators/mednafen
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-26 16:39:14 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-26 16:39:14 +0000
commitbc62127a69294fd3340ea793685953d98ff835dc (patch)
treed124c4d6f965d5152806ebfbf40e1b5a25860ddb /emulators/mednafen
parente8dd5f52410bdf2a989023706699373d47296008 (diff)
downloadports-bc62127a69294fd3340ea793685953d98ff835dc.tar.gz
ports-bc62127a69294fd3340ea793685953d98ff835dc.zip
Notes
Diffstat (limited to 'emulators/mednafen')
-rw-r--r--emulators/mednafen/Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/emulators/mednafen/Makefile b/emulators/mednafen/Makefile
index 0465d827216f..e09c8bdf8f36 100644
--- a/emulators/mednafen/Makefile
+++ b/emulators/mednafen/Makefile
@@ -1,9 +1,4 @@
-# New ports collection makefile for: mednafen
-# Date created: 2006-02-28
-# Whom: Charlie & <root@bsd.org.pe>
-#
# $FreeBSD$
-#
PORTNAME= mednafen
PORTVERSION= 0.8.B
@@ -30,17 +25,17 @@ LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD}
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-message
-OPTIONS= NLS "Native Language Support" on
+OPTIONS_DEFINE= NLS DOCS
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
-USE_GETTEXT= yes
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
PLIST_SUB+= NLS=""
FLAG_NLS= true
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
.if ${ARCH}==sparc64
@@ -53,10 +48,10 @@ pre-configure:
${WRKSRC}/configure
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>