summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authortv <tv>1998-10-02 14:46:07 +0000
committertv <tv>1998-10-02 14:46:07 +0000
commit8b57245f127849103858c1fceeb0883c7d965115 (patch)
treedf5a6daa4381630e23785428264b613559bd5a1d /pkgtools
parentb20e16330f31ab79468743dac37b0e36eee56928 (diff)
downloadpkgsrc-8b57245f127849103858c1fceeb0883c7d965115.tar.gz
Addition of pkglibtool, a pkg-system-customized libtool which installs
only the pkglibtool script
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglibtool/Makefile22
-rw-r--r--pkgtools/pkglibtool/files/md53
-rw-r--r--pkgtools/pkglibtool/patches/patch-aa33
-rw-r--r--pkgtools/pkglibtool/patches/patch-ab42
-rw-r--r--pkgtools/pkglibtool/pkg/COMMENT1
-rw-r--r--pkgtools/pkglibtool/pkg/DESCR5
-rw-r--r--pkgtools/pkglibtool/pkg/PLIST2
7 files changed, 108 insertions, 0 deletions
diff --git a/pkgtools/pkglibtool/Makefile b/pkgtools/pkglibtool/Makefile
new file mode 100644
index 00000000000..796740b5992
--- /dev/null
+++ b/pkgtools/pkglibtool/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 1998/10/02 14:46:07 tv Exp $
+#
+
+DISTNAME= libtool-1.2
+PKGNAME= pkglibtool-1.2
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GNU}
+
+MAINTAINER= tv@netbsd.org
+HOMEPAGE= http://www.profitpress.com/libtool/
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ INSTALL_DATA="${INSTALL_DATA}"
+.if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
+CONFIGURE_ARGS= --disable-shared
+.endif
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/libtool ${PREFIX}/bin/pkglibtool
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/pkgtools/pkglibtool/files/md5 b/pkgtools/pkglibtool/files/md5
new file mode 100644
index 00000000000..8d67a90aab5
--- /dev/null
+++ b/pkgtools/pkglibtool/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/10/02 14:46:08 tv Exp $
+
+MD5 (libtool-1.2.tar.gz) = 66b016fdf220682affbfdcaa2225a9bd
diff --git a/pkgtools/pkglibtool/patches/patch-aa b/pkgtools/pkglibtool/patches/patch-aa
new file mode 100644
index 00000000000..7948395907b
--- /dev/null
+++ b/pkgtools/pkglibtool/patches/patch-aa
@@ -0,0 +1,33 @@
+--- ltconfig.orig Fri Mar 20 03:00:29 1998
++++ ltconfig Sun Sep 27 11:47:30 1998
+@@ -808,7 +808,11 @@
+
+ netbsd*)
+ # Tested with NetBSD 1.2 ld
+- archive_cmds='$LD -Bshareable -o $lib$libobjs'
++ if $CC -E - -dM </dev/null | grep -q __ELF__; then
++ archive_cmds='$LD -shared -o $lib$libobjs' # ELF
++ else
++ archive_cmds='$LD -Bshareable -o $lib$libobjs' # a.out
++ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+@@ -1181,8 +1185,15 @@
+
+ netbsd* | openbsd*)
+ version_type=sunos
+- library_names_spec='${libname}${release}.so.$versuffix'
+- finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
++ if $CC -E - -dM </dev/null | grep -q __ELF__; then
++ library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so'
++ soname_spec='${libname}${release}.so.$major'
++ dynamic_linker='NetBSD ld.elf_so'
++ else
++ library_names_spec='${libname}${release}.so.$versuffix'
++ finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
++ dynamic_linker='NetBSD/OpenBSD (a.out) ld.so'
++ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
diff --git a/pkgtools/pkglibtool/patches/patch-ab b/pkgtools/pkglibtool/patches/patch-ab
new file mode 100644
index 00000000000..ce8225a698c
--- /dev/null
+++ b/pkgtools/pkglibtool/patches/patch-ab
@@ -0,0 +1,42 @@
+$NetBSD: patch-ab,v 1.1 1998/10/02 14:46:09 tv Exp $
+
+--- ltmain.sh.orig Tue Jul 21 16:59:33 1998
++++ ltmain.sh Tue Jul 21 17:02:42 1998
+@@ -144,6 +144,8 @@
+ prev=execute_dlfiles
+ ;;
+
++ --install-la) install_la="yes" ;;
++
+ -*)
+ $echo "$modename: unrecognized option \`$arg'" 1>&2
+ $echo "$help" 1>&2
+@@ -1841,10 +1843,12 @@
+ IFS="$save_ifs"
+ fi
+
++if test -n "$install_la"; then
+ # Install the pseudo-library for information purposes.
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ $show "$install_prog $file $destdir/$name"
+ $run eval "$install_prog $file $destdir/$name" || exit $?
++fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
+@@ -1912,6 +1916,7 @@
+ exit 1
+ fi
+
++if test -n "$install_la"; then
+ finalize=yes
+ for lib in $link_against_libtool_libs; do
+ # Check to see that each library is installed.
+@@ -1932,6 +1937,7 @@
+ finalize=no
+ fi
+ done
++fi
+
+ if test "$hardcode_action" = relink; then
+ if test "$finalize" = yes; then
diff --git a/pkgtools/pkglibtool/pkg/COMMENT b/pkgtools/pkglibtool/pkg/COMMENT
new file mode 100644
index 00000000000..8fdc4120d22
--- /dev/null
+++ b/pkgtools/pkglibtool/pkg/COMMENT
@@ -0,0 +1 @@
+Generic shared library support script for NetBSD packages.
diff --git a/pkgtools/pkglibtool/pkg/DESCR b/pkgtools/pkglibtool/pkg/DESCR
new file mode 100644
index 00000000000..16e514e12f1
--- /dev/null
+++ b/pkgtools/pkglibtool/pkg/DESCR
@@ -0,0 +1,5 @@
+This is GNU Libtool, a generic library support script. Libtool hides
+the complexity of using shared libraries behind a consistent, portable
+interface.
+
+This edition of libtool has been customized for the NetBSD pkg system.
diff --git a/pkgtools/pkglibtool/pkg/PLIST b/pkgtools/pkglibtool/pkg/PLIST
new file mode 100644
index 00000000000..b5dd05ffbaa
--- /dev/null
+++ b/pkgtools/pkglibtool/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 1998/10/02 14:46:10 tv Exp $
+bin/pkglibtool