1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}

While here:
- trim headers
- convert to new options framework
This commit is contained in:
Baptiste Daroussin 2013-04-29 22:27:05 +00:00
parent 25c4307da1
commit 9ff06b3cbf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316850
54 changed files with 306 additions and 356 deletions

View File

@ -19,7 +19,9 @@ PORTDOCS= AUTHORS BUGS CREDITS ChangeLog NEWS README TODO \
README-br README-de README-es README-fr README-ru
SUB_FILES= pkg-message
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
USES+= gettext
@ -44,7 +46,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/csh|' ${WRKSRC}/yasr.conf
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}

View File

@ -23,7 +23,9 @@ GNU_CONFIGURE= yes
RESTRICTED= no permission to redistribute
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-multibyte-filename
.else
CONFIGURE_ARGS+= --enable-multibyte-filename=auto

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: wxguitar
# Date created: 19 Aug 2009
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= wxguitar
PORTVERSION= 1.01
@ -27,7 +23,9 @@ MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/wxGuitar
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -1,9 +1,5 @@
# Ports collection makefile for: gtkperf
# Date created: 2006-04-22
# Whom: Andreas Kohn <andreas@syndrom23.de>
#
# Created by: Andreas Kohn <andreas@syndrom23.de>
# $FreeBSD$
#
PORTNAME= gtkperf
PORTVERSION= 0.40
@ -20,7 +16,9 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= gtk20 gnomeprefix
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext iconv
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: geda-gattrib
# Date created: 26 June 2006
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
#
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
# $FreeBSD$
#
PORTNAME= gattrib
PORTVERSION= 1.4.3
@ -33,7 +29,9 @@ CONFIGURE_ARGS= --with-docdir="${DOCSDIR}" --disable-update-mime-database \
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: geda
# Date created: 4 April 2001
# Whom: bruno schwander <bruno@tinkerbox.org>
#
# Created by: bruno schwander <bruno@tinkerbox.org>
# $FreeBSD$
#
PORTNAME= gschem
PORTVERSION= 1.4.3
@ -36,7 +32,9 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAN1= gschem.1
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -38,11 +38,13 @@ WRKSRC= ${WRKDIR}/${SFNAME}
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
.else
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
SFNAME= ${PORTNAME}-sources-${DISTVERSION}
@ -59,7 +61,7 @@ RUN_DEPENDS+= konqueror:${PORTSDIR}/x11/kdebase3
RUN_DEPENDS+= xpdf:${PORTSDIR}/graphics/xpdf
.endif
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
post-extract:
cd ${WRKSRC} && ${TAR} -xf ${DISTDIR}/${DFNAME}.tgz
.endif
@ -72,14 +74,14 @@ pre-configure:
${WRKSRC}/common/gestfich.cpp
post-install:
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
${MKDIR} ${DATADIR}/internat
(cd ${WRKSRC}/internat && \
${COPYTREE_SHARE} \* ${DATADIR}/internat)
${RM} ${DATADIR}/internat/CMakeLists.txt
${FIND} ${DATADIR}/internat -name kicad.po -delete
.endif
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
@${ECHO_MSG}

View File

@ -25,7 +25,9 @@ CONFIGURE_ARGS= --disable-update-mime-database \
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -45,7 +45,9 @@ USE_GMAKE= yes
USE_XORG= ice pixman sm x11 xau xcomposite xcursor xdamage xdmcp xext \
xfixes xi xinerama xmu xrandr xrender xt xxf86vm
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@ -75,10 +77,4 @@ post-install:
${PREFIX}/etc/xdg/repsnapper/repsnapper.conf ; \
fi
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800000
IGNORE= needs acosl(3) function to compile
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: opencc
# Date created: 28 Nov 2011
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
#
PORTNAME= opencc
PORTVERSION= 0.3.0
@ -20,7 +16,9 @@ MAN1= opencc.1 opencc_dict.1
USES= cmake
USE_LDCONFIG= yes
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CMAKE_ARGS+= -DENABLE_GETTEXT=On
PLIST_SUB+= NLS=""

