diff options
author | jlam <jlam@pkgsrc.org> | 2008-04-22 16:24:31 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-04-22 16:24:31 +0000 |
commit | 1ab182fe4718579f8c30fc615e69fc98d026ff65 (patch) | |
tree | e23c5ae24d1b2d487e3cd64d21c2a7207cf0eadd /www/htmldoc | |
parent | 2bfc8c30004eb76e60138dfb6d7e7655855a54e8 (diff) | |
download | pkgsrc-1ab182fe4718579f8c30fc615e69fc98d026ff65.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')
-rw-r--r-- | www/htmldoc/DESCR | 4 | ||||
-rw-r--r-- | www/htmldoc/Makefile | 41 | ||||
-rw-r--r-- | www/htmldoc/Makefile.common | 25 | ||||
-rw-r--r-- | www/htmldoc/options.mk | 17 |
4 files changed, 52 insertions, 35 deletions
diff --git a/www/htmldoc/DESCR b/www/htmldoc/DESCR index e745a326bb3..9889d9e3d90 100644 --- a/www/htmldoc/DESCR +++ b/www/htmldoc/DESCR @@ -1,3 +1,3 @@ -HTMLDOC is a program that generates indexed HTML, Adobe(R) PostScriptTM, and -PDF files from HTML "source" files that you create using your favorite HTML +HTMLDOC is a program that generates indexed HTML, PostScript, and PDF +files from HTML "source" files that you create using your favorite HTML editor. diff --git a/www/htmldoc/Makefile b/www/htmldoc/Makefile index 523f6e85f64..5cabb93c211 100644 --- a/www/htmldoc/Makefile +++ b/www/htmldoc/Makefile @@ -1,14 +1,39 @@ -# $NetBSD: Makefile,v 1.23 2008/01/18 05:09:49 tnn Exp $ -# +# $NetBSD: Makefile,v 1.24 2008/04/22 16:24:31 jlam Exp $ -.include "Makefile.common" +# This section contains variables that might be overridden. +PKGNAME?= ${PKGNAME_BASE} +COMMENT?= Converts HTML to indexed HTML, PDF and/or PostScript -PKGNAME= htmldoc-${HTMLDOC_VERSION} -PKGREVISION= 4 -COMMENT= Converts HTML to indexed HTML, PDF and/or PostScript +# Normal package Makefile contents follow. +DISTNAME= htmldoc-1.8.23-source +PKGNAME_BASE= ${DISTNAME:S/-source//} +PKGREVISION= 7 +CATEGORIES= www +MASTER_SITES= ftp://ftp.easysw.com/pub/htmldoc/${PKGVERSION_NOREV}/ +EXTRACT_SUFX= .tar.bz2 -CONFLICTS= htmldoc-x11-[0-9]* +CONFLICTS+= htmldoc-[0-9]* +CONFLICTS+= htmldoc-x11-[0-9]* -CONFIGURE_ARGS+= --without-gui --without-x +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.easysw.com/htmldoc/ +# ps-pdf.cpp:3229: Internal compiler error. on 1.4 - 1.7 unknown +NOT_FOR_PLATFORM= NetBSD-1.[3-4]*-alpha + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "options.mk" + +WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//} +GNU_CONFIGURE= yes +USE_LANGUAGES= c c++ + +INSTALL_MAKE_FLAGS+= bindir=${DESTDIR}${PREFIX}/bin +INSTALL_MAKE_FLAGS+= datadir=${DESTDIR}${PREFIX}/share +INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} + +.include "../../graphics/jpeg/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/htmldoc/Makefile.common b/www/htmldoc/Makefile.common deleted file mode 100644 index 80d5bb0eb0b..00000000000 --- a/www/htmldoc/Makefile.common +++ /dev/null @@ -1,25 +0,0 @@ -# $NetBSD: Makefile.common,v 1.12 2006/05/12 10:42:26 joerg Exp $ -# - -HTMLDOC_VERSION= 1.8.23 -DISTNAME= htmldoc-${HTMLDOC_VERSION}-source -CATEGORIES= www -MASTER_SITES= ftp://ftp.easysw.com/pub/htmldoc/${HTMLDOC_VERSION}/ -EXTRACT_SUFX= .tar.bz2 - -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://www.easysw.com/htmldoc/ - -NOT_FOR_PLATFORM= NetBSD-1.[3-4]*-alpha #ps-pdf.cpp:3229: Internal compiler error. on 1.4 - 1.7 unknown - -DISTINFO_FILE= ${.CURDIR}/../htmldoc/distinfo -PATCHDIR= ${.CURDIR}/../htmldoc/patches -PLIST_SRC= ${.CURDIR}/../htmldoc/PLIST - -WRKSRC= ${WRKDIR}/htmldoc-${HTMLDOC_VERSION} -GNU_CONFIGURE= YES -USE_LANGUAGES= c c++ - -.include "../../graphics/jpeg/buildlink3.mk" -.include "../../graphics/png/buildlink3.mk" -.include "../../security/openssl/buildlink3.mk" 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 |