diff options
author | pgj <pgj@FreeBSD.org> | 2012-10-17 17:07:26 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2012-10-17 17:07:26 +0800 |
commit | 352b1048095b3fbe3eb3e1049f31596d233325c6 (patch) | |
tree | 52df554e5ab45062ed95e80a7e3cf6210cc92c22 /net-p2p | |
parent | 027a0fc58474f83f5cb7423970b2b41a2df74d6a (diff) | |
download | freebsd-ports-gnome-352b1048095b3fbe3eb3e1049f31596d233325c6.tar.gz freebsd-ports-gnome-352b1048095b3fbe3eb3e1049f31596d233325c6.tar.zst freebsd-ports-gnome-352b1048095b3fbe3eb3e1049f31596d233325c6.zip |
- Convert options to the new format
PR: ports/172549
Submitted by: pgj
Approved by: maintainer
Feature safe: yes
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/jigdo/Makefile | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/net-p2p/jigdo/Makefile b/net-p2p/jigdo/Makefile index c9d2b00d943c..23aadf4e31ee 100644 --- a/net-p2p/jigdo/Makefile +++ b/net-p2p/jigdo/Makefile @@ -1,9 +1,5 @@ -# ports collection makefile for: jigdo -# Date created: 23 July 2002 -# Whom: Attila Nagy <bra@fsn.hu> -# +# Created by: Attila Nagy <bra@fsn.hu> # $FreeBSD$ -# PORTNAME= jigdo PORTVERSION= 0.7.3 @@ -26,13 +22,15 @@ WITH_BDB_VER?= 43 CPPFLAGS+= -I${LOCALBASE}/include -OPTIONS= GUI "Build the gtk2 gui" off \ - BDB "Build with Berkeley DB support (for jigdo-file cache)" on \ - NLS "Native Language Support" on +OPTIONS_DEFINE= GUI BDB NLS +OPTIONS_DEFAULT= BDB NLS -.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 LIB_DEPENDS+= gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20 \ curl:${PORTSDIR}/ftp/curl @@ -43,7 +41,7 @@ CONFIGURE_ARGS+=--without-gui PLIST_SUB+= GUI="@comment " .endif -.if !defined(WITHOUT_BDB) +.if ${PORT_OPTIONS:MBDB} CONFIGURE_ENV+= LIBS=-L${BDB_LIB_DIR} CPPFLAGS+= -I${BDB_INCLUDE_DIR} CONFIGURE_ARGS+=--with-libdb=-l${BDB_LIB_CXX_NAME} @@ -52,7 +50,7 @@ USE_BDB= ${WITH_BDB_VER} CONFIGURE_ARGS+=--without-libdb .endif -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes CONFIGURE_ARGS+=--enable-nls PLIST_SUB+= NLS="" @@ -64,4 +62,4 @@ PLIST_SUB+= NLS="@comment " post-install: @${STRIP_CMD} ${PREFIX}/bin/jigdo-file -.include <bsd.port.post.mk> +.include <bsd.port.mk> |