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 unified 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,18 +1,19 @@ @@ -1,18 +1,19 @@
1# $NetBSD: Makefile,v 1.34 2021/07/21 22:25:54 khorben Exp $ 1# $NetBSD: Makefile,v 1.35 2021/07/21 22:35:25 khorben Exp $
2 2
3DISTNAME= libnet-1.2 3DISTNAME= libnet-1.2
4CATEGORIES= devel net 4CATEGORIES= devel net
5MASTER_SITES= ${MASTER_SITE_GITHUB:=libnet/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=libnet/}
6GITHUB_RELEASE= v${PKGVERSION_NOREV} 6GITHUB_RELEASE= v${PKGVERSION_NOREV}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://codedocs.xyz/libnet/libnet/ 9HOMEPAGE= https://codedocs.xyz/libnet/libnet/
10COMMENT= C library for portable packet creation and injection 10COMMENT= C library for portable packet creation and injection
11LICENSE= 2-clause-bsd 11LICENSE= 2-clause-bsd
12 12
13USE_LIBTOOL= yes 13USE_LIBTOOL= yes
14GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
15 15
16CONFIGURE_ARGS+=--disable-doxygen-doc 16.include "../../mk/bsd.prefs.mk"
 17.include "options.mk"
17 18
18.include "../../mk/bsd.pkg.mk" 19.include "../../mk/bsd.pkg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/devel/libnet/PLIST (expand / switch to unified 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,14 +1,68 @@ @@ -1,14 +1,68 @@
1@comment $NetBSD: PLIST,v 1.7 2021/01/26 11:20:17 jperkin Exp $ 1@comment $NetBSD: PLIST,v 1.8 2021/07/21 22:35:25 khorben Exp $
2bin/libnet-config 2bin/libnet-config
3include/libnet.h 3include/libnet.h
4include/libnet/libnet-asn1.h 4include/libnet/libnet-asn1.h
5include/libnet/libnet-functions.h 5include/libnet/libnet-functions.h
6include/libnet/libnet-headers.h 6include/libnet/libnet-headers.h
7include/libnet/libnet-macros.h 7include/libnet/libnet-macros.h
8include/libnet/libnet-structures.h 8include/libnet/libnet-structures.h
9include/libnet/libnet-types.h 9include/libnet/libnet-types.h
10lib/libnet.la 10lib/libnet.la
11lib/pkgconfig/libnet.pc 11lib/pkgconfig/libnet.pc
 12${PLIST.doxygen}man/man3/libnet-config.3
 13${PLIST.doxygen}man/man3/libnet-functions.3
 14${PLIST.doxygen}man/man3/libnet-macros.3
 15${PLIST.doxygen}man/man3/libnet.3
12share/doc/libnet/ChangeLog.md 16share/doc/libnet/ChangeLog.md
13share/doc/libnet/LICENSE 17share/doc/libnet/LICENSE
 18${PLIST.doxygen}share/doc/libnet/MIGRATION.md
 19${PLIST.doxygen}share/doc/libnet/RAWSOCKET.md
14share/doc/libnet/README.md 20share/doc/libnet/README.md
 21${PLIST.doxygen}share/doc/libnet/html/api-style.css
 22${PLIST.doxygen}share/doc/libnet/html/bc_s.png
 23${PLIST.doxygen}share/doc/libnet/html/bdwn.png
 24${PLIST.doxygen}share/doc/libnet/html/closed.png
 25${PLIST.doxygen}share/doc/libnet/html/dir_000000.html
 26${PLIST.doxygen}share/doc/libnet/html/dir_000001.html
 27${PLIST.doxygen}share/doc/libnet/html/doc.png
 28${PLIST.doxygen}share/doc/libnet/html/doxygen.css
 29${PLIST.doxygen}share/doc/libnet/html/doxygen.svg
 30${PLIST.doxygen}share/doc/libnet/html/dynsections.js
 31${PLIST.doxygen}share/doc/libnet/html/files.html
 32${PLIST.doxygen}share/doc/libnet/html/folderclosed.png
 33${PLIST.doxygen}share/doc/libnet/html/folderopen.png
 34${PLIST.doxygen}share/doc/libnet/html/globals.html
 35${PLIST.doxygen}share/doc/libnet/html/globals_defs.html
 36${PLIST.doxygen}share/doc/libnet/html/globals_func.html
 37${PLIST.doxygen}share/doc/libnet/html/graph_legend.html
 38${PLIST.doxygen}share/doc/libnet/html/graph_legend.md5
 39${PLIST.doxygen}share/doc/libnet/html/graph_legend.png
 40${PLIST.doxygen}share/doc/libnet/html/index.html
 41${PLIST.doxygen}share/doc/libnet/html/jquery.js
 42${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h.html
 43${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h__dep__incl.map
 44${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h__dep__incl.md5
 45${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h__dep__incl.png
 46${PLIST.doxygen}share/doc/libnet/html/libnet-functions_8h_source.html
 47${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h.html
 48${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h__dep__incl.map
 49${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h__dep__incl.md5
 50${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h__dep__incl.png
 51${PLIST.doxygen}share/doc/libnet/html/libnet-macros_8h_source.html
 52${PLIST.doxygen}share/doc/libnet/html/libnet_8h.html
 53${PLIST.doxygen}share/doc/libnet/html/libnet_8h__incl.map
 54${PLIST.doxygen}share/doc/libnet/html/libnet_8h__incl.md5
 55${PLIST.doxygen}share/doc/libnet/html/libnet_8h__incl.png
 56${PLIST.doxygen}share/doc/libnet/html/libnet_8h_source.html
 57${PLIST.doxygen}share/doc/libnet/html/nav_f.png
 58${PLIST.doxygen}share/doc/libnet/html/nav_g.png
 59${PLIST.doxygen}share/doc/libnet/html/nav_h.png
 60${PLIST.doxygen}share/doc/libnet/html/open.png
 61${PLIST.doxygen}share/doc/libnet/html/splitbar.png
 62${PLIST.doxygen}share/doc/libnet/html/sync_off.png
 63${PLIST.doxygen}share/doc/libnet/html/sync_on.png
 64${PLIST.doxygen}share/doc/libnet/html/tab_a.png
 65${PLIST.doxygen}share/doc/libnet/html/tab_b.png
 66${PLIST.doxygen}share/doc/libnet/html/tab_h.png
 67${PLIST.doxygen}share/doc/libnet/html/tab_s.png
 68${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