View File

@ -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" \

View File

@ -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:

View File

@ -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 \

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: bmp-docklet
# Date created: 10 April, 2005
# Whom: Adam Weinberger <adamw@FreeBSD.org>
#
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= bmp-docklet
PORTVERSION= 1.3
@ -27,12 +23,14 @@ USE_GNOME= gnomehack intlhack
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -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
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: genius
# Date created: 1 May 1999
# Whom: Andrey Zakhvatov
#
# Created by: Andrey Zakhvatov
# $FreeBSD$
#
PORTNAME= genius
PORTVERSION= 1.0.12
@ -33,13 +29,15 @@ USE_LDCONFIG= yes
INSTALLS_ICONS= yes
INSTALLS_OMF= yes
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USES= gettext
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: gimmie
# Date created: 28 06 2006
# Whom: pneumann@gmail.com
#
# Created by: pneumann@gmail.com
# $FreeBSD$
#
PORTNAME= gimmie
PORTVERSION= 0.2.7
@ -30,7 +26,9 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: gxmessage
# Date created: 9 March 2005
# Whom: Andriy Gapon <avg@icyb.net.ua>
#
# Created by: Andriy Gapon <avg@icyb.net.ua>
# $FreeBSD$
#
PORTNAME= gxmessage
PORTVERSION= 2.12.4
@ -22,7 +18,9 @@ INSTALLS_ICONS= yes
MAKE_ARGS+= INSTALL="${INSTALL_PROGRAM}"
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: kompose
# Date created: 31 Aug 2004
# Whom: Lauri Watts <lauri@kde.org>
#
# Created by: Lauri Watts <lauri@kde.org>
# $FreeBSD$
#
PORTNAME= kompose
PORTVERSION= 0.5.3
@ -28,12 +24,14 @@ INSTALLS_ICONS= yes
DOCSDIR= share/doc/HTML/en/${PORTNAME}
.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:

View File

