summaryrefslogtreecommitdiff
path: root/www/htmldoc/options.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-22 16:24:31 +0000
committerjlam <jlam@pkgsrc.org>2008-04-22 16:24:31 +0000
commit7a9ee81fcc3e8a4d69dda2c26c8d272e783a111b (patch)
treee23c5ae24d1b2d487e3cd64d21c2a7207cf0eadd /www/htmldoc/options.mk
parent7f4de2f919a2013baee70f5be7334483ba1ad35d (diff)
downloadpkgsrc-7a9ee81fcc3e8a4d69dda2c26c8d272e783a111b.tar.gz
Restructure the following packages:
www/htmldoc www/htmldoc-x11 The latter is now just www/htmldoc built with a specific set of options. Changes include: + Add options.mk that supports a new option: htmldoc-gui Build with GUI support + Remove Makefile.common and move all logic into htmldoc/Makefile and htmldoc/options.mk. + Add full DESTDIR support. + Bump the PKGREVISION for htmldoc and htmldoc-x11 to 7. Both packages now track and use the same PKGREVISION number.
Diffstat (limited to 'www/htmldoc/options.mk')
-rw-r--r--www/htmldoc/options.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/www/htmldoc/options.mk b/www/htmldoc/options.mk
new file mode 100644
index 00000000000..13680361594
--- /dev/null
+++ b/www/htmldoc/options.mk
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2008/04/22 16:24:31 jlam Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.htmldoc
+PKG_SUPPORTED_OPTIONS= htmldoc-gui
+
+.include "../../mk/bsd.options.mk"
+
+###
+### X11 GUI support
+###
+.if !empty(PKG_OPTIONS:Mhtmldoc-gui)
+. include "../../x11/fltk/buildlink3.mk"
+. include "../../x11/libXpm/buildlink3.mk"
+CONFIGURE_ARGS+= --with-gui --with-x
+.else
+CONFIGURE_ARGS+= --without-gui --without-x
+.endif