aboutsummaryrefslogtreecommitdiffstats
path: root/astro/gpsdrive
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-04 04:18:05 +0800
committeradamw <adamw@FreeBSD.org>2014-07-04 04:18:05 +0800
commitf8473fc44d4a0389299091429f5719e7e96f12ce (patch)
treea6ff6b0c9f83cec367f6f3926f2bec01d392095c /astro/gpsdrive
parent67b8d601c828770bce4f61e4b6a64a2bbb1e95e6 (diff)
downloadfreebsd-ports-gnome-f8473fc44d4a0389299091429f5719e7e96f12ce.tar.gz
freebsd-ports-gnome-f8473fc44d4a0389299091429f5719e7e96f12ce.tar.zst
freebsd-ports-gnome-f8473fc44d4a0389299091429f5719e7e96f12ce.zip
Reduce unecessary bsd.port.options.mk inclusion.
Diffstat (limited to 'astro/gpsdrive')
-rw-r--r--astro/gpsdrive/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/astro/gpsdrive/Makefile b/astro/gpsdrive/Makefile
index 332dfd03510e..80d911d1d65a 100644
--- a/astro/gpsdrive/Makefile
+++ b/astro/gpsdrive/Makefile
@@ -26,19 +26,15 @@ LIBS+= -L${LOCALBASE}/lib -lgmodule-2.0
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
+NLS_USES= gettext
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} 's/test "$$CC" = "gcc"/false/' ${WRKSRC}/configure
-.if ! ${PORT_OPTIONS:MNLS}
+.if empty(PORT_OPTIONS:MNLS)
@${REINPLACE_CMD} 's|SUBDIRS = src po man|SUBDIRS = src man|' \
${WRKSRC}/Makefile.in
.endif