From 65a1bf6ddef1d385eafb7fa82515133beda91d44 Mon Sep 17 00:00:00 2001
From: Dmitry Marakasov <amdmi3@FreeBSD.org>
Date: Mon, 26 May 2014 19:54:35 +0000
Subject: - Convert to USES=libtool, drop .la files - Fix DOCS installation -
 Strip libraries

---
 net/libpcapnav/Makefile  | 14 +++++++++-----
 net/libpcapnav/pkg-plist | 22 +++-------------------
 2 files changed, 12 insertions(+), 24 deletions(-)

(limited to 'net')

diff --git a/net/libpcapnav/Makefile b/net/libpcapnav/Makefile
index 811130e1b6d3..04b0b587a951 100644
--- a/net/libpcapnav/Makefile
+++ b/net/libpcapnav/Makefile
@@ -3,21 +3,25 @@
 
 PORTNAME=	libpcapnav
 PORTVERSION=	0.8
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	SF/netdude/${PORTNAME}/${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A libpcap wrapper library
 
-USE_AUTOTOOLS=	libtool
+USES=		libtool
 CONFIGURE_ARGS=	--disable-gtk-doc --with-html-dir=${DOCSDIR}
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
+INSTALL_TARGET=	install-strip
+
+PORTDOCS=	*
+
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|DOC_MODULE = pcapnav|DOC_MODULE =|' \
-	${WRKSRC}/docs/Makefile.in
-.if defined(NOPORTDOCS)
-	@${REINPLACE_CMD} -e 's|docs||' ${WRKSRC}/Makefile.in
-.endif
+		${WRKSRC}/docs/Makefile.in
 
 .include <bsd.port.mk>
diff --git a/net/libpcapnav/pkg-plist b/net/libpcapnav/pkg-plist
index eed09f38ba6c..f18a873d92a4 100644
--- a/net/libpcapnav/pkg-plist
+++ b/net/libpcapnav/pkg-plist
@@ -1,22 +1,6 @@
 bin/pcapnav-config
 include/pcapnav.h
-lib/libpcapnav.so.0
-lib/libpcapnav.so
-lib/libpcapnav.la
 lib/libpcapnav.a
-%%PORTDOCS%%%%DOCSDIR%%/images/caution.gif
-%%PORTDOCS%%%%DOCSDIR%%/images/note.gif
-%%PORTDOCS%%%%DOCSDIR%%/images/warning.gif
-%%PORTDOCS%%%%DOCSDIR%%/api.html
-%%PORTDOCS%%%%DOCSDIR%%/a1466.html
-%%PORTDOCS%%%%DOCSDIR%%/c61.html
-%%PORTDOCS%%%%DOCSDIR%%/c17.html
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%%%DOCSDIR%%/pcapnav-pcapnav-debug.html
-%%PORTDOCS%%%%DOCSDIR%%/pcapnav-pcapnav-macros.html
-%%PORTDOCS%%%%DOCSDIR%%/pcapnav-pcapnav-timestamp.html
-%%PORTDOCS%%%%DOCSDIR%%/pcapnav-pcapnav.html
-%%PORTDOCS%%%%DOCSDIR%%/index.sgml
-%%PORTDOCS%%%%DOCSDIR%%/stylesheet.css
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/images
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+lib/libpcapnav.so
+lib/libpcapnav.so.0
+lib/libpcapnav.so.0.0.0
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0