Finish converting french to new options framework

This commit is contained in:
Baptiste Daroussin 2013-03-26 07:46:53 +00:00
parent 445b2bb748
commit 36b0a6fa76
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315267

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: verbiste # Created by: Dan Phillips <dan-ports@dp.id.au>
# Date created: 16 November 2005
# Whom: Dan Phillips <dan-ports@dp.id.au>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= verbiste PORTNAME= verbiste
PORTVERSION= 0.1.33 PORTVERSION= 0.1.33
@ -13,15 +9,16 @@ MASTER_SITES= http://perso.b2b2c.ca/sarrazip/dev/
MAINTAINER= dereckson@gmail.com MAINTAINER= dereckson@gmail.com
COMMENT= French verb conjugator/deconjugator COMMENT= French verb conjugator/deconjugator
OPTIONS= GTK "With GTK+ application" no \ OPTIONS_DEFINE= GTK2 GNOME
GNOME "With GNOME application" no
LICENSE= GPLv2 LICENSE= GPLv2
USES= pathfix
USE_AUTOTOOLS= libtool USE_AUTOTOOLS= libtool
USE_GNOME= gnomehack ltverhack libxml2 USE_GNOME= ltverhack libxml2
USE_ICONV= yes USE_ICONV= yes
USE_LDCONFIG= yes USE_LDCONFIG= yes
USE_PKGCONFIG= build
CPPFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib
@ -30,9 +27,9 @@ MAN1= french-conjugator.1 french-deconjugator.1
MAN3= verbiste.3 MAN3= verbiste.3
MANLANG= "" fr MANLANG= "" fr
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_GTK) .if ${PORT_OPTIONS:MGTK2}
CONFIGURE_ARGS+=--with-gtk-app CONFIGURE_ARGS+=--with-gtk-app
USE_GNOME+= gtk20 USE_GNOME+= gtk20
PLIST_SUB+= HASGTK="" PLIST_SUB+= HASGTK=""
@ -40,7 +37,7 @@ PLIST_SUB+= HASGTK=""
PLIST_SUB+= HASGTK="@comment " PLIST_SUB+= HASGTK="@comment "
.endif .endif
.if defined(WITH_GNOME) .if ${PORT_OPTIONS:MGNOME}
CONFIGURE_ARGS+=--with-gnome-app CONFIGURE_ARGS+=--with-gnome-app
USE_GNOME+= gnomeprefix libgnomeui USE_GNOME+= gnomeprefix libgnomeui
PLIST_SUB+= HASGNOME="" PLIST_SUB+= HASGNOME=""
@ -48,7 +45,7 @@ PLIST_SUB+= HASGNOME=""
PLIST_SUB+= HASGNOME="@comment " PLIST_SUB+= HASGNOME="@comment "
.endif .endif
.if defined(WITH_GTK) || defined(WITH_GNOME) .if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGNOME}
USE_GETTEXT= yes USE_GETTEXT= yes
PLIST_SUB+= HASGUI="" PLIST_SUB+= HASGUI=""
.else .else
@ -62,4 +59,4 @@ post-install:
.endfor .endfor
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.pl ${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/examples/*.pl ${EXAMPLESDIR}
.include <bsd.port.post.mk> .include <bsd.port.mk>