- convert to USES=gettext

Approved by:	portmgr (bapt@)
This commit is contained in:
Jason Helfman 2013-05-05 23:01:49 +00:00
parent 93ea9ccc57
commit ce6e27aa9e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317448
2 changed files with 34 additions and 35 deletions

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: bluefish-devel
# Date created: 2009-10-03
# Whom: Sylvio Cesar Teixeira <sylvio@FreeBSD.org>
#
# Created by: Sylvio Cesar Teixeira <sylvio@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= bluefish
PORTVERSION= 1.3.7
@ -25,13 +21,6 @@ INSTALLS_ICONS= yes
DATADIR= share/${PORTNAME}-unstable
.if !defined(WITHOUT_WEBLINT)
RUN_DEPENDS+= weblint:${PORTSDIR}/www/weblint
.endif
.if defined(WITH_TIDY)
RUN_DEPENDS+= tidy:${PORTSDIR}/www/tidy
.endif
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gnomeprefix gtk20 gnomevfs2 gnomemimedata desktopfileutils
@ -45,6 +34,15 @@ CONFIGURE_ARGS= --with-freedesktop_org-menu=${PREFIX}/share/applications \
--without-gnome2_4-appreg \
--with-icon-path=${PREFIX}/share/pixmaps
.include <bsd.port.options.mk>
.if !defined(WITHOUT_WEBLINT)
RUN_DEPENDS+= weblint:${PORTSDIR}/www/weblint
.endif
.if defined(WITH_TIDY)
RUN_DEPENDS+= tidy:${PORTSDIR}/www/tidy
.endif
# Turns debugging output on
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --with-debugging-output
@ -54,8 +52,22 @@ CONFIGURE_ARGS+= --with-debugging-output
CONFIGURE_ARGS+= --disable-splash-screen
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
MAN1= bluefish-unstable.1
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mlibgnomeui}!=""
USE_GNOME+= libgnomeui
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "Bluefish has the following tunable option(s):"
@ -71,18 +83,4 @@ pre-everything::
pre-install:
@${MKDIR} ${PREFIX}/share/mime
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mlibgnomeui}!=""
USE_GNOME+= libgnomeui
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.include <bsd.port.post.mk>

View file

@ -40,23 +40,18 @@ WEBLINT_DESC= Include Weblint syntax and style checker
OPTIONS_DEFAULT= WEBLINT
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if ${HAVE_GNOME:Mlibgnomeui}!=""
USE_GNOME+= libgnomeui
.endif
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --with-debugging-output
.endif
.if defined(WITHOUT_NLS)
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if ${PORT_OPTIONS:MTIDY}
@ -67,6 +62,12 @@ RUN_DEPENDS+= tidy4:${PORTSDIR}/www/tidy
RUN_DEPENDS+= weblint:${PORTSDIR}/www/weblint
.endif
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mlibgnomeui}!=""
USE_GNOME+= libgnomeui
.endif
pre-install:
@${MKDIR} ${PREFIX}/share/mime