Fri May 27 23:51:10 2016 UTC ()
Introduce a Makefile.common so we can share it with textproc/py-libxml2


(pgoyette)
diff -r1.141 -r1.142 pkgsrc/textproc/libxml2/Makefile
diff -r0 -r1.1 pkgsrc/textproc/libxml2/Makefile.common

cvs diff -r1.141 -r1.142 pkgsrc/textproc/libxml2/Makefile (switch to unified diff)

--- pkgsrc/textproc/libxml2/Makefile 2016/05/24 12:00:08 1.141
+++ pkgsrc/textproc/libxml2/Makefile 2016/05/27 23:51:10 1.142
@@ -1,51 +1,46 @@ @@ -1,51 +1,46 @@
1# $NetBSD: Makefile,v 1.141 2016/05/24 12:00:08 he Exp $ 1# $NetBSD: Makefile,v 1.142 2016/05/27 23:51:10 pgoyette Exp $
2 2
3DISTNAME= libxml2-2.9.4 3.include "../../textproc/libxml2/Makefile.common"
4CATEGORIES= textproc 
5MASTER_SITES= ftp://xmlsoft.org/libxml2/ \ 
6 http://xmlsoft.org/sources/ 
7 4
8MAINTAINER= pkgsrc-users@NetBSD.org 
9HOMEPAGE= http://xmlsoft.org/ 
10COMMENT= XML parser library from the GNOME project 5COMMENT= XML parser library from the GNOME project
11LICENSE= modified-bsd 6LICENSE= modified-bsd
12 7
13USE_FEATURES= glob 8USE_FEATURES= glob
14USE_LIBTOOL= yes 9USE_LIBTOOL= yes
15USE_TOOLS+= gmake 10USE_TOOLS+= gmake
16GNU_CONFIGURE= yes 11GNU_CONFIGURE= yes
17CONFIGURE_ARGS+= --with-html-subdir=libxml2 12CONFIGURE_ARGS+= --with-html-subdir=libxml2
18CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv} 13CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
19CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib} 14CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
20CONFIGURE_ARGS+= --with-lzma=${BUILDLINK_PREFIX.xz} 15CONFIGURE_ARGS+= --with-lzma=${BUILDLINK_PREFIX.xz}
21CONFIGURE_ARGS+= --without-python 16CONFIGURE_ARGS+= --without-python
22 17
23PKGCONFIG_OVERRIDE= libxml-2.0.pc.in 18PKGCONFIG_OVERRIDE= libxml-2.0.pc.in
24 19
25.include "options.mk" 20.include "options.mk"
26 21
27# allow thread-awareness, but make sure the library is not 22# allow thread-awareness, but make sure the library is not
28# linked against libpthread 23# linked against libpthread
29#CONFIGURE_ARGS+= --without-threads 24#CONFIGURE_ARGS+= --without-threads
30 25
31MAKE_ENV+= PAX=${PAX:Q} 26MAKE_ENV+= PAX=${PAX:Q}
32 27
33TEST_TARGET= check 28TEST_TARGET= check
34 29
35SUBST_CLASSES+= cat 30SUBST_CLASSES+= cat
36SUBST_STAGE.cat= pre-configure 31SUBST_STAGE.cat= pre-configure
37SUBST_FILES.cat= catalog.c xmlcatalog.c 32SUBST_FILES.cat= catalog.c xmlcatalog.c
38SUBST_SED.cat= -e "s,@@SGML_DEFAULT_CATALOG@@,${SGML_DEFAULT_CATALOG},g" 33SUBST_SED.cat= -e "s,@@SGML_DEFAULT_CATALOG@@,${SGML_DEFAULT_CATALOG},g"
39SUBST_SED.cat+= -e "s,@@XML_DEFAULT_CATALOG@@,${XML_DEFAULT_CATALOG},g" 34SUBST_SED.cat+= -e "s,@@XML_DEFAULT_CATALOG@@,${XML_DEFAULT_CATALOG},g"
40 35
41BUILDLINK_TRANSFORM.SunOS+= rm:-Werror=format=2 36BUILDLINK_TRANSFORM.SunOS+= rm:-Werror=format=2
42 37
43LDFLAGS.SCO_SV+= -lm 38LDFLAGS.SCO_SV+= -lm
44 39
45.include "../../archivers/xz/buildlink3.mk" 40.include "../../archivers/xz/buildlink3.mk"
46.include "../../converters/libiconv/buildlink3.mk" 41.include "../../converters/libiconv/buildlink3.mk"
47.include "../../devel/zlib/buildlink3.mk" 42.include "../../devel/zlib/buildlink3.mk"
48.include "../../textproc/xmlcatmgr/catalogs.mk" 43.include "../../textproc/xmlcatmgr/catalogs.mk"
49.include "../../mk/dlopen.buildlink3.mk" 44.include "../../mk/dlopen.buildlink3.mk"
50.include "../../mk/pthread.buildlink3.mk" 45.include "../../mk/pthread.buildlink3.mk"
51.include "../../mk/bsd.pkg.mk" 46.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/textproc/libxml2/Makefile.common
# $NetBSD: Makefile.common,v 1.1 2016/05/27 23:51:10 pgoyette Exp $

# Used by:
#	textproc/libxml2/Makefile
#	textproc/py-libxml2/Makefile

DISTNAME=	libxml2-2.9.4
CATEGORIES=	textproc
MASTER_SITES=	ftp://xmlsoft.org/libxml2/ \
		http://xmlsoft.org/sources/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://xmlsoft.org/