summaryrefslogtreecommitdiff
path: root/devel/ptl2
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-03-29 23:13:56 +0000
committertron <tron@pkgsrc.org>1999-03-29 23:13:56 +0000
commite4e661d09b120d805f600539926a0b8c88146d1d (patch)
tree1edc16790dc13602aa5c60d01c0e8db86185c23c /devel/ptl2
parentfded0ae3d33797492137d7865e44c1104ac21d56 (diff)
downloadpkgsrc-e4e661d09b120d805f600539926a0b8c88146d1d.tar.gz
New "ptl2" package supplied by SAITOH Masanobu in pkg/7212:
This is PTL2 -- Portable Thread Library 2 wrrtten by Kota Abe.
Diffstat (limited to 'devel/ptl2')
-rw-r--r--devel/ptl2/Makefile39
-rw-r--r--devel/ptl2/files/md53
-rw-r--r--devel/ptl2/patches/patch-aa20
-rw-r--r--devel/ptl2/pkg/COMMENT1
-rw-r--r--devel/ptl2/pkg/DESCR4
-rw-r--r--devel/ptl2/pkg/PLIST7
6 files changed, 74 insertions, 0 deletions
diff --git a/devel/ptl2/Makefile b/devel/ptl2/Makefile
new file mode 100644
index 00000000000..d7e6581b9a3
--- /dev/null
+++ b/devel/ptl2/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/03/29 23:13:56 tron Exp $
+
+DISTNAME= PTL2-current-990325
+PKGNAME= ptl2-current-990325
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.media.osaka-cu.ac.jp/pub/PTL/PTL2/PTL2-current-990325/
+
+MAINTAINER= msaitoh@netbsd.org
+HOMEPAGE= http://www.media.osaka-cu.ac.jp/~k-abe/PTL/
+
+USE_GMAKE= YES
+USE_PERL5= YES
+
+PLIST_SRC= ${WRKDIR}/PLIST
+
+post-install:
+ @${MKDIR} ${PREFIX}/libdata/PTL
+ @${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/PTL/include
+ @find ${PREFIX}/PTL/include -type f -name "*.orig" | xargs ${RM}
+ @find ${PREFIX}/PTL/include -type d -print | xargs ${CHMOD} 755
+ @find ${PREFIX}/PTL/include -type f -print | xargs ${CHMOD} 444
+ @${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+ @cd ${PREFIX}; \
+ find PTL -type f >>${PLIST_SRC}; \
+ for LINK in `find PTL -type l`; do \
+ set - X `file $$LINK`; \
+ @${ECHO} "@exec ln -s $$6 %D/$$LINK" >>${PLIST_SRC}; \
+ @${ECHO} "@unexec rm -f %D/$$LINK" >>${PLIST_SRC}; \
+ done; \
+ for DIR in `find PTL -type d | sort -r`; do \
+ if [ -z "`ls $$DIR`" ]; then \
+ @${ECHO} "@exec mkdir -p %D/$$DIR" >>${PLIST_SRC}; \
+ fi; \
+ @${ECHO} "@dirrm $$DIR" >>${PLIST_SRC}; \
+ done
+# @cd ${PREFIX}; \
+# find PTL -type d | sort -r | ${SED} -e 's#^P#@dirrm P#' >>${PLIST_SRC}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ptl2/files/md5 b/devel/ptl2/files/md5
new file mode 100644
index 00000000000..7b5c955bce2
--- /dev/null
+++ b/devel/ptl2/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/03/29 23:13:56 tron Exp $
+
+MD5 (PTL2-current-990325.tar.gz) = e4692f9604bda21f85a61e3936d47d1a
diff --git a/devel/ptl2/patches/patch-aa b/devel/ptl2/patches/patch-aa
new file mode 100644
index 00000000000..3ae4cba11da
--- /dev/null
+++ b/devel/ptl2/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/03/29 23:13:56 tron Exp $
+
+--- Makefile.orig Wed Mar 24 13:33:28 1999
++++ Makefile Thu Mar 25 01:03:04 1999
+@@ -7,13 +7,13 @@
+ #
+
+ # Install directory
+-prefix = /usr/local
++prefix = ${PREFIX}
+ exec_prefix = $(prefix)
+
+ # Directory to install ptlgcc
+ dest_bindir = $(exec_prefix)/bin
+ # Directory to install libPTL.a and libPTL.so
+-dest_libdir = $(exec_prefix)/PTL/lib
++dest_libdir = $(exec_prefix)/lib
+ # Directory to install include files
+ # This directory must NOT be /usr/local/include
+ dest_includedir = $(exec_prefix)/PTL/include
diff --git a/devel/ptl2/pkg/COMMENT b/devel/ptl2/pkg/COMMENT
new file mode 100644
index 00000000000..fd4077b8cba
--- /dev/null
+++ b/devel/ptl2/pkg/COMMENT
@@ -0,0 +1 @@
+This is PTL2 -- Portable Thread Library 2 wrrtten by Kota Abe.
diff --git a/devel/ptl2/pkg/DESCR b/devel/ptl2/pkg/DESCR
new file mode 100644
index 00000000000..1e1b94bcd7d
--- /dev/null
+++ b/devel/ptl2/pkg/DESCR
@@ -0,0 +1,4 @@
+This is PTL2 -- Portable Thread Library 2 wrrtten by Kota Abe.
+
+This library is based on the standard "POSIX 1003.1c" and works on BSD UNIX
+(architecture-independent!) See INSTALL for datail.
diff --git a/devel/ptl2/pkg/PLIST b/devel/ptl2/pkg/PLIST
new file mode 100644
index 00000000000..88cf1509da2
--- /dev/null
+++ b/devel/ptl2/pkg/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/03/29 23:13:56 tron Exp $
+bin/ptlgcc
+lib/libPTL.a
+lib/libPTL.so
+lib/libPTL.so.1.1
+@exec mkdir -p %D/libdata/PTL
+@dirrm libdata/PTL