| @@ -1,56 +1,45 @@ | | | @@ -1,56 +1,45 @@ |
1 | # $NetBSD: Makefile,v 1.95 2008/10/09 15:01:27 tron Exp $ | | 1 | # $NetBSD: Makefile,v 1.96 2008/10/09 19:20:36 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= libxml2-2.7.1 | | 3 | DISTNAME= libxml2-2.7.1 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
5 | CATEGORIES= textproc | | 5 | CATEGORIES= textproc |
6 | MASTER_SITES= ftp://xmlsoft.org/libxml2/ \ | | 6 | MASTER_SITES= ftp://xmlsoft.org/libxml2/ \ |
7 | http://xmlsoft.org/sources/ | | 7 | http://xmlsoft.org/sources/ |
8 | #MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libxml2/2.7/} | | 8 | #MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libxml2/2.7/} |
9 | | | 9 | |
10 | MAINTAINER= recht@NetBSD.org | | 10 | MAINTAINER= recht@NetBSD.org |
11 | HOMEPAGE= http://xmlsoft.org/ | | 11 | HOMEPAGE= http://xmlsoft.org/ |
12 | COMMENT= XML parser library from the GNOME project | | 12 | COMMENT= XML parser library from the GNOME project |
13 | | | 13 | |
14 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 14 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
15 | PKG_DESTDIR_SUPPORT= user-destdir | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
16 | | | 16 | |
17 | USE_TOOLS+= gmake | | 17 | USE_TOOLS+= gmake |
18 | USE_FEATURES= glob | | 18 | USE_FEATURES= glob |
19 | USE_LIBTOOL= yes | | 19 | USE_LIBTOOL= yes |
20 | PKGCONFIG_OVERRIDE= libxml-2.0.pc.in | | 20 | PKGCONFIG_OVERRIDE= libxml-2.0.pc.in |
21 | | | 21 | |
22 | GNU_CONFIGURE= yes | | 22 | GNU_CONFIGURE= yes |
23 | CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv} | | 23 | CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv} |
24 | CONFIGURE_ARGS+= --with-html-subdir=libxml2 | | 24 | CONFIGURE_ARGS+= --with-html-subdir=libxml2 |
25 | CONFIGURE_ARGS+= --without-python | | 25 | CONFIGURE_ARGS+= --without-python |
26 | | | 26 | |
27 | PKG_OPTIONS_VAR= PKG_OPTIONS.libxml2 | | 27 | .include "options.mk" |
28 | PKG_SUPPORTED_OPTIONS+= inet6 | | | |
29 | .include "../../mk/bsd.options.mk" | | | |
30 | .if !empty(PKG_OPTIONS:Minet6) | | | |
31 | CONFIGURE_ARGS+= --enable-ipv6 | | | |
32 | .else | | | |
33 | CONFIGURE_ARGS+= --disable-ipv6 | | | |
34 | .endif | | | |
35 | | | 28 | |
36 | # Don't use threads - it's not apparent whether it's necessary or not, | | 29 | # Don't use threads - it's not apparent whether it's necessary or not, |
37 | # and this library needs to be usable by non-threaded applications too | | 30 | # and this library needs to be usable by non-threaded applications too |
38 | CONFIGURE_ARGS+= --without-threads | | 31 | CONFIGURE_ARGS+= --without-threads |
39 | | | 32 | |
40 | # NetBSD-sparc64-1.6*'s f77 makes configure failing and as f77 is not | | | |
41 | # needed for this package the following does no harm on other platforms. | | | |
42 | CONFIGURE_ENV+= F77=${FALSE:Q} | | | |
43 | | | | |
44 | MAKE_ENV+= PAX=${PAX:Q} | | 33 | MAKE_ENV+= PAX=${PAX:Q} |
45 | | | 34 | |
46 | .include "../../mk/bsd.prefs.mk" | | 35 | .include "../../mk/bsd.prefs.mk" |
47 | | | 36 | |
48 | .if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) | | 37 | .if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) |
49 | USE_TOOLS+= perl | | 38 | USE_TOOLS+= perl |
50 | TEST_TARGET= check | | 39 | TEST_TARGET= check |
51 | .endif | | 40 | .endif |
52 | | | 41 | |
53 | SUBST_CLASSES+= cat | | 42 | SUBST_CLASSES+= cat |
54 | SUBST_STAGE.cat= pre-configure | | 43 | SUBST_STAGE.cat= pre-configure |
55 | SUBST_FILES.cat= catalog.c xmlcatalog.c | | 44 | SUBST_FILES.cat= catalog.c xmlcatalog.c |
56 | SUBST_SED.cat= -e "s,@@SGML_DEFAULT_CATALOG@@,${SGML_DEFAULT_CATALOG},g" | | 45 | SUBST_SED.cat= -e "s,@@SGML_DEFAULT_CATALOG@@,${SGML_DEFAULT_CATALOG},g" |