prepare the barf bag.

Enforce fixing DEPBASE in pkgconfig and libtool shit.
This commit is contained in:
espie 2005-04-26 09:43:04 +00:00
parent 7b9549392b
commit 0cd7565943

View File

@ -1,17 +1,17 @@
# $OpenBSD: Makefile,v 1.87 2005/04/25 16:55:05 espie Exp $ # $OpenBSD: Makefile,v 1.88 2005/04/26 09:43:04 espie Exp $
COMMENT= "XML parsing library" COMMENT= "XML parsing library"
VERSION= 2.6.16 VERSION= 2.6.16
DISTNAME= libxml2-${VERSION} DISTNAME= libxml2-${VERSION}
PKGNAME= libxml-${VERSION}p1 PKGNAME= libxml-${VERSION}p3
CATEGORIES= textproc CATEGORIES= textproc
MASTER_SITES= ftp://xmlsoft.org/ \ MASTER_SITES= ftp://xmlsoft.org/ \
${MASTER_SITE_GNOME:=sources/libxml2/2.6/} ${MASTER_SITE_GNOME:=sources/libxml2/2.6/}
HOMEPAGE= http://xmlsoft.org/ HOMEPAGE= http://xmlsoft.org/
#FAKE= all FAKE= all
# BSD-like # BSD-like
PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes PERMIT_PACKAGE_FTP= Yes
@ -32,4 +32,21 @@ CONFIGURE_ARGS+= --without-threads
MAKE_FLAGS= libxml2_la_LDFLAGS='-version-info 9:0:0' MAKE_FLAGS= libxml2_la_LDFLAGS='-version-info 9:0:0'
# XXX let's cheat
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
.include <bsd.port.mk> .include <bsd.port.mk>