diff options
author | bapt <bapt@FreeBSD.org> | 2012-10-04 18:00:38 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-10-04 18:00:38 +0800 |
commit | b1d9484175649c69fba62936588118d9cddb8a09 (patch) | |
tree | ad6ce86a39fc8a59b7fcf6f2b0eacd5d669174c2 /net-p2p | |
parent | d09d4edb012b6ef9e5dd1dc907a66fb6248b13ec (diff) | |
download | freebsd-ports-gnome-b1d9484175649c69fba62936588118d9cddb8a09.tar.gz freebsd-ports-gnome-b1d9484175649c69fba62936588118d9cddb8a09.tar.zst freebsd-ports-gnome-b1d9484175649c69fba62936588118d9cddb8a09.zip |
Convert to new options framework
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/bitflu/Makefile | 19 | ||||
-rw-r--r-- | net-p2p/vuze/Makefile | 16 |
2 files changed, 15 insertions, 20 deletions
diff --git a/net-p2p/bitflu/Makefile b/net-p2p/bitflu/Makefile index 4d46b1d099f6..da9c480b0905 100644 --- a/net-p2p/bitflu/Makefile +++ b/net-p2p/bitflu/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: bitflu -# Date created: 28 January 2007 -# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org> -# +# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org> # $FreeBSD$ -# PORTNAME= bitflu PORTVERSION= 1.35 @@ -30,11 +26,12 @@ PLIST_SUB= PLUGINSDIR=${PLUGINSDIR} PORTDOCS= ChangeLog.txt README.txt README_IPv6.txt -OPTIONS= IPV6 "Enable functionality over IPv6 transport" on +OPTIONS_DEFINE= IPV6 EXAMPLES DOCS +OPTIONS_DEFAULT= IPV6 -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_IPV6) +.if ${PORT_OPTIONS:MIPV6} RUN_DEPENDS+= p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 .endif @@ -50,15 +47,15 @@ do-install: ${PREFIX}/bin/${PORTNAME} ${MKDIR} ${PREFIX}/${PLUGINSDIR} ${INSTALL_DATA} ${WRKSRC}/plugins/Bitflu/*.pm ${PREFIX}/${PLUGINSDIR}/ -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} ${INSTALL} -d ${EXAMPLESDIR}/ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.config.example \ ${EXAMPLESDIR}/${PORTNAME}.config .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net-p2p/vuze/Makefile b/net-p2p/vuze/Makefile index 95fb8e3856f6..804a683d32e1 100644 --- a/net-p2p/vuze/Makefile +++ b/net-p2p/vuze/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: Azureus -# Date created: October 6, 2004 -# Whom: Jeremy Faulkner <gldisater@gldis.ca> -# +# Created by: Jeremy Faulkner <gldisater@gldis.ca> # $FreeBSD$ -# PORTNAME= vuze PORTVERSION= 4.7.1.2 @@ -39,7 +35,9 @@ NO_WRKSUBDIR= yes JARFILE= ${PORTNAME}.jar -OPTIONS= SWTDEVEL "Use SWT Development port" on +OPTIONS_DEFINE= SWTDEVEL +OPTIONS_DEFAULT= SWTDEVEL +SWTDEVEL_DESC= Use SWT Development port # build classpath from BUILD_DEPENDS MAKE_ENV= LANG=C @@ -65,9 +63,9 @@ DESKTOP_ENTRIES= "Vuze" \ INSTALLS_ICONS= yes -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_SWTDEVEL) +.if ${PORT_OPTIONS:MDEVEL} SWT= swt-devel BUILD_DEPENDS+= ${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel RUN_DEPENDS+= ${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel @@ -107,4 +105,4 @@ do-install: post-install: @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |