1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Convert options to the new format

PR:		ports/172549
Submitted by:	pgj
Approved by:	maintainer
Feature safe:	yes
This commit is contained in:
Gabor Pali 2012-10-17 09:07:26 +00:00
parent e9f7f0195e
commit a6e419b327
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306005

View File

@ -1,9 +1,5 @@
# ports collection makefile for: jigdo # Created by: Attila Nagy <bra@fsn.hu>
# Date created: 23 July 2002
# Whom: Attila Nagy <bra@fsn.hu>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= jigdo PORTNAME= jigdo
PORTVERSION= 0.7.3 PORTVERSION= 0.7.3
@ -26,13 +22,15 @@ WITH_BDB_VER?= 43
CPPFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include
OPTIONS= GUI "Build the gtk2 gui" off \ OPTIONS_DEFINE= GUI BDB NLS
BDB "Build with Berkeley DB support (for jigdo-file cache)" on \ OPTIONS_DEFAULT= BDB NLS
NLS "Native Language Support" on
.include <bsd.port.pre.mk> GUI_DESC= Build the gtk2 gui
BDB_DESC= Build with Berkeley DB support (for jigdo-file cache)
.if defined(WITH_GUI) .include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGUI}
CONFIGURE_ARGS+= --with-gui CONFIGURE_ARGS+= --with-gui
LIB_DEPENDS+= gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20 \ LIB_DEPENDS+= gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20 \
curl:${PORTSDIR}/ftp/curl curl:${PORTSDIR}/ftp/curl
@ -43,7 +41,7 @@ CONFIGURE_ARGS+=--without-gui
PLIST_SUB+= GUI="@comment " PLIST_SUB+= GUI="@comment "
.endif .endif
.if !defined(WITHOUT_BDB) .if ${PORT_OPTIONS:MBDB}
CONFIGURE_ENV+= LIBS=-L${BDB_LIB_DIR} CONFIGURE_ENV+= LIBS=-L${BDB_LIB_DIR}
CPPFLAGS+= -I${BDB_INCLUDE_DIR} CPPFLAGS+= -I${BDB_INCLUDE_DIR}
CONFIGURE_ARGS+=--with-libdb=-l${BDB_LIB_CXX_NAME} CONFIGURE_ARGS+=--with-libdb=-l${BDB_LIB_CXX_NAME}
@ -52,7 +50,7 @@ USE_BDB= ${WITH_BDB_VER}
CONFIGURE_ARGS+=--without-libdb CONFIGURE_ARGS+=--without-libdb
.endif .endif
.if !defined(WITHOUT_NLS) .if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes USE_GETTEXT= yes
CONFIGURE_ARGS+=--enable-nls CONFIGURE_ARGS+=--enable-nls
PLIST_SUB+= NLS="" PLIST_SUB+= NLS=""
@ -64,4 +62,4 @@ PLIST_SUB+= NLS="@comment "
post-install: post-install:
@${STRIP_CMD} ${PREFIX}/bin/jigdo-file @${STRIP_CMD} ${PREFIX}/bin/jigdo-file
.include <bsd.port.post.mk> .include <bsd.port.mk>