diff options
author | bapt <bapt@FreeBSD.org> | 2013-05-10 19:28:32 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-05-10 19:28:32 +0800 |
commit | 937f1a0b4d22056a4ca304aaf283ea10171f2477 (patch) | |
tree | daa919326ccb7f189fd0a15b939e805db0b91dae /net-mgmt/pftabled | |
parent | bdf0317e3a3f4aecd70a273223162757267e15d4 (diff) | |
download | freebsd-ports-gnome-937f1a0b4d22056a4ca304aaf283ea10171f2477.tar.gz freebsd-ports-gnome-937f1a0b4d22056a4ca304aaf283ea10171f2477.tar.zst freebsd-ports-gnome-937f1a0b4d22056a4ca304aaf283ea10171f2477.zip |
Convert to new options framework
While here do some build with clang fixes
PR: ports/178445, ports/178446, ports/178444, ports/178443, ports/178425, ports/178423
Submitted by: "Ilya A. Arkhipov" <rum1cro@yandex.ru>
Diffstat (limited to 'net-mgmt/pftabled')
-rw-r--r-- | net-mgmt/pftabled/Makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/net-mgmt/pftabled/Makefile b/net-mgmt/pftabled/Makefile index 727733bf9e5d..3d44c7720f3c 100644 --- a/net-mgmt/pftabled/Makefile +++ b/net-mgmt/pftabled/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: pftabled -# Date created: 2006-11-21 -# Whom: Bartlomiej Rutkowski <r@robakdesign.com> -# +# Created by: Bartlomiej Rutkowski <r@robakdesign.com> # $FreeBSD$ -# PORTNAME= pftabled PORTVERSION= 1.09 @@ -21,19 +17,21 @@ PLIST_FILES= bin/pftabled-client sbin/pftabled GNU_CONFIGURE= yes USE_GMAKE= yes -OPTIONS= PERLC "A Sample Perl Client" on \ - PYTHONC "A Sample Python Client" on +OPTIONS_DEFINE= PERLC PYTHONC +OPTIONS_DEFAULT= PERLC PYTHONC +PERLC_DESC= A Sample Perl Client +PYTHONC_DESC= A Sample Python Client .include <bsd.port.pre.mk> -.if !defined(WITHOUT_PERLC) +.if ${PORT_OPTIONS:MPERLC} . if ${PERL_LEVEL} < 500703 RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5 . endif PLIST_FILES+= bin/pftabled-client.pl .endif -.if !defined(WITHOUT_PYTHONC) +.if ${PORT_OPTIONS:MPYTHONC} PLIST_FILES+= bin/pftabled-client.py .endif @@ -41,10 +39,10 @@ post-patch: @${REINPLACE_CMD} -e 's|cat1/pftabled.0|man1/pftabled.0|' ${WRKSRC}/Makefile.in post-install: -.if !defined(WITHOUT_PERLC) +.if ${PORT_OPTIONS:MPERLC} ${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.pl ${PREFIX}/bin/ .endif -.if !defined(WITHOUT_PYTHONC) +.if ${PORT_OPTIONS:MPYTHONC} ${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.py ${PREFIX}/bin/ .endif |