@ -23,7 +23,9 @@ CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE}
MAN1= tpb.1
.ifndef(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@ -39,7 +41,7 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/tpbrc ${PREFIX}/etc/tpbrc.default
.ifndef(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_SCRIPT} ${WRKSRC}/doc/callback_example.sh ${DOCSDIR}
.endif

View File

@ -28,7 +28,9 @@ DESKTOP_ENTRIES= "VYM" \
"" \
false
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_QT4+= linguist_build
PLIST_SUB+= NLS=""
.else
@ -36,12 +38,12 @@ PLIST_SUB+= NLS="@comment "
.endif
post-patch:
.if defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/INSTALLS += doc/d' ${WRKSRC}/vym.pro
.endif
do-configure:
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
cd ${WRKSRC} && ${QT_LRELEASE} vym.pro
.endif
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
@ -49,7 +51,7 @@ do-configure:
post-install:
${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
${MKDIR} ${DATADIR}/lang
${INSTALL_DATA} ${WRKSRC}/lang/*.qm ${DATADIR}/lang/
.endif

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: x-tile
# Date created: 2010-09-17
# Whom: Pedro Garcia Freitas <sawp@sawp.com.br>
#
# Created by: Pedro Garcia Freitas <sawp@sawp.com.br>
# $FreeBSD$
#
PORTNAME= x-tile
PORTVERSION= 2.2.1
@ -21,12 +17,9 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= X_Tile
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
${WRKSRC}/x-tile ${WRKSRC}/linux/x-tile.desktop \
${WRKSRC}/modules/cons.py
.include <bsd.port.options.mk>
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@ -35,4 +28,9 @@ PYDISTUTILS_INSTALL_TARGET= --without-gettext install
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
${WRKSRC}/x-tile ${WRKSRC}/linux/x-tile.desktop \
${WRKSRC}/modules/cons.py
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: GNU make
# Date created: 11 September 1994
# Whom: jkh
#
# Created by: jkh
# $FreeBSD$
#
PORTNAME= gmake
PORTVERSION= 3.82
@ -22,7 +18,10 @@ COMMENT= GNU version of 'make' utility
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--program-prefix=g
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: gnucflow
# Date created: 07 Feb 2008
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
#
PORTNAME= gnucflow
PORTVERSION= 1.4
@ -26,8 +22,9 @@ INFO= cflow
PLIST_FILES= bin/cflow
.include <bsd.port.options.mk>
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
PLIST_FILES+= share/locale/da/LC_MESSAGES/cflow.mo \

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: id-utils
# Date created: 22 Aug 1996
# Whom: pst@freebsd.org
#
# Created by: pst@freebsd.org
# $FreeBSD$
#
PORTNAME= idutils
PORTVERSION= 4.6
@ -24,12 +20,14 @@ LDFLAGS+= -L${LOCALBASE}/lib
INFO= idutils
MAN1= aid.1 defid.1 eid.1 fid.1 fnid.1 gid.1 lid.1 mkid.1 xtokid.1
.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
# Port configure script will auto-install the .elc file if [x]emacs is found

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: m17n-db
# Date created: 29 May 2004
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
#
# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
# $FreeBSD$
#
PORTNAME= m17n-db
PORTVERSION= 1.6.3
@ -24,7 +20,9 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-charmaps=${CHARMAPSDIR}
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: motor
# Date created: 20 February 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= motor
PORTVERSION= 3.4.0
@ -19,7 +15,10 @@ USE_GMAKE= yes
USES= iconv
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE}
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--with-libintl-prefix=${LOCALBASE}
PLIST_SUB= NLS=""
@ -35,7 +34,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|strndup|my_strndup|' ${WRKSRC}/parser/src/parser.c \
${WRKSRC}/parser/src/strfn.c ${WRKSRC}/parser/include/strfn.h
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC} ; ${INSTALL_DATA} FAQ README ${DOCSDIR})

View File

@ -19,7 +19,9 @@ GNU_CONFIGURE= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USES+= gettext

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: quilt
# Date created: 20 Oct 2006
# Whom: Dirk Jagdmann <doj@cubic.org>
#
# Created by: Dirk Jagdmann <doj@cubic.org>
# $FreeBSD$
#
PORTNAME= quilt
PORTVERSION= 0.60
@ -28,7 +24,8 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} \
USE_GMAKE= yes
USE_PERL5= yes
OPTIONS= RPMBUILD "rpmbuild support" off
OPTIONS_DEFINE= RPMBUILD DOCS NLS
RPMBUILD_DESC= rpmbuild support
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-sed=${LOCALBASE}/bin/gsed \
@ -40,7 +37,7 @@ PORTDOCS= README README.MAIL quilt.pdf
.include <bsd.port.options.mk>
.if defined(WITH_RPMBUILD)
.if ${PORT_OPTIONS:MRPMBUILD}
BUILD_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm
RUN_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm
PLIST_SUB+= RPMBUILD=""
@ -49,7 +46,7 @@ CONFIGURE_ARGS+=--without-rpmbuild
PLIST_SUB+= RPMBUILD="@comment "
.endif
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
.else
@ -63,7 +60,7 @@ PLIST_SUB+= SENDMAIL=""
PLIST_SUB+= SENDMAIL="@comment "
.endif
.if defined(NOPORTDOCS)
.if ! ${PORT_OPTIONS:MDOCS}
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-Makefile.in
.endif

View File

@ -23,14 +23,14 @@ USES= pkgconfig
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS= NLS "Enable Native Language Support" on \
GIT "Enable Git support" off \
SVN "Enable Subversion support" on
OPTIONS_DEFINE= NLS GIT SVN
OPTIONS_DEFAULT= SVN
GIT_DESC= Git support
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--enable-nls
PLIST_SUB+= NLS=""
.else
@ -38,7 +38,7 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if defined(WITH_GIT)
.if ${PORT_OPTIONS:MGIT}
RUN_DEPENDS+= git:${PORTSDIR}/devel/git
CONFIGURE_ARGS+=--enable-git
PLIST_SUB+= GIT=""
@ -47,7 +47,7 @@ CONFIGURE_ARGS+=--disable-git
PLIST_SUB+= GIT="@comment "
.endif
.if !defined(WITHOUT_SVN)
.if ${PORT_OPTIONS:MSVN}
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion
CONFIGURE_ARGS+=--enable-subversion
PLIST_SUB+= SVN=""
@ -59,4 +59,4 @@ PLIST_SUB+= SVN="@comment "
post-install:
@-update-desktop-database
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -20,7 +20,9 @@ CPPFLAGS+= -I${LOCALBASE}/include
INFO= libidn
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@ -34,13 +36,13 @@ post-patch:
@${REINPLACE_CMD} -e 's|$$(AUTOMAKE)|${TRUE}|' \
-e 's|imagesdir = $$(infodir)|imagesdir = $$(docdir)|' \
${WRKSRC}/doc/Makefile.in
.if defined(NOPORTDOCS)
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's|install-data-am: install-imagesDATA install-info-am install-man|install-data-am: install-info-am install-man|' \
${WRKSRC}/doc/Makefile.in
.endif
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for i in FAQ NEWS README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: mydns
# Date created: 23 July 2002
# Whom: Simon Dick <simond@irrelevant.org>
#
# Created by: Simon Dick <simond@irrelevant.org>
# $FreeBSD$
#
PORTNAME= mydns
PORTVERSION= 1.1.0
@ -30,18 +26,18 @@ MAN8= mydns.8 mydnscheck.8 mydnsexport.8 mydnsimport.8 mydnsptrconvert.8 mydns-
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
.if defined(WITH_ALIAS)
.if ${PORT_OPTIONS:MALIAS}
CONFIGURE_ARGS+=--enable-alias
.endif
.if defined(WITH_OPENSSL)
.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-openssl \
--with-openssl-include=${OPENSSLINC} \
--with-openssl-lib=${OPENSSLLIB}
.endif
.if defined(WITH_PGSQL)
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
CONFIGURE_ARGS+=--without-mysql \
--with-pgsql-include=${LOCALBASE}/include \
@ -55,7 +51,7 @@ PKGNAMESUFFIX= -mysql
USE_MYSQL= yes
.endif
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@ -73,7 +69,7 @@ pre-fetch:
@${ECHO} ""
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/contrib
.for f in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: gnofin
# Date created: Sun Jul 18 1999
# Whom: domi@saargate.de
#
# Created by: domi@saargate.de
# $FreeBSD$
#
PORTNAME= gnofin
PORTVERSION= 0.8.4
@ -22,7 +18,9 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB= NLS=""
.else

View File

@ -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

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: fgrun
# Date created: 18 Oct 2008
# Whom: buganini@gmail.com
#
# Created by: buganini@gmail.com
# $FreeBSD$
#
PORTNAME= fgrun
PORTVERSION= 1.6.0
@ -26,16 +22,18 @@ CONFIGURE_ARGS= --with-boost="${LOCALBASE}"
USE_GMAKE= yes
USE_GL= gl
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
CONFIGURE_ARGS+= --disable-nls
.else
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
CONFIGURE_ARGS+= --disable-nls
.endif
post-patch:
.if defined(WITHOUT_NLS)
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} 's|SUBDIRS = src po msvc|SUBDIRS = src|' \
${WRKSRC}/Makefile.in
.endif

View File

@ -1,10 +1,5 @@
# ex:ts=8
# Ports collection makefile for: ggz-client-libs
# Date created: Oct 8, 2002
# Whom: ijliao
#
# Created by: ijliao
# $FreeBSD$
#
PORTNAME= ggz-client-libs
PORTVERSION= ${GGZ_VERSION}
@ -31,12 +26,14 @@ MAN7= ggz.7
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
post-patch:

View File

@ -1,10 +1,5 @@
# ex:ts=8
# Ports collection makefile for: ggz-gtk-client
# Date created: Oct 22, 2005
# Whom: ijliao
#
# Created by: ijliao
# $FreeBSD$
#
PORTNAME= ggz-gtk-client
PORTVERSION= ${GGZ_VERSION}
@ -25,12 +20,14 @@ MAN6= ggz-gtk.6
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
.include <bsd.port.pre.mk>

View File

@ -1,10 +1,5 @@
# ex:ts=8
# Ports collection makefile for: ggz-gtk-games
# Date created: Feb. 19, 2006
# Whom: yinjieh
#
# Created by: yinjieh
# $FreeBSD$
#
PORTNAME= ggz-gtk-games
PORTVERSION= ${GGZ_VERSION}
@ -24,12 +19,14 @@ USE_GGZ= client
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
post-install:

View File

@ -1,10 +1,5 @@
# ex:ts=8
# Ports collection makefile for: ggz-txt-client
# Date created: Oct 8, 2002
# Whom: ijliao
#
# Created by: ijliao
# $FreeBSD$
#
PORTNAME= ggz-txt-client
PORTVERSION= ${GGZ_VERSION}
@ -23,12 +18,14 @@ MAN6= ggz-txt.6
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
post-install:

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: glchess
# Date created: Wed Jul 18 08:35:56 EDT 2001
# Whom: Patrick Li <pat@databits.net>
#
# Created by: Patrick Li <pat@databits.net>
# $FreeBSD$
#
PORTNAME= glchess
PORTVERSION= 1.0.6
@ -23,12 +19,14 @@ USE_PYDISTUTILS= yes
GCONF_SCHEMAS= glchess.schemas
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment"
CONFIGURE_ARGS+= --disable-nls
.else
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
.else
PLIST_SUB+= NLS="@comment"
CONFIGURE_ARGS+= --disable-nls
.endif
post-patch:
@ -49,7 +47,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \
${PREFIX}/share/locale/$$lang/LC_MESSAGES/glchess.mo ; \
done)
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in ChangeLog README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: lincity
# Date created: 13 Feb 1997
# Whom: Julian Assange
#
# Created by: Julian Assange
# $FreeBSD$
#
PORTNAME= lincity
PORTVERSION= 1.13.1
@ -14,6 +10,8 @@ MASTER_SITES= SF/${PORTNAME}/Lincity%20Development%20Source/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Rich city simulation game for X
OPTIONS_DEFINE= SVGALIB NLS
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
.if ${CC} == "clang"
@ -27,10 +25,12 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAN6= lincity.6
.include <bsd.port.options.mk>
pre-configure:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c
.if defined(WITH_SVGALIB)
.if ${PORT_OPTIONS:MSVGALIB}
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
CONFIGURE_ARGS+= --without-x
PLIST_SUB= PROG="bin/lincity"
@ -40,7 +40,7 @@ CONFIGURE_ARGS+= --without-svga
PLIST_SUB= PROG="bin/xlincity"
.endif
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: lpairs
# Date created: 12 Sep 2008
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= lpairs
PORTVERSION= 1.0.4
@ -19,7 +15,9 @@ USE_SDL= sdl
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}

View File

@ -25,7 +25,9 @@ MAKE_JOBS_SAFE= yes
PORTDOCS= CHANGES COPYING README
MAN6= neverball.6 neverputt.6
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
MAKE_ENV+= ENABLE_NLS=1
LOCALE_DIRS= ca de es fi fr lv nn
@ -55,7 +57,7 @@ do-install:
${PREFIX}/share/pixmaps/${f}.png
@${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin/
.endfor
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
. for ii in ${LOCALE_DIRS}
@${MKDIR} ${PREFIX}/share/locale/${ii}/LC_MESSAGES
@${INSTALL_DATA} ${WRKSRC}/locale/${ii}/LC_MESSAGES/*.mo \
@ -63,7 +65,7 @@ do-install:
. endfor
.endif
.ifndef (NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
. for i in ${PORTDOCS}

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: springlobby
# Date created: 02 Sep 2009
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= springlobby
PORTVERSION= 0.143
@ -28,12 +24,14 @@ MAKE_JOBS_SAFE= yes
PORTDOCS= *
OPTIONS= TORRENT "Support automatic content downloads via torrent" on \
SOUND "Enable sound" on
OPTIONS_DEFINE= TORRENT SOUND DOCS NLS
OPTIONS_DEFAULT= TORRENT SOUND
TORRENT_DESC= Support automatic content downloads via torrent
SOUND_DESC= Enable sound
.include <bsd.port.options.mk>
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@ -41,13 +39,13 @@ CMAKE_ARGS+= -DOPTION_TRANSLATION_SUPPORT:BOOL=OFF
PLIST_SUB+= NLS="@comment "
.endif
.if !defined(WITHOUT_TORRENT)
.if ${PORT_OPTIONS:MTORRENT}
LIB_DEPENDS+= torrent-rasterbar.6:${PORTSDIR}/net-p2p/libtorrent-rasterbar-15
.else
CMAKE_ARGS+= -DOPTION_TORRENT_SYSTEM:BOOL=OFF
.endif
.if !defined(WITHOUT_SOUND)
.if ${PORT_OPTIONS:MSOUND}
USE_OPENAL= al
.else
CMAKE_ARGS+= -DOPTION_SOUND:BOOL=OFF
@ -57,7 +55,7 @@ post-patch:
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
${WRKSRC}/src/utils/curlhelper.h \
${WRKSRC}/src/utils/downloader.cpp
.if defined(NOPORTDOCS)
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/install.*FILES.*share\/doc/ d' \
${WRKSRC}/CMakeLists.txt
.endif

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: typespeed
# Date created: 06 September 2003
# Whom: refugee
#
# Created by: refugee
# $FreeBSD$
#
PORTNAME= typespeed
PORTVERSION= 0.6.5
@ -28,12 +24,14 @@ SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= SCOREDIR="${SCOREDIR}" SCOREFILE="${SCOREFILE}" WRKSRC="${WRKSRC}"
MAN1= typespeed.1
.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
post-patch:
@ -52,7 +50,7 @@ do-install:
${MKDIR} ${DATADIR}/words
${FIND} ${WRKSRC}/words/ -name "words.*" -type f \
-exec ${INSTALL_DATA} {} ${DATADIR}/words \;
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
.for i in de_DE fr_FR it
${MKDIR} ${PREFIX}/share/locale/${i}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${i}.gmo \

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: zaz
# Date created: 25 Aug 2009
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= zaz
PORTVERSION= 1.0.0
@ -32,7 +28,9 @@ CONFIGURE_ARGS= --with-icondir="${PREFIX}/share/pixmaps"
PORTDOCS= *
# Unconditially disable NLS for now: the game segfaults with 8bit locales
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@ -43,7 +41,7 @@ PLIST_SUB+= NLS="@comment "
post-patch:
@${REINPLACE_CMD} -e '/^zazdocdir =/ s|$${prefix}/doc|$${prefix}/share/doc|' \
${WRKSRC}/Makefile.in
.if defined(NOPORTDOCS)
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docDATA||' \
${WRKSRC}/Makefile.in
.endif

View File

@ -35,7 +35,9 @@ DESKTOP_ENTRIES= "AlbumShaper" \
"Qt;Graphics;" \
"false"
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
@ -47,7 +49,7 @@ MYDISTDOCS= AlbumShaper.doc install packageHowTo.txt readme.txt \
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
${WRKSRC}/AlbumShaper.pro
.if defined(WITHOUT_NLS)
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/INSTALLS\ +=\ translations/d' \
${WRKSRC}/AlbumShaper.pro
.endif
@ -57,7 +59,7 @@ pre-build:
qmake AlbumShaper.pro )
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${MYDISTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}

View File

@ -19,12 +19,14 @@ GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ENV+= POPT_CFLAGS=-I${LOCALBASE}/include POPT_LIBS="-L${LOCALBASE}/lib -lpopt"
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls --without-libiconv-prefix
PLIST_SUB+= NLS="@comment "
.else
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext iconv
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls --without-libiconv-prefix
PLIST_SUB+= NLS="@comment "
.endif
MAN1= exif.1

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: gimp-focusblur
# Date created: 03 Jun 2009
# Whom: Denis Barov <dindin@dindin.ru>
#
# Created by: Denis Barov <dindin@dindin.ru>
# $FreeBSD$
#
PORTNAME= focusblur
PORTVERSION= 3.2.6
@ -34,7 +30,9 @@ PLIST_SUB= PLUGIN_DIR=${PLUGIN_DIR}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -16,7 +16,9 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: gqview
# Date Created: 27 Oct 1998
# Whom: Vanilla Pooh Shu <vanilla@FreeBSD.org>
#
# Created by: Vanilla Pooh Shu <vanilla@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= gqview
PORTVERSION= 2.0.4
@ -30,12 +26,14 @@ CONFLICTS= gqview-devel-[0-9]*
# Restrict to stable (even) versions, indicated by the second component.
PORTSCOUT= limitw:1,even
.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:
@ -52,7 +50,7 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKSRC}/gqview.png ${PREFIX}/share/pixmaps
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: gscan2pdf
# Date created: 4 September 2006
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= gscan2pdf
PORTVERSION= 1.0.4
@ -72,7 +68,9 @@ PERL_CONFIGURE= yes
MAN1= ${PORTNAME}.1 scanadf-perl.1 scanimage-perl.1
PORT_VERBS= ${PORTNAME} Gscan2pdf
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
CPPFLAGS+= -I${LOCALBASE}/include

View File

@ -24,7 +24,9 @@ CONFIGURE_ARGS= --with-dps-includes=${LOCALBASE}/include \
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(WITHOUT_NLS)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else

View File

@ -25,13 +25,15 @@ MAKE_JOBS_SAFE= yes
MAN3= libgphoto2.3 libgphoto2_port.3
.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 "
USES+= iconv
.else
USES+= gettext
PLIST_SUB+= NLS=""
.endif
CONFIGURE_ENV+= LIBUSB_LIBS="-lusb" LIBUSB_CFLAGS="-I/usr/include"
@ -43,7 +45,7 @@ post-patch:
s|-g -O2||g ; \
/grep -i linux/s|; fi ; then|; else false; fi ; then|' ${WRKSRC}/${file}
.endfor
.if !defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|(LDFLAGS) -o|(LDFLAGS) -lintl -o|' ${WRKSRC}/libgphoto2_port/libgphoto2_port/Makefile.in
.endif
@${REINPLACE_CMD} -e '/test.*udevscriptdir/d ; s| "$$(DESTDIR)$$(udevscriptdir)"||' ${WRKSRC}/libgphoto2_port/usb/Makefile.in ${WRKSRC}/packaging/generic/Makefile.in

View File

@ -22,14 +22,18 @@ CONFIGURE_ARGS= --with-gtk2
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if defined(WITH_LIBXINE)
OPTIONS_DEFINE= LIBXINE MPLAYER NLS
OPTIONS_DEFAULT= LIBXINE
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLIBXINE}
LIB_DEPENDS+= xine.2:${PORTSDIR}/multimedia/libxine
CONFIGURE_ARGS+= --enable-xine
.elif defined(WITH_MPLAYER)
.elif ${PORT_OPTIONS:MMPLAYER}
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
CONFIGURE_ARGS+= --enable-mplayer
.endif
.if defined(WITHOUT_NLS)
.if ! ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= WITH_NLS="@comment "
.else