summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2005-07-13 04:24:42 +0000
committerMichael Johnson <ahze@FreeBSD.org>2005-07-13 04:24:42 +0000
commit20baae2ef2486542ea984c568ca680c0fec33474 (patch)
treeca253c3aaa21fd10723fa29c5dd3fa6641b9e1ba /devel
parent- Update to 1.8.2 (diff)
- Build and install a shared library.
Notes
Notes: svn path=/head/; revision=139023
Diffstat (limited to 'devel')
-rw-r--r--devel/libtar/Makefile9
-rw-r--r--devel/libtar/files/patch-lib_Makefile.in25
-rw-r--r--devel/libtar/pkg-plist2
3 files changed, 34 insertions, 2 deletions
diff --git a/devel/libtar/Makefile b/devel/libtar/Makefile
index ca403a5c3b39..7de203875e10 100644
--- a/devel/libtar/Makefile
+++ b/devel/libtar/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libtar
PORTVERSION= 1.2.11
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ftp://ftp.feep.net/pub/software/libtar/
@@ -16,7 +16,12 @@ COMMENT= A library for manipulating POSIX and GNU tar files
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+INSTALLS_SHLIB= yes
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/lib/libtar.so.0 ${PREFIX}/lib
+ ${LN} -sf libtar.so.0 ${PREFIX}/lib/libtar.so
.include <bsd.port.pre.mk>
.include "files/manpages"
diff --git a/devel/libtar/files/patch-lib_Makefile.in b/devel/libtar/files/patch-lib_Makefile.in
new file mode 100644
index 000000000000..6f155dcde43b
--- /dev/null
+++ b/devel/libtar/files/patch-lib_Makefile.in
@@ -0,0 +1,25 @@
+--- lib/Makefile.in.orig Wed Jul 13 00:04:25 2005
++++ lib/Makefile.in Wed Jul 13 00:08:12 2005
+@@ -56,8 +56,10 @@
+ ${srcdir}/libtar.h \
+ ${srcdir}/internal.h \
+ ../listhash/libtar_listhash.h
+-LIBTAR_LIBS = ./libtar.a
+-ALL = libtar.a
++LIBTAR_LIBS = ./libtar.a
++SHARED_LIB = libtar.so
++SHARED_LIB_VER = $(SHARED_LIB).0
++ALL = libtar.a $(SHARED_LIB_VER)
+
+ DISTCLEANFILES = ../listhash/libtar_listhash.h \
+ ../listhash/libtar_list.c \
+@@ -71,6 +73,9 @@
+ libtar.a: ${LIBTAR_OBJS} ${LIBOBJS}
+ ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
+ ${RANLIB} libtar.a
++
++${SHARED_LIB_VER}: libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
++ ${CC} ${CFLAGS} -shared -Wl,-soname,${SHARED_LIB_VER} -o ${SHARED_LIB_VER} ${LIBTAR_OBJS} ${LIBOBJS} ${LDFLAGS}
+
+ ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
+
diff --git a/devel/libtar/pkg-plist b/devel/libtar/pkg-plist
index 96d7233acfa5..f67bfc33c0ee 100644
--- a/devel/libtar/pkg-plist
+++ b/devel/libtar/pkg-plist
@@ -2,3 +2,5 @@ bin/libtar
include/libtar.h
include/libtar_listhash.h
lib/libtar.a
+lib/libtar.so
+lib/libtar.so.0