aboutsummaryrefslogtreecommitdiffstats
path: root/comms/xlog
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-04-30 06:27:05 +0800
committerbapt <bapt@FreeBSD.org>2013-04-30 06:27:05 +0800
commit31426e557795495adeb04aa9e16edb4c93184379 (patch)
tree8583dfe71adaea6ce266633e1799cd602516b801 /comms/xlog
parentb36431c8212c7fe9fc83e2f7412d5935b6e10e6e (diff)
downloadfreebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.tar.gz
freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.tar.zst
freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.zip
Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here: - trim headers - convert to new options framework
Diffstat (limited to 'comms/xlog')
-rw-r--r--comms/xlog/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/comms/xlog/Makefile b/comms/xlog/Makefile
index d16bb741b38e..2c64a7e7c333 100644
--- a/comms/xlog/Makefile
+++ b/comms/xlog/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: xlog
-# Date created: 2002-11-05
-# Whom: Patrick Gardella <patrick@FreeBSD.org>
-#
+# Created by: Patrick Gardella <patrick@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= xlog
PORTVERSION= 2.0.5
@@ -28,17 +24,19 @@ LIB_DEPENDS+= hamlib:${PORTSDIR}/comms/hamlib
MAN1= xlog.1
LICENSE= GPLv3
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
-.else
-PLIST_SUB+= NLS=""
.endif
post-patch:
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-D.*_DISABLE_DEPRECATED||g'
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's|desktop doc dxcc|desktop dxcc|g' \
${WRKSRC}/data/Makefile.in
@${REINPLACE_CMD} -e \