diff options
author | hubertf <hubertf@pkgsrc.org> | 2009-01-04 15:37:07 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2009-01-04 15:37:07 +0000 |
commit | 11dd3b388444153ea5609d738c43f000ea0f0513 (patch) | |
tree | 0ce7b2dfa214767c2c344c0bce4b143759ad85c8 /textproc/rfcutil | |
parent | c3a98738dd3e7490611232bac9c0dc9d47b68239 (diff) | |
download | pkgsrc-11dd3b388444153ea5609d738c43f000ea0f0513.tar.gz |
Add support for the options framework
Enable support for w3m and lynx
Add support for links
Default to links, as w3m doesn't build on Mac OS X
Diffstat (limited to 'textproc/rfcutil')
-rw-r--r-- | textproc/rfcutil/Makefile | 10 | ||||
-rw-r--r-- | textproc/rfcutil/options.mk | 26 |
2 files changed, 32 insertions, 4 deletions
diff --git a/textproc/rfcutil/Makefile b/textproc/rfcutil/Makefile index 2b42fe523bf..4a8e96aa376 100644 --- a/textproc/rfcutil/Makefile +++ b/textproc/rfcutil/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.15 2006/02/05 23:11:07 joerg Exp $ +# $NetBSD: Makefile,v 1.16 2009/01/04 15:37:07 hubertf Exp $ # DISTNAME= rfc-3.2 PKGNAME= rfcutil-3.2 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= textproc MASTER_SITES= http://www.dewn.com/rfc/ EXTRACT_SUFX= # @@ -12,8 +12,6 @@ MAINTAINER= zuntum@NetBSD.org HOMEPAGE= http://www.dewn.com/rfc/ COMMENT= Search for RFCs and do ports, services & protocol lookups -DEPENDS+= w3m-[0-9]*:../../www/w3m - WRKSRC= ${WRKDIR} EXTRACT_ONLY= # @@ -23,9 +21,13 @@ REPLACE_PERL= rfc INSTALLATION_DIRS= bin +.include "options.mk" + do-extract: ${SED} \ -e 's,/usr/local,${PREFIX},' \ + -e '/VIEWER=/s,w3m lynx,${RFCVIEWER},' \ + -e '/viewer/s,-dump,${RFCDUMPOPT},' \ <${DISTDIR}/${DISTNAME} >${WRKSRC}/rfc do-install: diff --git a/textproc/rfcutil/options.mk b/textproc/rfcutil/options.mk new file mode 100644 index 00000000000..3931cf3ac0d --- /dev/null +++ b/textproc/rfcutil/options.mk @@ -0,0 +1,26 @@ +# $NetBSD: options.mk,v 1.1 2009/01/04 15:37:07 hubertf Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.rfcutil +PKG_OPTIONS_OPTIONAL_GROUPS= rfcutil-browser +PKG_OPTIONS_GROUP.rfcutil-browser= links lynx w3m +PKG_SUGGESTED_OPTIONS= links + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mw3m) +DEPENDS+= w3m-[0-9]*:../../www/w3m +RFCVIEWER= w3m lynx +RFCDUMPOPT= -dump +.endif + +.if !empty(PKG_OPTIONS:Mlynx) +DEPENDS+= lynx-[0-9]*:../../www/lynx +RFCVIEWER= lynx w3m +RFCDUMPOPT= -dump +.endif + +.if !empty(PKG_OPTIONS:Mlinks) +DEPENDS+= links-[0-9]*:../../www/links +RFCVIEWER= links lynx w3m +RFCDUMPOPT= -source +.endif |