summaryrefslogtreecommitdiff
path: root/finance/grisbi
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
commit9ff06b3cbf038359059e40e0db31ba0cbe996d0f (patch)
tree8583dfe71adaea6ce266633e1799cd602516b801 /finance/grisbi
parentUpdate to 2.3.0 (diff)
Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here: - trim headers - convert to new options framework
Notes
Notes: svn path=/head/; revision=316850
Diffstat (limited to 'finance/grisbi')
-rw-r--r--finance/grisbi/Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/finance/grisbi/Makefile b/finance/grisbi/Makefile
index 048e9045e372..1cb7336ce041 100644
--- a/finance/grisbi/Makefile
+++ b/finance/grisbi/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: grisbi
-# Date created: 19 November 2002
-# Whom: Thierry Thomas <thierry@pompo.net>
-#
+# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
-#
PORTNAME= grisbi
PORTVERSION= 0.8.9
@@ -32,18 +28,20 @@ MAN1= grisbi.1
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
pre-configure:
${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \
${WRKSRC}/${CONFIGURE_SCRIPT}
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e "s|pixmaps help|pixmaps|" ${WRKSRC}/Makefile.in
.endif