Wed Jul 21 22:35:25 2021 UTC ()
libnet: add optional support for generating the documentation

No PKGREVISION bump, as the default remains the same (no documentation).


(khorben)
diff -r1.34 -r1.35 pkgsrc/devel/libnet/Makefile
diff -r1.7 -r1.8 pkgsrc/devel/libnet/PLIST
diff -r0 -r1.1 pkgsrc/devel/libnet/options.mk

cvs diff -r1.34 -r1.35 pkgsrc/devel/libnet/Makefile (expand / switch to context diff)
--- pkgsrc/devel/libnet/Makefile 2021/07/21 22:25:54 1.34
+++ pkgsrc/devel/libnet/Makefile 2021/07/21 22:35:25 1.35
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2021/07/21 22:25:54 khorben Exp $
+# $NetBSD: Makefile,v 1.35 2021/07/21 22:35:25 khorben Exp $
 
 DISTNAME=	libnet-1.2
 CATEGORIES=	devel net
@@ -13,6 +13,7 @@
 USE_LIBTOOL=	yes
 GNU_CONFIGURE=	yes
 
-CONFIGURE_ARGS+=--disable-doxygen-doc
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
 
 .include "../../mk/bsd.pkg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/devel/libnet/PLIST (expand / switch to context diff)
--- pkgsrc/devel/libnet/PLIST 2021/01/26 11:20:17 1.7
+++ pkgsrc/devel/libnet/PLIST 2021/07/21 22:35:25 1.8
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2021/01/26 11:20:17 jperkin Exp $
+@comment $NetBSD: PLIST,v 1.8 2021/07/21 22:35:25 khorben Exp $
 bin/libnet-config
 include/libnet.h
 include/libnet/libnet-asn1.h
@@ -9,6 +9,60 @@
 include/libnet/libnet-types.h
 lib/libnet.la
 lib/pkgconfig/libnet.pc
+${PLIST.doxygen}man/man3/libnet-config.3
+${PLIST.doxygen}man/man3/libnet-functions.3
+${PLIST.doxygen}man/man3/libnet-macros.3
+${PLIST.doxygen}man/man3/libnet.3
 share/doc/libnet/ChangeLog.md
 share/doc/libnet/LICENSE
+${PLIST.doxygen}share/doc/libnet/MIGRATION.md
+${PLIST.doxygen}share/doc/libnet/RAWSOCKET.md
 share/doc/libnet/README.md
+${PLIST.doxygen}share/doc/libnet/html/api-style.css
+${PLIST.doxygen}share/doc/libnet/html/bc_s.png
+${PLIST.doxygen}share/doc/libnet/html/bdwn.png
+${PLIST.doxygen}share/doc/libnet/html/closed.png
+${PLIST.doxygen}share/doc/libnet/html/dir_000000.html
+${PLIST.doxygen}share/doc/libnet/html/dir_000001.html
+${PLIST.doxygen}share/doc/libnet/html/doc.png
+${PLIST.doxygen}share/doc/libnet/html/doxygen.css
+${PLIST.doxygen}share/doc/libnet/html/doxygen.svg
+${PLIST.doxygen}share/doc/libnet/html/dynsections.js
+${PLIST.doxygen}share/doc/libnet/html/files.html
+${PLIST.doxygen}share/doc/libnet/html/folderclosed.png
+${PLIST.doxygen}share/doc/libnet/html/folderopen.png
+${PLIST.doxygen}share/doc/libnet/html/globals.html
+${PLIST.doxygen}share/doc/libnet/html/globals_defs.html
+${PLIST.doxygen}share/doc/libnet/html/globals_func.html
+${PLIST.doxygen}share/doc/libnet/html/graph_legend.html
+${PLIST.doxygen}share/doc/libnet/html/graph_legend.md5
+${PLIST.doxygen}share/doc/libnet/html/graph_legend.png
+${PLIST.doxygen}share/doc/libnet/html/index.html
+${PLIST.doxygen}share/doc/libnet/html/jquery.js
+${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h.html
+${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h__dep__incl.map
+${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h__dep__incl.md5
+${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h__dep__incl.png
+${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h_source.html
+${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h.html
+${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h__dep__incl.map
+${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h__dep__incl.md5
+${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h__dep__incl.png
+${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h_source.html
+${PLIST.doxygen}share/doc/libnet/html/libnet_8h.html
+${PLIST.doxygen}share/doc/libnet/html/libnet_8h__incl.map
+${PLIST.doxygen}share/doc/libnet/html/libnet_8h__incl.md5
+${PLIST.doxygen}share/doc/libnet/html/libnet_8h__incl.png
+${PLIST.doxygen}share/doc/libnet/html/libnet_8h_source.html
+${PLIST.doxygen}share/doc/libnet/html/nav_f.png
+${PLIST.doxygen}share/doc/libnet/html/nav_g.png
+${PLIST.doxygen}share/doc/libnet/html/nav_h.png
+${PLIST.doxygen}share/doc/libnet/html/open.png
+${PLIST.doxygen}share/doc/libnet/html/splitbar.png
+${PLIST.doxygen}share/doc/libnet/html/sync_off.png
+${PLIST.doxygen}share/doc/libnet/html/sync_on.png
+${PLIST.doxygen}share/doc/libnet/html/tab_a.png
+${PLIST.doxygen}share/doc/libnet/html/tab_b.png
+${PLIST.doxygen}share/doc/libnet/html/tab_h.png
+${PLIST.doxygen}share/doc/libnet/html/tab_s.png
+${PLIST.doxygen}share/doc/libnet/html/tabs.css

File Added: pkgsrc/devel/libnet/options.mk
# $NetBSD: options.mk,v 1.1 2021/07/21 22:35:25 khorben Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.libnet
PKG_SUPPORTED_OPTIONS=	doxygen

PLIST_VARS+=		doxygen

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mdoxygen)
BUILD_DEPENDS+=		doxygen-[0-9]*:../../devel/doxygen
PLIST.doxygen=		yes
.else
CONFIGURE_ARGS+=	--disable-doxygen-doc
.endif