ports/118861: [change] misc/chmlib enable installation of example applications + adopt maintainship

Pietro Cerutti gahr at gahr.ch
Wed Dec 19 15:30:01 UTC 2007


>Number:         118861
>Category:       ports
>Synopsis:       [change] misc/chmlib enable installation of example applications + adopt maintainship
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 19 15:30:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Pietro Cerutti
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 8.0-CURRENT #18: Tue Dec 18 12:48:22 CET 2007
    root at gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034



>Description:


The patch below:

- adds an OPTION to install a few sample application along with the libs
- sets maintainship to me


>How-To-Repeat:





>Fix:


--- _chmlib.diff begins here ---
--- Makefile.orig	2007-12-19 16:18:21.000000000 +0100
+++ Makefile	2007-12-19 16:18:59.000000000 +0100
@@ -11,16 +11,27 @@
 CATEGORIES=	misc
 MASTER_SITES=	http://www.jedrea.com/chmlib/
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	gahr at gahr.ch
 COMMENT=	A library for dealing with Microsoft ITSS/CHM format files
 
+OPTIONS=	EXAMPLES "build example applications" ON
+
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-io64 --disable-pread --exec-prefix=${PREFIX} --disable-static
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_EXAMPLES)
+CONFIGURE_ARGS+=	-enable-examples
+PLIST_SUB+=	EXAMPLES=""
+.else
+PLIST_SUB+=	EXAMPLES="@comment "
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS}," ${WRKSRC}/configure
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- pkg-plist.orig	2007-12-19 16:18:32.000000000 +0100
+++ pkg-plist	2007-12-19 16:18:39.000000000 +0100
@@ -2,3 +2,8 @@
 include/lzx.h
 lib/libchm.so
 lib/libchm.so.0
+%%EXAMPLES%%bin/chm_http
+%%EXAMPLES%%bin/enum_chmLib
+%%EXAMPLES%%bin/enumdir_chmLib
+%%EXAMPLES%%bin/extract_chmLib
+%%EXAMPLES%%bin/test_chmLib
--- _chmlib.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list