2005-09-04 19:38:17 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.91 2005/09/04 23:38:18 espie Exp $
|
1999-03-14 11:06:54 -05:00
|
|
|
|
2003-06-13 17:51:09 -04:00
|
|
|
COMMENT= "XML parsing library"
|
2001-03-25 22:00:39 -05:00
|
|
|
|
2004-11-11 10:03:50 -05:00
|
|
|
VERSION= 2.6.16
|
2003-06-13 17:51:09 -04:00
|
|
|
DISTNAME= libxml2-${VERSION}
|
2005-09-04 19:38:17 -04:00
|
|
|
PKGNAME= libxml-${VERSION}p6
|
2003-06-13 17:51:09 -04:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= ftp://xmlsoft.org/ \
|
2003-12-13 21:10:33 -05:00
|
|
|
${MASTER_SITE_GNOME:=sources/libxml2/2.6/}
|
2000-08-08 14:55:00 -04:00
|
|
|
|
2003-06-13 17:51:09 -04:00
|
|
|
HOMEPAGE= http://xmlsoft.org/
|
1999-03-14 11:06:54 -05:00
|
|
|
|
2005-05-01 07:39:14 -04:00
|
|
|
#FAKE= all
|
2003-11-27 14:28:21 -05:00
|
|
|
# BSD-like
|
2000-08-08 14:55:00 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-06 19:23:20 -05:00
|
|
|
WANTLIB= c m z
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2004-08-10 04:46:49 -04:00
|
|
|
MODULES= converters/libiconv
|
2001-11-06 03:40:52 -05:00
|
|
|
|
2003-06-13 17:51:09 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --enable-static
|
2004-04-06 02:50:30 -04:00
|
|
|
CONFIGURE_ARGS+= --with-html-dir="${PREFIX}/share/doc"
|
|
|
|
CONFIGURE_ARGS+= --with-html-subdir="libxml2/html"
|
2005-04-25 12:43:30 -04:00
|
|
|
CONFIGURE_ARGS+= --with-iconv="${DEPBASE}"
|
2003-06-13 17:51:09 -04:00
|
|
|
CONFIGURE_ARGS+= --without-python
|
2003-08-26 12:33:11 -04:00
|
|
|
CONFIGURE_ARGS+= --without-threads
|
1999-03-14 11:06:54 -05:00
|
|
|
|
2004-11-11 15:55:28 -05:00
|
|
|
MAKE_FLAGS= libxml2_la_LDFLAGS='-version-info 9:0:0'
|
|
|
|
|
2005-09-04 19:38:17 -04:00
|
|
|
post-configure:
|
|
|
|
sed -e 's,@PREFIX@,${PREFIX},' <${FILESDIR}/rebuild >${WRKBUILD}/rebuild
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/libxml2
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/rebuild ${PREFIX}/share/libxml2/
|
|
|
|
|
2005-04-26 05:43:04 -04:00
|
|
|
# XXX let's cheat
|
2005-05-01 07:39:14 -04:00
|
|
|
#post-configure:
|
|
|
|
# @perl -pi.bak -e \
|
|
|
|
# 's,${DEPBASE}/include,\$$\{includedir\},g; \
|
|
|
|
# s,${DEPBASE}/lib,\$$\{libdir\},g; \
|
|
|
|
# s,${DEPBASE}/,\$$\{prefix\}/,g;' \
|
|
|
|
# ${WRKBUILD}/libxml-2.0.pc ${WRKBUILD}/xml2-config
|
|
|
|
|
|
|
|
#post-install:
|
|
|
|
# perl -pi.bak -e \
|
|
|
|
# 'print ": \$${DEPBASE:=${LOCALBASE}}\n" if m/^dlname/; \
|
|
|
|
# s,dependency_libs='\''(.*)'\'',dependency_libs=\"$$1\",g; \
|
|
|
|
# s,${DEPBASE},\$$\{DEPBASE\},g; \
|
|
|
|
# s,${TRUEPREFIX}(/lib/.*?\.la),\$$\{DEPBASE\}$$1,g;' \
|
|
|
|
# ${PREFIX}/lib/libxml2.la
|
2005-04-26 05:43:04 -04:00
|
|
|
|
|
|
|
|
1999-03-14 11:06:54 -05:00
|
|
|
.include <bsd.port.mk>
|