summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2002-09-27 10:44:47 +0000
committerrh <rh@pkgsrc.org>2002-09-27 10:44:47 +0000
commit19d6f0a95d145fae031d32fcea39cd88be840083 (patch)
tree075e1bd0050f6b4bf1406c3fb646af387551cd80
parentaf2cc9449c07c485c92c2018e8060301830f85f6 (diff)
downloadpkgsrc-19d6f0a95d145fae031d32fcea39cd88be840083.tar.gz
Initial import of gnustep-objc-1.2.2, an Objective C runtime for GNUstep.
-rw-r--r--devel/gnustep-objc/DESCR6
-rw-r--r--devel/gnustep-objc/Makefile20
-rw-r--r--devel/gnustep-objc/PLIST16
-rw-r--r--devel/gnustep-objc/buildlink2.mk22
-rw-r--r--devel/gnustep-objc/distinfo5
-rw-r--r--devel/gnustep-objc/patches/patch-aa41
6 files changed, 110 insertions, 0 deletions
diff --git a/devel/gnustep-objc/DESCR b/devel/gnustep-objc/DESCR
new file mode 100644
index 00000000000..14ddbd6c83d
--- /dev/null
+++ b/devel/gnustep-objc/DESCR
@@ -0,0 +1,6 @@
+ This is the GCC/GNUstep objective C runtime.
+
+ The runtime is modeled after the NeXT Objective C runtime. That is, most
+functions have semantics as it is known from the NeXT. The names, however,
+have changed. All runtime API functions have names of lowercase letters
+and underscores as opposed to the `traditional' mixed case names.
diff --git a/devel/gnustep-objc/Makefile b/devel/gnustep-objc/Makefile
new file mode 100644
index 00000000000..b3899bacc72
--- /dev/null
+++ b/devel/gnustep-objc/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/09/27 10:44:47 rh Exp $
+#
+
+DISTNAME= gnustep-objc-1.2.2
+CATEGORIES= devel gnustep
+MASTER_SITES= ftp://ftp.gnustep.org/pub/gnustep/libs/
+
+MAINTAINER= rh@netbsd.org
+HOMEPAGE= http://www.gnustep.org/
+COMMENT= Objective-C runtime
+
+NO_CONFIGURE= YES
+
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+MAKEFILE= GNUmakefile
+
+.include "../../devel/gnustep-make/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/gnustep-objc/PLIST b/devel/gnustep-objc/PLIST
new file mode 100644
index 00000000000..8f1f97774d1
--- /dev/null
+++ b/devel/gnustep-objc/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/27 10:44:47 rh Exp $
+share/GNUstep/System/Headers/objc/NXConstStr.h
+share/GNUstep/System/Headers/objc/Object.h
+share/GNUstep/System/Headers/objc/Protocol.h
+share/GNUstep/System/Headers/objc/encoding.h
+share/GNUstep/System/Headers/objc/hash.h
+share/GNUstep/System/Headers/objc/objc-api.h
+share/GNUstep/System/Headers/objc/objc-decls.h
+share/GNUstep/System/Headers/objc/objc-list.h
+share/GNUstep/System/Headers/objc/objc.h
+share/GNUstep/System/Headers/objc/sarray.h
+share/GNUstep/System/Headers/objc/thr.h
+share/GNUstep/System/Headers/objc/typedstream.h
+share/GNUstep/System/Libraries/${GNUSTEP_HOST_CPU}/${LOWER_OPSYS}${APPEND_ELF}/libobjc.so
+share/GNUstep/System/Libraries/${GNUSTEP_HOST_CPU}/${LOWER_OPSYS}${APPEND_ELF}/libobjc.so.${PKGVERSION}
+@dirrm share/GNUstep/System/Headers/objc
diff --git a/devel/gnustep-objc/buildlink2.mk b/devel/gnustep-objc/buildlink2.mk
new file mode 100644
index 00000000000..d821ed5a0d8
--- /dev/null
+++ b/devel/gnustep-objc/buildlink2.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2002/09/27 10:44:47 rh Exp $
+#
+
+.if !defined(GNUSTEP_OBJC_BUILDLINK2_MK)
+GNUSTEP_OBJC_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= gnustep-objc
+BUILDLINK_DEPENDS.gnustep-objc?= gnustep-objc>=1.2.2
+BUILDLINK_PKGSRCDIR.gnustep-objc?= ../../devel/gnustep-objc
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.gnustep-objc=gnustep-objc
+BUILDLINK_PREFIX.gnustep-objc_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.gnustep-objc= share/GNUstep/System/Headers/objc/*
+BUILDLINK_FILES.gnustep-objc+= share/GNUstep/System/Libraries/${GNUSTEP_HOST_CPU}/${LOWER_OPSYS}${APPEND_ELF}/*
+
+.include "../../devel/gnustep-make/buildlink2.mk"
+
+BUILDLINK_TARGETS+= gnustep-objc-buildlink
+
+gnustep-objc-buildlink: _BUILDLINK_USE
+
+.endif # GNUSTEP_OBJC_BUILDLINK2_MK
diff --git a/devel/gnustep-objc/distinfo b/devel/gnustep-objc/distinfo
new file mode 100644
index 00000000000..2f8a3e1e265
--- /dev/null
+++ b/devel/gnustep-objc/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/09/27 10:44:47 rh Exp $
+
+SHA1 (gnustep-objc-1.2.2.tar.gz) = fea6e13e476e7fbfe52d69f9d90e88d2e2f02c2f
+Size (gnustep-objc-1.2.2.tar.gz) = 119390 bytes
+SHA1 (patch-aa) = f3084143606f1ad238867324a723da4c7b52be43
diff --git a/devel/gnustep-objc/patches/patch-aa b/devel/gnustep-objc/patches/patch-aa
new file mode 100644
index 00000000000..21ff1d34201
--- /dev/null
+++ b/devel/gnustep-objc/patches/patch-aa
@@ -0,0 +1,41 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/09/27 10:44:47 rh Exp $
+
+--- thr-posix.c.orig Sat May 5 03:23:21 2001
++++ thr-posix.c
+@@ -96,6 +96,7 @@ __objc_thread_detach(void (*func)(void *
+ int
+ __objc_thread_set_priority(int priority)
+ {
++#ifndef _PTH_PTHREAD_H_
+ pthread_t thread_id = pthread_self();
+ int policy;
+ struct sched_param params;
+@@ -123,6 +124,7 @@ __objc_thread_set_priority(int priority)
+ if (pthread_setschedparam(thread_id, policy, &params) == 0)
+ return 0;
+ }
++#endif
+ return -1;
+ }
+
+@@ -130,6 +132,12 @@ __objc_thread_set_priority(int priority)
+ int
+ __objc_thread_get_priority(void)
+ {
++#ifdef _PTH_PTHREAD_H_
++ int prio = -1;
++
++ pthread_attr_getprio_np(&_objc_thread_attribs, &prio);
++ return prio;
++#else
+ int policy;
+ struct sched_param params;
+
+@@ -137,6 +145,7 @@ __objc_thread_get_priority(void)
+ return params.sched_priority;
+ else
+ return -1;
++#endif
+ }
+
+ /* Yield our process time to another thread. */