diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-01-07 20:50:20 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-01-07 20:50:20 +0000 |
commit | baedaefc1363429069319dd267ae7cf8daab2ad6 (patch) | |
tree | c532e96c629a3d179d5c6a9afedc5d84033ebf76 /net/vnstat | |
parent | 721c5abc42184ea05290452b15d3d2e62b0f44d8 (diff) | |
download | ports-baedaefc1363429069319dd267ae7cf8daab2ad6.tar.gz ports-baedaefc1363429069319dd267ae7cf8daab2ad6.zip |
Convert dhn's ports to the new options framework
While here trim headers and convert some USE_GNOME=pkgconfig to
USE_PKGCONFIG=build
Approved by: maintainer (dhn)
Notes
Notes:
svn path=/head/; revision=310055
Diffstat (limited to 'net/vnstat')
-rw-r--r-- | net/vnstat/Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/net/vnstat/Makefile b/net/vnstat/Makefile index 0a08965ba3c5..29824e464d2c 100644 --- a/net/vnstat/Makefile +++ b/net/vnstat/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: vnstat -# Date created: February 17, 2008 -# Whom: Dennis Herrmann <adox@mcx2.org> -# +# Created by: Dennis Herrmann <adox@mcx2.org> # $FreeBSD$ -# PORTNAME= vnstat PORTVERSION= 1.11 @@ -26,7 +22,9 @@ PORTDOCS= README INSTALL_BSD UPGRADE vnstat-cron SUB_FILES= pkg-message # will compile with image output -OPTIONS= GUI "Build with graphics/gd dependency" on +OPTIONS_DEFINE= GUI DOCS +OPTIONS_DEFAULT= GUI +GUI_DESC= Build with graphics/gd dependency .include <bsd.port.options.mk> @@ -35,7 +33,7 @@ PLIST_FILES= bin/vnstat \ %%GUI%%bin/vnstati \ etc/vnstat.conf.sample -.if !defined(WITHOUT_GUI) +.if ${PORT_OPTIONS:MGUI} LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd PLIST_SUB+= GUI="" MAN1+= vnstati.1 @@ -59,7 +57,7 @@ post-patch: ${WRKSRC}/src/cfg.c post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} "installing additional documentation to ${DOCSDIR}" @${MKDIR} ${DOCSDIR} @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} |