diff options
author | bjs <bjs@pkgsrc.org> | 2008-08-23 08:37:33 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-08-23 08:37:33 +0000 |
commit | f25ce1d240c574b11a7e7326b6327528d2fc76d3 (patch) | |
tree | 737fe986c1a0a6044c16d0bd418f42f4d8a24b8f /devel/libtar/patches | |
parent | 007d87109e10db64a9d963d36e534ac861b9757a (diff) | |
download | pkgsrc-f25ce1d240c574b11a7e7326b6327528d2fc76d3.tar.gz |
wip/vlc-devel wants to create a dlopen()-able module linked against
this library; unfortunately, this package was only making a static
archive. This is bound to break on a fair number of platforms. Employ
libtool, as this is what vlc (and possibly other packages) are using
in the first place.
PKGREVISION++
Diffstat (limited to 'devel/libtar/patches')
-rw-r--r-- | devel/libtar/patches/patch-ab | 33 | ||||
-rw-r--r-- | devel/libtar/patches/patch-ac | 38 |
2 files changed, 71 insertions, 0 deletions
diff --git a/devel/libtar/patches/patch-ab b/devel/libtar/patches/patch-ab new file mode 100644 index 00000000000..a44b4ede9bb --- /dev/null +++ b/devel/libtar/patches/patch-ab @@ -0,0 +1,33 @@ +$NetBSD: patch-ab,v 1.1 2008/08/23 08:37:33 bjs Exp $ + +--- lib/Makefile.in.orig 2002-12-15 13:02:30.000000000 -0500 ++++ lib/Makefile.in +@@ -69,13 +69,15 @@ all: ${ALL} + .PHONY: clean distclean install + + libtar.a: ${LIBTAR_OBJS} ${LIBOBJS} +- ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS} +- ${RANLIB} libtar.a ++ ${LIBTOOL} --mode=link --tag=CC \ ++ ${CC} -o libtar.la ${LIBTAR_OBJS:.o=.lo} ${LIBOBJS:.o=.lo} \ ++ ${LDFLAGS} -rpath ${PREFIX}/lib -version-info 1:2 + + ${LIBTAR_OBJS}: ${LIBTAR_HDRS} + + .c.o: +- ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $< ++ ${LIBTOOL} --mode=compile --tag=CC \ ++ ${CC} ${CFLAGS} ${CPPFLAGS} -c -o ${@:.o=.lo} $< -prefer-pic + + clean: + rm -f *~ *.o ${ALL} core +@@ -85,7 +86,8 @@ distclean: clean + + install: ${ALL} + ${MKDIR} ${DESTDIR}${libdir} +- ${INSTALL_DATA} libtar.a ${DESTDIR}${libdir} ++ ${LIBTOOL} --mode=install \ ++ ${BSD_INSTALL_LIB} libtar.la ${DESTDIR}${libdir} + ${MKDIR} ${DESTDIR}${includedir} + ${INSTALL_DATA} ${srcdir}/libtar.h ${DESTDIR}${includedir} + ${INSTALL_DATA} ../listhash/libtar_listhash.h ${DESTDIR}${includedir} diff --git a/devel/libtar/patches/patch-ac b/devel/libtar/patches/patch-ac new file mode 100644 index 00000000000..36ec419b9fd --- /dev/null +++ b/devel/libtar/patches/patch-ac @@ -0,0 +1,38 @@ +$NetBSD: patch-ac,v 1.1 2008/08/23 08:37:33 bjs Exp $ + +--- libtar/Makefile.in.orig 2002-12-15 13:02:30.000000000 -0500 ++++ libtar/Makefile.in +@@ -45,7 +45,7 @@ LIBTAR_HDRS = ../config.h \ + ${top_srcdir}/compat/compat.h \ + ${top_srcdir}/lib/libtar.h \ + ../listhash/libtar_listhash.h +-LIBTAR_LIBS = ../lib/libtar.a ++LIBTAR_LIBS = ../lib/libtar.la + ALL = libtar + + +@@ -54,12 +54,15 @@ all: ${ALL} + .PHONY: clean distclean install + + libtar: ${LIBTAR_OBJS} ${LIBTAR_LIBS} ${LIBTAR_HDRS} +- ${CC} ${CFLAGS} ${LDFLAGS} -o libtar libtar.o ${LIBTAR_LIBS} ${LIBS} ++ ${LIBTOOL} --mode=link --tag=CC \ ++ ${CC} ${CFLAGS} ${LDFLAGS} -o libtar libtar.lo \ ++ ${LIBTAR_LIBS} ${LIBS} + + ${LIBTAR_OBJS}: ${LIBTAR_HDRS} + + .c.o: +- ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $< ++ ${LIBTOOL} --mode=compile \ ++ ${CC} ${CFLAGS} ${CPPFLAGS} -c -o ${@:.o=.lo} $< -prefer-pic + + clean: + rm -f *~ *.o ${ALL} core +@@ -69,5 +72,5 @@ distclean: clean + + install: ${ALL} + ${MKDIR} ${DESTDIR}${bindir} +- ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir} ++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir} + |