aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim <kolmax94@gmail.com>2011-04-25 18:09:14 +0400
committerMaxim <kolmax94@gmail.com>2011-04-25 18:09:14 +0400
commit42f0d5157ac5339b9d62b7cd9d34813e1254e9e1 (patch)
tree1b85df0f95a5a9b89188e98477f7fabb8da76ce5
parentUpdate binutils ebuild (diff)
downloadgentoo-openbsd-42f0d5157ac5339b9d62b7cd9d34813e1254e9e1.tar.gz
gentoo-openbsd-42f0d5157ac5339b9d62b7cd9d34813e1254e9e1.tar.bz2
gentoo-openbsd-42f0d5157ac5339b9d62b7cd9d34813e1254e9e1.zip
Add libdl
-rw-r--r--sys-libs/libdl/Manifest2
-rw-r--r--sys-libs/libdl/libdl-1.1.1.2.ebuild38
2 files changed, 40 insertions, 0 deletions
diff --git a/sys-libs/libdl/Manifest b/sys-libs/libdl/Manifest
new file mode 100644
index 0000000..d726f8f
--- /dev/null
+++ b/sys-libs/libdl/Manifest
@@ -0,0 +1,2 @@
+DIST libdl.c 2912 RMD160 6fdc4156e8d7f335e3750528d35d4524612a6de8 SHA1 758cb99b7018a7cbd80f253a8b6b3c6a096a9589 SHA256 830401669a6f27d13114f2a7d40da59b80af791f9a262d7f54c868351e22ecaa
+EBUILD libdl-1.1.1.2.ebuild 815 RMD160 4a65519ddfffc51667a210d6874424a45333c478 SHA1 817d623378575493631e3d5d7cf3a4b92fa6e4de SHA256 d009dc646c6285e6dda8e211accc2edfa1378266d34d0c2f3902877159e66a09
diff --git a/sys-libs/libdl/libdl-1.1.1.2.ebuild b/sys-libs/libdl/libdl-1.1.1.2.ebuild
new file mode 100644
index 0000000..e56fdbd
--- /dev/null
+++ b/sys-libs/libdl/libdl-1.1.1.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit toolchain-funcs multilib
+
+DESCRIPTION="Dummy libdl.so for systems where dlopen() is builtin into ld.so"
+HOMEPAGE="http://www.gnu-darwin.org/shims/libdl.c"
+SRC_URI="http://www.gnu-darwin.org/shims/libdl.c"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~x86-openbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_unpack(){
+ cp "${DISTDIR}/${A}" "${S}" || die "cp failed"
+}
+
+src_compile(){
+ $(tc-getCC) ${CFLAGS} ${LDFLAGS} libdl.c \
+ -shared \
+ -Wl,--soname=libdl.so.1 \
+ -fPIC \
+ -o libdl.so.1 || die "compilation failed"
+}
+
+src_install(){
+ dolib.so libdl.so.1 || die "libdl.so failed"
+ dosym "${EPREFIX}"/usr/$(get_libdir)/libdl.so.1 libdl.so || die "dosym failed"
+}