summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2002-05-17 16:56:02 +0000
committerschmonz <schmonz@pkgsrc.org>2002-05-17 16:56:02 +0000
commit636097337c460398910d1af01c5b92bd5f1e9394 (patch)
tree3d2ac4036084b8829835de3d7e57e02a993cb19b /devel
parentfe60cdbcb8842967a735276e2fe1ed5f3bd041f7 (diff)
downloadpkgsrc-636097337c460398910d1af01c5b92bd5f1e9394.tar.gz
Import dlcompat-20020508, from Jeff Putsch <jdputsch@attbi.com> in
pkg/16104, with a few tweaks. This package is for Darwin/Mac OS X systems only. dlcompat provides the dlopen() interface for dynamic loading of modules for applications that need it. It is based on Apple code that was only released via Darwin CVS. This version comes from the Fink project.
Diffstat (limited to 'devel')
-rw-r--r--devel/dlcompat/DESCR7
-rw-r--r--devel/dlcompat/Makefile14
-rw-r--r--devel/dlcompat/PLIST5
-rw-r--r--devel/dlcompat/buildlink.mk32
-rw-r--r--devel/dlcompat/distinfo5
-rw-r--r--devel/dlcompat/patches/patch-aa24
6 files changed, 87 insertions, 0 deletions
diff --git a/devel/dlcompat/DESCR b/devel/dlcompat/DESCR
new file mode 100644
index 00000000000..33a1b7c70c1
--- /dev/null
+++ b/devel/dlcompat/DESCR
@@ -0,0 +1,7 @@
+Dynamic loading compatibility library
+
+dlcompat provides the dlopen() interface for dynamic loading of
+modules for applications that need it. It is based on Apple code
+that was only released via Darwin CVS.
+
+This version comes from the Fink project.
diff --git a/devel/dlcompat/Makefile b/devel/dlcompat/Makefile
new file mode 100644
index 00000000000..682f6407837
--- /dev/null
+++ b/devel/dlcompat/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/17 16:56:02 schmonz Exp $
+#
+
+DISTNAME= dlcompat-20020508
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fink/}
+
+MAINTAINER= schmonz@netbsd.org
+HOMEPAGE= http://fink.sourceforge.net/
+COMMENT= Library for dlopen() emulation on Darwin
+
+ONLY_FOR_PLATFORM= Darwin-*-*
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/dlcompat/PLIST b/devel/dlcompat/PLIST
new file mode 100644
index 00000000000..b757d7e53ec
--- /dev/null
+++ b/devel/dlcompat/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/17 16:56:02 schmonz Exp $
+include/dlfcn.h
+lib/libdl.0.dylib
+lib/libdl.a
+lib/libdl.dylib
diff --git a/devel/dlcompat/buildlink.mk b/devel/dlcompat/buildlink.mk
new file mode 100644
index 00000000000..eb79e4f7326
--- /dev/null
+++ b/devel/dlcompat/buildlink.mk
@@ -0,0 +1,32 @@
+# $NetBSD: buildlink.mk,v 1.1.1.1 2002/05/17 16:56:02 schmonz Exp $
+#
+# This Makefile fragment is included by packages that use dlcompat (libdl).
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Include this Makefile fragment in the package Makefile,
+# (2) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (3) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(DLCOMPAT_BUILDLINK_MK)
+DLCOMPAT_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.dlcompat?= dlcompat>=20020508
+DEPENDS+= ${BUILDLINK_DEPENDS.dlcompat}:../../devel/dlcompat
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.dlcompat=dlcompat
+BUILDLINK_PREFIX.dlcompat_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.dlcompat= include/dlfcn.h
+BUILDLINK_FILES.dlcompat+= lib/libdl.*
+
+BUILDLINK_TARGETS.dlcompat+= dlcompat-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.dlcompat}
+
+pre-configure: ${BUILDLINK_TARGETS.dlcompat}
+dlcompat-buildlink: _BUILDLINK_USE
+
+.endif # DLCOMPAT_BUILDLINK_MK
diff --git a/devel/dlcompat/distinfo b/devel/dlcompat/distinfo
new file mode 100644
index 00000000000..9c179462d5c
--- /dev/null
+++ b/devel/dlcompat/distinfo
@@ -0,0 +1,5 @@
+
+
+SHA1 (dlcompat-20020508.tar.gz) = 72a3eb537f24d4f4f7f046d7decc35a2d287ab75
+Size (dlcompat-20020508.tar.gz) = 10193 bytes
+SHA1 (patch-aa) = e2c5ebf625193b9ee6f1ddbf9923068b772e4ac3
diff --git a/devel/dlcompat/patches/patch-aa b/devel/dlcompat/patches/patch-aa
new file mode 100644
index 00000000000..dc2943c4ea7
--- /dev/null
+++ b/devel/dlcompat/patches/patch-aa
@@ -0,0 +1,24 @@
+--- Makefile.orig Sun May 12 22:36:53 2002
++++ Makefile Sun May 12 22:37:42 2002
+@@ -19,7 +19,7 @@
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+-prefix=/usr
++prefix=${PREFIX}
+ DEBUG=0
+
+ CC=cc
+@@ -67,10 +67,10 @@
+ $(RANLIB) libdl.a
+
+ libdl.dylib: libdl.0.dylib
+- ln -sf $+ $@
++ ln -sf $> $@
+
+ libdl.0.dylib: $(OBJS)
+- $(CC) -dynamiclib -o $@ $+ -install_name $(prefix)/lib/$@
++ $(CC) -dynamiclib -o $@ $> -install_name $(prefix)/lib/$@
+
+ clean:
+ rm -f $(OBJS) libdl.* *~ *.o