diff options
author | ahze <ahze@FreeBSD.org> | 2005-07-13 12:24:42 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-07-13 12:24:42 +0800 |
commit | c516af70ec7d2020aa3ada84fcd89719fc14f152 (patch) | |
tree | 63bf51c23aa8b50406c9562703e7be5739d75998 /devel | |
parent | 6d803e1ca3023d39f04b1b27498d697719cc1284 (diff) | |
download | freebsd-ports-graphics-c516af70ec7d2020aa3ada84fcd89719fc14f152.tar.gz freebsd-ports-graphics-c516af70ec7d2020aa3ada84fcd89719fc14f152.tar.zst freebsd-ports-graphics-c516af70ec7d2020aa3ada84fcd89719fc14f152.zip |
- Build and install a shared library.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libtar/Makefile | 9 | ||||
-rw-r--r-- | devel/libtar/files/patch-lib_Makefile.in | 25 | ||||
-rw-r--r-- | devel/libtar/pkg-plist | 2 |
3 files changed, 34 insertions, 2 deletions
diff --git a/devel/libtar/Makefile b/devel/libtar/Makefile index ca403a5c3b3..7de203875e1 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 00000000000..6f155dcde43 --- /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 96d7233acfa..f67bfc33c0e 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 |