ports/52142: Update port: textproc/xmlwrapp

KATO Tsuguru tkato at prontomail.com
Mon May 12 22:30:21 UTC 2003


>Number:         52142
>Category:       ports
>Synopsis:       Update port: textproc/xmlwrapp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 12 15:30:10 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CFLAGS/PREFIX properly
- Utilize WANT_GNOME
- Install .pc file to correct place

New file:
files/patch-tools::cxxflags
files/patch-tools::mkmf

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/textproc/xmlwrapp/Makefile textproc/xmlwrapp/Makefile
--- /usr/ports/textproc/xmlwrapp/Makefile	Mon Apr 14 04:05:11 2003
+++ textproc/xmlwrapp/Makefile	Tue May 13 06:12:55 2003
@@ -8,26 +8,32 @@
 
 PORTNAME=	xmlwrapp
 PORTVERSION=	0.4.1
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	http://pmade.org/pjones/software/xmlwrapp/download/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A modern style C++ library for working with XML data
 
-LIB_DEPENDS=	xml2.5:${PORTSDIR}/textproc/libxml2
+BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig    
+RUN_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig    
 
 USE_PERL5_BUILD=	yes
-
+USE_GNOME=	libxml2
+WANT_GNOME=	yes
 HAS_CONFIGURE=	yes
 CONFIGURE_SCRIPT=	configure.pl
+CONFIGURE_ARGS=	--prefix ${PREFIX}
 INSTALLS_SHLIB=	yes
 
-.if defined(WITH_XSLT)
-LIB_DEPENDS+=	xslt.1:${PORTSDIR}/textproc/libxslt
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mlibxslt}!=""
+USE_GNOME+=	libxslt
 PLIST_SUB+=	XSLT=""
 .else
 CONFIGURE_ARGS+=	--disable-xslt
 PLIST_SUB+=	XSLT="@comment "
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN /usr/ports/textproc/xmlwrapp/files/patch-tools::cxxflags textproc/xmlwrapp/files/patch-tools::cxxflags
--- /usr/ports/textproc/xmlwrapp/files/patch-tools::cxxflags	Thu Jan  1 09:00:00 1970
+++ textproc/xmlwrapp/files/patch-tools::cxxflags	Tue May 13 05:50:52 2003
@@ -0,0 +1,20 @@
+--- tools/cxxflags.orig	Wed Jan  8 06:26:51 2003
++++ tools/cxxflags	Tue May 13 05:50:41 2003
+@@ -240,7 +240,7 @@
+ 
+ 	$flags{'debug'}		= "-g";
+ 	$flags{'depend'}	= '-M';
+-	$flags{'optimize'}	= '-O2';
++	$flags{'optimize'}	= '';
+ 	$flags{'ar'}		= $ENV{'AR'} || 'ar';
+ 	$flags{'arflags'}	= $ENV{'ARFLAGS'} || 'rc';
+ 	$flags{'sar'}		= $clo{'cxx'};
+@@ -353,7 +353,7 @@
+ 	$flags{'debug'}		= "-g";
+ 	$flags{'depend'}	= '-xM';
+ 	$flags{'pic'}		= '-Kpic';
+-	$flags{'optimize'}	= '-s -xlibmil -xlibmopt -xO2';
++	$flags{'optimize'}	= '-s -xlibmil -xlibmopt';
+ 	$flags{'ar'}		= $clo{'cxx'};
+ 	$flags{'arflags'}	= '-xar -o';
+ 	$flags{'sar'}		= $clo{'cxx'};
diff -urN /usr/ports/textproc/xmlwrapp/files/patch-tools::mkmf textproc/xmlwrapp/files/patch-tools::mkmf
--- /usr/ports/textproc/xmlwrapp/files/patch-tools::mkmf	Thu Jan  1 09:00:00 1970
+++ textproc/xmlwrapp/files/patch-tools::mkmf	Tue May 13 06:05:42 2003
@@ -0,0 +1,30 @@
+--- tools/mkmf.orig	Tue Apr  8 07:23:38 2003
++++ tools/mkmf	Tue May 13 06:05:24 2003
+@@ -469,6 +469,7 @@
+ 	'BINDIR'	=> '/usr/local/bin',
+ 	'INCLUDEDIR'	=> '/usr/local/include',
+ 	'LIBDIR'	=> '/usr/local/lib',
++	'LIBDATADIR'	=> '/usr/local/libdata',
+ 	'MANDIR'	=> '/usr/local/share/man',
+     );
+ 
+@@ -558,7 +559,7 @@
+ 	print MF "\tmkdir -p $vars{'BINDIR'}\n" if @binaries;
+ 	print MF "\tmkdir -p $vars{'INCLUDEDIR'}\n" if @include_files or @include_dirs;
+ 	print MF "\tmkdir -p $vars{'LIBDIR'}\n" if @static_libraries or @shared_libraries;
+-	print MF "\tmkdir -p $vars{'LIBDIR'}/pkgconfig\n" if @pkgconfig;
++	print MF "\tmkdir -p $vars{'LIBDATADIR'}/pkgconfig\n" if @pkgconfig;
+ 	print MF "\tmkdir -p $vars{'MANDIR'}\n" if @man_pages;
+ 
+ 	foreach my $binary (@binaries) {
+@@ -567,8 +568,8 @@
+ 	}
+ 
+ 	foreach my $pc (@pkgconfig) {
+-	    print MF "\tcp $pc $vars{'LIBDIR'}/pkgconfig/$pc\n";
+-	    print MF "\tchmod 644 $vars{'LIBDIR'}/pkgconfig/$pc\n";
++	    print MF "\tcp $pc $vars{'LIBDATADIR'}/pkgconfig/$pc\n";
++	    print MF "\tchmod 644 $vars{'LIBDATADIR'}/pkgconfig/$pc\n";
+ 	}
+ 
+ 	foreach my $directory (@include_dirs) {
diff -urN /usr/ports/textproc/xmlwrapp/pkg-plist textproc/xmlwrapp/pkg-plist
--- /usr/ports/textproc/xmlwrapp/pkg-plist	Mon Apr 14 04:05:11 2003
+++ textproc/xmlwrapp/pkg-plist	Tue May 13 05:40:56 2003
@@ -18,4 +18,4 @@
 %%XSLT%%lib/libxsltwrapp.a
 %%XSLT%%lib/libxsltwrapp.so
 %%XSLT%%lib/libxsltwrapp.so.1
-lib/pkgconfig/xmlwrapp.pc
+libdata/pkgconfig/xmlwrapp.pc
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list