pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libtar wip/vlc-devel wants to create a dlopen()-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5db5dfd69571
branches:  trunk
changeset: 546171:5db5dfd69571
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Sat Aug 23 08:37:33 2008 +0000

description:
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:

 devel/libtar/Makefile         |   5 +++--
 devel/libtar/PLIST            |   4 ++--
 devel/libtar/distinfo         |   4 +++-
 devel/libtar/patches/patch-ab |  33 +++++++++++++++++++++++++++++++++
 devel/libtar/patches/patch-ac |  38 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 79 insertions(+), 5 deletions(-)

diffs (128 lines):

diff -r 3fff9b2fa572 -r 5db5dfd69571 devel/libtar/Makefile
--- a/devel/libtar/Makefile     Sat Aug 23 08:12:02 2008 +0000
+++ b/devel/libtar/Makefile     Sat Aug 23 08:37:33 2008 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2008/07/14 12:56:02 joerg Exp $
+# $NetBSD: Makefile,v 1.14 2008/08/23 08:37:33 bjs Exp $
 #
 
 DISTNAME=      libtar-1.2.11
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel archivers
 MASTER_SITES=  ftp://ftp.feep.net/pub/software/libtar/
 
@@ -13,6 +13,7 @@
 PKG_DESTDIR_SUPPORT=   user-destdir
 
 GNU_CONFIGURE=         YES
+USE_LIBTOOL=           yes
 
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 3fff9b2fa572 -r 5db5dfd69571 devel/libtar/PLIST
--- a/devel/libtar/PLIST        Sat Aug 23 08:12:02 2008 +0000
+++ b/devel/libtar/PLIST        Sat Aug 23 08:37:33 2008 +0000
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/22 17:14:48 seb Exp $
+@comment $NetBSD: PLIST,v 1.2 2008/08/23 08:37:33 bjs Exp $
 bin/libtar
 include/libtar.h
 include/libtar_listhash.h
-lib/libtar.a
+lib/libtar.la
 man/man3/TH_ISBLK.3
 man/man3/TH_ISCHR.3
 man/man3/TH_ISDIR.3
diff -r 3fff9b2fa572 -r 5db5dfd69571 devel/libtar/distinfo
--- a/devel/libtar/distinfo     Sat Aug 23 08:12:02 2008 +0000
+++ b/devel/libtar/distinfo     Sat Aug 23 08:37:33 2008 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.6 2005/10/31 20:44:57 tv Exp $
+$NetBSD: distinfo,v 1.7 2008/08/23 08:37:33 bjs Exp $
 
 SHA1 (libtar-1.2.11.tar.gz) = 9611f23024b0e89aad1cfea301122186b3c160f8
 RMD160 (libtar-1.2.11.tar.gz) = 205d1213ed32f9708fb2135010afdd9e184c430e
 Size (libtar-1.2.11.tar.gz) = 145354 bytes
 SHA1 (patch-aa) = c07f32034bb5e84b0b90ac5ab322e800036d5fde
+SHA1 (patch-ab) = 881344e3ddcd4a85eadc86e833bcc02c78c89b84
+SHA1 (patch-ac) = 936a26e718d3b16369a00a5997a97c355524c7e4
diff -r 3fff9b2fa572 -r 5db5dfd69571 devel/libtar/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtar/patches/patch-ab     Sat Aug 23 08:37:33 2008 +0000
@@ -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 -r 3fff9b2fa572 -r 5db5dfd69571 devel/libtar/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtar/patches/patch-ac     Sat Aug 23 08:37:33 2008 +0000
@@ -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}
+ 



Home | Main Index | Thread Index | Old Index