pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www Fix options framework abuse by htmldoc-x11.
details: https://anonhg.NetBSD.org/pkgsrc/rev/ec533074c31b
branches: trunk
changeset: 356401:ec533074c31b
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Dec 30 12:54:20 2016 +0000
description:
Fix options framework abuse by htmldoc-x11.
diffstat:
www/htmldoc-x11/Makefile | 19 +++++++------------
www/htmldoc/Makefile | 36 +++---------------------------------
www/htmldoc/Makefile.common | 38 ++++++++++++++++++++++++++++++++++++++
www/htmldoc/options.mk | 16 ++--------------
4 files changed, 50 insertions(+), 59 deletions(-)
diffs (146 lines):
diff -r 6c3a73d20340 -r ec533074c31b www/htmldoc-x11/Makefile
--- a/www/htmldoc-x11/Makefile Fri Dec 30 12:38:19 2016 +0000
+++ b/www/htmldoc-x11/Makefile Fri Dec 30 12:54:20 2016 +0000
@@ -1,16 +1,11 @@
-# $NetBSD: Makefile,v 1.19 2012/11/15 13:44:14 gdt Exp $
+# $NetBSD: Makefile,v 1.20 2016/12/30 12:54:21 wiz Exp $
-PKGNAME= ${PKGNAME_BASE:S/-/-x11-/}
+PKGNAME= htmldoc-x11-${VERSION}
PKGREVISION= 2
-FILESDIR= ${.CURDIR}/../../www/htmldoc/files
-PATCHDIR= ${.CURDIR}/../../www/htmldoc/patches
-PKGDIR= ${.CURDIR}/../../www/htmldoc
-
-DESCR_SRC= ${.CURDIR}/DESCR
+CONFIGURE_ARGS+= --with-gui --with-x
-.include "../../mk/bsd.prefs.mk"
-
-PKG_OPTIONS.htmldoc+= x11
-
-.include "../../www/htmldoc/Makefile"
+.include "../../x11/fltk/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../www/htmldoc/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 6c3a73d20340 -r ec533074c31b www/htmldoc/Makefile
--- a/www/htmldoc/Makefile Fri Dec 30 12:38:19 2016 +0000
+++ b/www/htmldoc/Makefile Fri Dec 30 12:54:20 2016 +0000
@@ -1,38 +1,8 @@
-# $NetBSD: Makefile,v 1.42 2016/12/17 14:20:32 joerg Exp $
-
-# This section contains variables that might be overridden.
-PKGNAME?= ${PKGNAME_BASE}
-COMMENT?= Converts HTML to indexed HTML, PDF and/or PostScript
+# $NetBSD: Makefile,v 1.43 2016/12/30 12:54:20 wiz Exp $
-# Normal package Makefile contents follow.
-DISTNAME= htmldoc-1.8.27-source
-PKGNAME_BASE= ${DISTNAME:S/-source//}
PKGREVISION= 15
-CATEGORIES= www
-MASTER_SITES= ftp://ftp.easysw.com/pub/htmldoc/${PKGVERSION_NOREV}/
-EXTRACT_SUFX= .tar.bz2
-
-CONFLICTS+= htmldoc-[0-9]*
-CONFLICTS+= htmldoc-x11-[0-9]*
-MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= http://www.htmldoc.org/
-LICENSE= gnu-gpl-v2
-
-# ps-pdf.cpp:3229: Internal compiler error. on 1.4 - 1.7 unknown
-NOT_FOR_PLATFORM= NetBSD-1.[3-4]*-alpha
-
-.include "options.mk"
+CONFIGURE_ARGS+= --without-gui --without-x
-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 "../../devel/zlib/buildlink3.mk"
-.include "../../mk/jpeg.buildlink3.mk"
-.include "../../graphics/png/buildlink3.mk"
+.include "${.CURDIR}/Makefile.common"
.include "../../mk/bsd.pkg.mk"
diff -r 6c3a73d20340 -r ec533074c31b www/htmldoc/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/htmldoc/Makefile.common Fri Dec 30 12:54:20 2016 +0000
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile.common,v 1.14 2016/12/30 12:54:20 wiz Exp $
+#
+# used by www/htmldoc/Makefile
+# used by www/htmldoc-x11/Makefile
+
+# This section contains variables that might be overridden.
+PKGNAME?= ${PKGNAME_BASE}
+COMMENT?= Converts HTML to indexed HTML, PDF and/or PostScript
+
+# Normal package Makefile contents follow.
+VERSION= 1.8.27
+DISTNAME= htmldoc-${VERSION}-source
+PKGNAME_BASE= ${DISTNAME:S/-source//}
+CATEGORIES= www
+MASTER_SITES= ftp://ftp.easysw.com/pub/htmldoc/${PKGVERSION_NOREV}/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+#HOMEPAGE= http://www.htmldoc.org/
+LICENSE= gnu-gpl-v2
+
+PATCHDIR= ${.CURDIR}/../../www/htmldoc/patches
+DISTINFO_FILE= ${.CURDIR}/../../www/htmldoc/distinfo
+PLIST_SRC= ${.CURDIR}/../../www/htmldoc/PLIST
+
+.include "${.CURDIR}/../../www/htmldoc/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 "../../devel/zlib/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
diff -r 6c3a73d20340 -r ec533074c31b www/htmldoc/options.mk
--- a/www/htmldoc/options.mk Fri Dec 30 12:38:19 2016 +0000
+++ b/www/htmldoc/options.mk Fri Dec 30 12:54:20 2016 +0000
@@ -1,11 +1,10 @@
-# $NetBSD: options.mk,v 1.3 2009/07/03 14:04:12 drochner Exp $
+# $NetBSD: options.mk,v 1.4 2016/12/30 12:54:20 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.htmldoc
-PKG_SUPPORTED_OPTIONS= x11
+PKG_SUPPORTED_OPTIONS= # empty
PKG_OPTIONS_OPTIONAL_GROUPS= ssl
PKG_OPTIONS_GROUP.ssl= gnutls ssl
PKG_SUGGESTED_OPTIONS= ssl
-PKG_OPTIONS_LEGACY_OPTS+= htmldoc-gui:x11
.include "../../mk/bsd.options.mk"
@@ -32,14 +31,3 @@
.else
CONFIGURE_ARGS+= --disable-ssl
.endif
-
-###
-### X11 GUI support
-###
-.if !empty(PKG_OPTIONS:Mx11)
-. include "../../x11/fltk/buildlink3.mk"
-. include "../../x11/libXpm/buildlink3.mk"
-CONFIGURE_ARGS+= --with-gui --with-x
-.else
-CONFIGURE_ARGS+= --without-gui --without-x
-.endif
Home |
Main Index |
Thread Index |
Old Index