diff options
Diffstat (limited to 'comms')
-rw-r--r-- | comms/gpredict/Makefile | 15 | ||||
-rw-r--r-- | comms/gsmlib/Makefile | 17 | ||||
-rw-r--r-- | comms/xlog/Makefile | 16 |
3 files changed, 21 insertions, 27 deletions
diff --git a/comms/gpredict/Makefile b/comms/gpredict/Makefile index be804c71b11c..a9a88545fcae 100644 --- a/comms/gpredict/Makefile +++ b/comms/gpredict/Makefile @@ -1,7 +1,4 @@ -# New ports collection makefile for: gpredict -# Date created: 2004-01-22 -# Whom: Matt Dawson <matt@mattsnetwork.co.uk> -# +# Created by: Matt Dawson <matt@mattsnetwork.co.uk> # $FreeBSD$ PORTNAME= gpredict @@ -27,12 +24,14 @@ MAN1= gpredict.1 LICENSE= GPLv2 -.if defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +USES+= gettext +PLIST_SUB+= NLS="" +.else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " -.else -USES= gettext -PLIST_SUB+= NLS="" .endif DESKTOP_ENTRIES="GPREDICT" \ diff --git a/comms/gsmlib/Makefile b/comms/gsmlib/Makefile index 2193ea39cfb1..7ab118486d2e 100644 --- a/comms/gsmlib/Makefile +++ b/comms/gsmlib/Makefile @@ -1,10 +1,5 @@ -# ex:ts=8 -# Ports collection makefile for: gsmlib -# Date created: Apr 24, 2002 -# Whom: ijliao -# +# Created by: ijliao # $FreeBSD$ -# PORTNAME= gsmlib PORTVERSION= 1.10 @@ -31,12 +26,14 @@ CPPFLAGS+= -I${LOCALBASE}/include -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT \ ${PTHREAD_CFLAGS} LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib -.if defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +USES+= gettext +PLIST_SUB+= NLS="" +.else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " -.else -USES= gettext -PLIST_SUB+= NLS="" .endif post-patch: 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 \ |