summaryrefslogtreecommitdiff
path: root/devel/mit-pthreads
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1997-10-13 11:36:19 +0000
committeragc <agc@pkgsrc.org>1997-10-13 11:36:19 +0000
commit8dcec58019554eec475e64d2fdbb3b7b39f26cbb (patch)
treeb09df2a48ab6e65b44dd9ef1ebe3e1495b2e3dd3 /devel/mit-pthreads
parentc9cecad9882989bfd96da9b5162cf01734c8316b (diff)
downloadpkgsrc-8dcec58019554eec475e64d2fdbb3b7b39f26cbb.tar.gz
Changes from Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de> to:
+ use native make, rather than gmake - this gives us the profiled library, and PIC library too, and also means we can get rid of my previous hacks to specify the correct prefix. + add in support for the system call previously known as getdirentries using getdents(2), if it exists. Note that the patch for this needs 2 lines of context to avoid an Id in the patch file.
Diffstat (limited to 'devel/mit-pthreads')
-rw-r--r--devel/mit-pthreads/Makefile7
-rw-r--r--devel/mit-pthreads/patches/patch-aa45
-rw-r--r--devel/mit-pthreads/pkg/PLIST2
3 files changed, 41 insertions, 13 deletions
diff --git a/devel/mit-pthreads/Makefile b/devel/mit-pthreads/Makefile
index 786f8b062a5..ffc895373ba 100644
--- a/devel/mit-pthreads/Makefile
+++ b/devel/mit-pthreads/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 1997/10/10 19:52:02 agc Exp $
+# $NetBSD: Makefile,v 1.2 1997/10/13 11:36:19 agc Exp $
# New ports collection makefile for: MIT pthreads
# Version required: 1.60beta6
# Date created: 10th October 1997
@@ -10,9 +10,8 @@ PKGNAME= mit-pthreads-1.60b6
CATEGORIES= devel
MASTER_SITES= ftp://sipb.mit.edu/pub/pthreads/
-GNU_CONFIGURE= yes
-USE_GMAKE= yes
-MAKEFILE= GNUmakefile
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+= --prefix=${PREFIX}/pthreads
post-install:
find ${PREFIX}/pthreads/include -type f -print|xargs chmod 644
diff --git a/devel/mit-pthreads/patches/patch-aa b/devel/mit-pthreads/patches/patch-aa
index 865dad4af32..4c684b54e1a 100644
--- a/devel/mit-pthreads/patches/patch-aa
+++ b/devel/mit-pthreads/patches/patch-aa
@@ -1,11 +1,38 @@
---- config/config.flags.in.orig Fri Mar 22 04:30:01 1996
-+++ config/config.flags.in Fri Oct 10 20:01:53 1997
-@@ -3,7 +3,7 @@
- srctop= @srctop@
- srcfoo= $(srctop)
+--- config/Makefile.in 1997/10/13 10:47:39 1.1
++++ config/Makefile.in 1997/10/13 10:47:51
+@@ -29,7 +29,7 @@
+ # pathname for srcdir here, and live with it.
+ srcdir = $(srctop)
--prefix= @prefix@
-+prefix= @prefix@/pthreads
- exec_prefix= @exec_prefix@
+-beforeinstall:: install-dirs
++beforeinstall: install-dirs
- cpu = @target_cpu@
+ .include "${srcdir}/pthreads/Makefile.inc"
+ .include "${srcdir}/stdlib/Makefile.inc"
+Note that the context for this next patch is set to 2, to avoid the Id line
+- agc
+*** machdep/engine-i386-netbsd-1.0.c 1997/10/13 10:50:59 1.1
+--- machdep/engine-i386-netbsd-1.0.c 1997/10/13 10:53:31
+***************
+*** 42,45 ****
+--- 42,47 ----
+ #endif
+
++
++ #include "config.h"
+ #include <sys/types.h>
+ #include <sys/socket.h>
+***************
+*** 217,218 ****
+--- 219,229 ----
+ }
+
++ #if defined(HAVE_SYSCALL_GETDENTS)
++ /* ==========================================================================
++ * machdep_sys_getdirentries()
++ */
++ int machdep_sys_getdirentries(int fd, char * buf, int len, int * seek)
++ {
++ return(machdep_sys_getdents(fd, buf, len));
++ }
++ #endif
diff --git a/devel/mit-pthreads/pkg/PLIST b/devel/mit-pthreads/pkg/PLIST
index 11b0b3fee41..a509e26a5b0 100644
--- a/devel/mit-pthreads/pkg/PLIST
+++ b/devel/mit-pthreads/pkg/PLIST
@@ -1,6 +1,8 @@
pthreads/bin/pgcc
pthreads/bin/pg++
pthreads/lib/libpthread.a
+pthreads/lib/libpthread_p.a
+pthreads/lib/libpthread_pic.a
pthreads/include/Makefile.inc
pthreads/include/dirent.h
pthreads/include/endian.h