Add support for the debug option to the libgamin and gamin packages. This is off by default so no need to bump the revision numbers.diff -r1.16 -r1.17 pkgsrc/sysutils/gamin/Makefile
(jmmv)
@@ -1,17 +1,19 @@ | @@ -1,17 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.16 2010/04/16 22:32:14 jmmv Exp $ | 1 | # $NetBSD: Makefile,v 1.17 2010/04/18 18:22:43 jmmv Exp $ | |
2 | 2 | |||
3 | .include "../../sysutils/gamin/Makefile.common" | 3 | .include "../../sysutils/gamin/Makefile.common" | |
4 | 4 | |||
5 | PKGREVISION= 2 | 5 | PKGREVISION= 2 | |
6 | CONFIGURE_ARGS+= --enable-server | 6 | CONFIGURE_ARGS+= --enable-server | |
7 | 7 | |||
8 | TEST_TARGET= check | 8 | TEST_TARGET= check | |
9 | 9 | |||
10 | .include "options.mk" | |||
11 | ||||
10 | do-install: | 12 | do-install: | |
11 | ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/libexec | 13 | ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/libexec | |
12 | ${INSTALL_LIB} ${WRKSRC}/server/gam_server \ | 14 | ${INSTALL_LIB} ${WRKSRC}/server/gam_server \ | |
13 | ${DESTDIR}${PREFIX}/libexec | 15 | ${DESTDIR}${PREFIX}/libexec | |
14 | 16 | |||
15 | .include "../../devel/glib2/buildlink3.mk" | 17 | .include "../../devel/glib2/buildlink3.mk" | |
16 | .include "../../sysutils/libgamin/buildlink3.mk" | 18 | .include "../../sysutils/libgamin/buildlink3.mk" | |
17 | .include "../../mk/bsd.pkg.mk" | 19 | .include "../../mk/bsd.pkg.mk" |
@@ -1,36 +1,37 @@ | @@ -1,36 +1,37 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.3 2009/03/17 22:31:10 asau Exp $ | 1 | # $NetBSD: Makefile.common,v 1.4 2010/04/18 18:22:43 jmmv Exp $ | |
2 | # | 2 | # | |
3 | # used by sysutils/gamin/Makefile | 3 | # used by sysutils/gamin/Makefile | |
4 | # used by sysutils/libgamin/Makefile | 4 | # used by sysutils/libgamin/Makefile | |
5 | 5 | |||
6 | DISTNAME= gamin-0.1.10 | 6 | DISTNAME= gamin-0.1.10 | |
7 | CATEGORIES= sysutils | 7 | CATEGORIES= sysutils | |
8 | MASTER_SITES= http://www.gnome.org/~veillard/gamin/sources/ | 8 | MASTER_SITES= http://www.gnome.org/~veillard/gamin/sources/ | |
9 | 9 | |||
10 | PKG_DESTDIR_SUPPORT= user-destdir | 10 | PKG_DESTDIR_SUPPORT= user-destdir | |
11 | 11 | |||
12 | MAINTAINER= pkgsrc-users@NetBSD.org | 12 | MAINTAINER= pkgsrc-users@NetBSD.org | |
13 | HOMEPAGE= http://www.gnome.org/~veillard/gamin/ | 13 | HOMEPAGE= http://www.gnome.org/~veillard/gamin/ | |
14 | COMMENT= File alteration monitor | 14 | COMMENT= File alteration monitor | |
15 | 15 | |||
16 | CONFLICTS= fam-[0-9]* | 16 | CONFLICTS= fam-[0-9]* | |
17 | 17 | |||
18 | MAKE_JOBS_SAFE= no | 18 | MAKE_JOBS_SAFE= no | |
19 | 19 | |||
20 | USE_LIBTOOL= yes | 20 | USE_LIBTOOL= yes | |
21 | USE_TOOLS+= pkg-config | 21 | USE_TOOLS+= pkg-config | |
22 | GNU_CONFIGURE= yes | 22 | GNU_CONFIGURE= yes | |
23 | CONFIGURE_ARGS+= --disable-debug | 23 | CONFIGURE_ARGS+= --disable-debug | |
24 | CONFIGURE_ARGS+= --disable-debug-api | |||
24 | CONFIGURE_ARGS+= --disable-gtk-doc | 25 | CONFIGURE_ARGS+= --disable-gtk-doc | |
25 | CONFIGURE_ARGS+= --without-threads | 26 | CONFIGURE_ARGS+= --without-threads | |
26 | CONFIGURE_ARGS+= --with-html-dir=${DOCDIR:Q} | 27 | CONFIGURE_ARGS+= --with-html-dir=${DOCDIR:Q} | |
27 | CONFIGURE_ARGS+= --without-python | 28 | CONFIGURE_ARGS+= --without-python | |
28 | CONFIGURE_ARGS+= --disable-libgamin | 29 | CONFIGURE_ARGS+= --disable-libgamin | |
29 | CONFIGURE_ARGS+= --disable-server | 30 | CONFIGURE_ARGS+= --disable-server | |
30 | CONFIGURE_ARGS+= CPPFLAGS="-D_NETBSD_SOURCE" | 31 | CONFIGURE_ARGS+= CPPFLAGS="-D_NETBSD_SOURCE" | |
31 | 32 | |||
32 | PKG_SYSCONFSUBDIR= gamin | 33 | PKG_SYSCONFSUBDIR= gamin | |
33 | DOCDIR= ${PREFIX}/share/doc/gamin | 34 | DOCDIR= ${PREFIX}/share/doc/gamin | |
34 | 35 | |||
35 | SUBST_CLASSES+= sysconfdir | 36 | SUBST_CLASSES+= sysconfdir | |
36 | SUBST_MESSAGE.sysconfdir=fixing up sysconfdir | 37 | SUBST_MESSAGE.sysconfdir=fixing up sysconfdir |
# $NetBSD: options.mk,v 1.1 2010/04/18 18:22:43 jmmv Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gamin
PKG_SUPPORTED_OPTIONS= debug
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
CONFIGURE_ARGS+= --enable-debug-api
.endif
@@ -1,22 +1,23 @@ | @@ -1,22 +1,23 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2009/03/17 13:34:06 jmcneill Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2010/04/18 18:22:43 jmmv Exp $ | |
2 | 2 | |||
3 | .include "../../sysutils/gamin/Makefile.common" | 3 | .include "../../sysutils/gamin/Makefile.common" | |
4 | PKGNAME= ${DISTNAME:S/^gamin/lib&/} | 4 | PKGNAME= ${DISTNAME:S/^gamin/lib&/} | |
5 | 5 | |||
6 | PKGREVISION= 1 | 6 | PKGREVISION= 1 | |
7 | 7 | |||
8 | CONFIGURE_ARGS+= --enable-libgamin | 8 | CONFIGURE_ARGS+= --enable-libgamin | |
9 | 9 | |||
10 | post-install: | 10 | post-install: | |
11 | ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} | 11 | ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} | |
12 | cd ${WRKSRC}/doc; for file in *.html *.gif *.txt *.xml; do \ | 12 | cd ${WRKSRC}/doc; for file in *.html *.gif *.txt *.xml; do \ | |
13 | ${INSTALL_DATA} $$file ${DESTDIR}${DOCDIR}/$$file; \ | 13 | ${INSTALL_DATA} $$file ${DESTDIR}${DOCDIR}/$$file; \ | |
14 | done | 14 | done | |
15 | 15 | |||
16 | .include "options.mk" | |||
16 | .include "../../mk/bsd.prefs.mk" | 17 | .include "../../mk/bsd.prefs.mk" | |
17 | 18 | |||
18 | .if ${OPSYS} == "Darwin" | 19 | .if ${OPSYS} == "Darwin" | |
19 | BUILDLINK_TRANSFORM+= rm:-Wl,--version-script=./gamin_sym.version | 20 | BUILDLINK_TRANSFORM+= rm:-Wl,--version-script=./gamin_sym.version | |
20 | .endif | 21 | .endif | |
21 | 22 | |||
22 | .include "../../mk/bsd.pkg.mk" | 23 | .include "../../mk/bsd.pkg.mk" |
# $NetBSD: options.mk,v 1.1 2010/04/18 18:22:43 jmmv Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libgamin
PKG_SUPPORTED_OPTIONS= debug
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
CONFIGURE_ARGS+= --enable-debug-api
.endif