diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-04 14:34:05 +0800 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-04 14:34:05 +0800 |
commit | ac818fc7df67839053a8b7e6c0139da668b9c2d2 (patch) | |
tree | 99001edb2fb6eba2392e4ff305e6b1a997e7561c /net/mpd5 | |
parent | fd0bfa7a6d9bcd5e08d8238c45af05264a52330a (diff) | |
download | freebsd-ports-gnome-ac818fc7df67839053a8b7e6c0139da668b9c2d2.tar.gz freebsd-ports-gnome-ac818fc7df67839053a8b7e6c0139da668b9c2d2.tar.zst freebsd-ports-gnome-ac818fc7df67839053a8b7e6c0139da668b9c2d2.zip |
Convert to new options framework
While here trim parts related to unsupported FreeBSD versions
Diffstat (limited to 'net/mpd5')
-rw-r--r-- | net/mpd5/Makefile | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/net/mpd5/Makefile b/net/mpd5/Makefile index 1888b9cdb2bd..c85811d9bebf 100644 --- a/net/mpd5/Makefile +++ b/net/mpd5/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: mpd -# Date created: 20 Sep 2005 -# Whom: Archie Cobbs -# +# Created by: Archie Cobbs # $FreeBSD$ -# PORTNAME= mpd DISTVERSION= 5.6 @@ -16,26 +12,17 @@ COMMENT= Multi-link PPP daemon based on netgraph(4) LATEST_LINK= mpd5 -OPTIONS= NG_CAR "Use ng_car kernel module from port (< 7.0 only)" off\ - NG_IPACCT "Use ng_ipacct kernel module from port" off +OPTIONS_DEFINE= NG_IPACCT +NG_IPACCT_DESC= Use ng_ipacct kernel module from port HAS_CONFIGURE= YES CONFIGURE_WRKSRC= "${WRKSRC}/src" USE_OPENSSL= yes -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if ${OSVERSION} < 700041 && defined(WITH_NG_CAR) -BUILD_DEPENDS+= ${LOCALBASE}/include/netgraph/ng_car.h:${PORTSDIR}/net/ng_car -.if exists(${KMODDIR}/ng_car.ko) -RUN_DEPENDS+= ${KMODDIR}/ng_car.ko:${PORTSDIR}/net/ng_car -.else -RUN_DEPENDS+= /boot/modules/ng_car.ko:${PORTSDIR}/net/ng_car -.endif -.endif - -.if defined(WITH_NG_IPACCT) +.if ${PORT_OPTIONS:MNG_IPACCT} BUILD_DEPENDS+= ${LOCALBASE}/include/netgraph/ng_ipacct.h:${PORTSDIR}/net-mgmt/ng_ipacct .if exists(${KMODDIR}/ng_ipacct.ko) RUN_DEPENDS+= ${KMODDIR}/ng_ipacct.ko:${PORTSDIR}/net-mgmt/ng_ipacct @@ -55,4 +42,4 @@ PORTDOCS= ${HTMLNUM:S/^/mpd/:S/$/.html/} mpd.html mpd.ps README \ PLIST_DIRS= etc/mpd5 PLIST_FILES= ${CONFSUF:S/^/etc\/mpd5\/mpd./:S/$/.sample/} sbin/mpd5 -.include <bsd.port.post.mk> +.include <bsd.port.mk> |