the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: expat-shlibs
Version: 1.95.8
Revision: 4
Conflicts: expat
Replaces: expat
PatchFile: %n.patch
PatchFile-MD5: 67d62ceffb3da82f707961c106dca50c
BuildDepends: fink (>= 0.24.12-1)
Source: mirror:sourceforge:expat/expat-%v.tar.gz
Source-MD5: aff487543845a82fe262e6e2922b4c8e
PatchScript: <<
patch -p1 < %{PatchFile}
perl -pi -e 's/hardcode_direct=yes/hardcode_direct=no/g' configure
perl -pi -e 's/^LTFLAGS/#LTFLAGS/' Makefile.in
<<
ConfigureParams: --mandir=%p/share/man --disable-static
InfoTest: TestScript: env DYLD_LIBRARY_PATH=./.libs/ make check || exit 2
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
pushd %i
rm -rf bin
rm -rf include
rm lib/libexpat.{dylib,la}
rm -rf share/man
popd
<<
DocFiles: <<
COPYING MANIFEST README doc/reference.html doc/style.css
examples/elements.c examples/outline.c
<<
Shlibs: %p/lib/libexpat.0.dylib 6.0.0 %n (>= 1.95.7-1)
Description: C library for parsing XML
DescDetail: <<
This is expat, a C library for parsing XML, written by James Clark.
Expat is a stream-oriented XML parser. This means that you register
handlers with the parser before starting the parse. These handlers
are called when the parser discovers the associated structures in the
document being parsed. A start tag is an example of the kind of
structures for which you may register handlers.
<<
DescPort: <<
placed hooks in Makefile for --mandir, and $DESTDIR
make sure build-directory contents are used before global things
<<
License: BSD
Homepage: http://expat.sourceforge.net
Maintainer: Fink Core Group
diff -Nurd -x'*~' expat-1.95.8.orig/Makefile.in expat-1.95.8/Makefile.in
--- expat-1.95.8.orig/Makefile.in 2004-05-07 16:00:48.000000000 -0400
+++ expat-1.95.8/Makefile.in 2007-11-06 00:34:51.000000000 -0500
@@ -73,22 +73,22 @@
tests/runtests
install: xmlwf/xmlwf installlib
- $(mkinstalldirs) $(bindir) $(man1dir)
- $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(bindir)/xmlwf
- $(INSTALL_DATA) $(MANFILE) $(man1dir)
+ $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(DESTDIR)$(bindir)/xmlwf
+ $(INSTALL_DATA) $(MANFILE) $(DESTDIR)$(man1dir)
installlib: $(LIBRARY) $(APIHEADER)
- $(mkinstalldirs) $(libdir) $(includedir)
- $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
- $(INSTALL_DATA) $(APIHEADER) $(includedir)
+ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
+ $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
+ $(INSTALL_DATA) $(APIHEADER) $(DESTDIR)$(includedir)
uninstall: uninstalllib
- $(LIBTOOL) --mode=uninstall rm -f $(bindir)/xmlwf
- rm -f $(man1dir)/xmlwf.1
+ $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(bindir)/xmlwf
+ rm -f $(DESTDIR)$(man1dir)/xmlwf.1
uninstalllib:
- $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY)
- rm -f $(includedir)/$(APIHEADER)
+ $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(LIBRARY)
+ rm -f $(DESTDIR)$(includedir)/$(APIHEADER)
# for VPATH builds (invoked by configure)
mkdir-init:
@@ -106,7 +106,7 @@
### autoconf this?
LTFLAGS = --silent
-COMPILE = $(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES)
+COMPILE = $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) $(CPPFLAGS)
LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@