summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-04-07 19:38:07 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-04-07 19:38:07 +0000
commit46aa7c00013094a7b311c0afacf6c2128068c5f3 (patch)
treee1dcf3918f0064f0386f81c1717755b60116bf98 /devel
parentAdd cuecat 1.0, tools for decoding and using the output of a (diff)
Add ptl. PTL (Portable Thread Library) is an implementation of user
level multi-thread library based on POSIX 1003.1c API.
Notes
Notes: svn path=/head/; revision=41044
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ptl/Makefile47
-rw-r--r--devel/ptl/distinfo1
-rw-r--r--devel/ptl/files/patch-Makefile27
-rw-r--r--devel/ptl/files/patch-Util::Makefile.in11
-rw-r--r--devel/ptl/pkg-comment1
-rw-r--r--devel/ptl/pkg-descr18
-rw-r--r--devel/ptl/pkg-plist24
8 files changed, 130 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 2f836e012df8..993b4f0334e3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -359,6 +359,7 @@
SUBDIR += projectcenter.app
SUBDIR += pth
SUBDIR += pth-devel
+ SUBDIR += ptl
SUBDIR += py-coro
SUBDIR += py-functional
SUBDIR += py-game
diff --git a/devel/ptl/Makefile b/devel/ptl/Makefile
new file mode 100644
index 000000000000..3ac122ead981
--- /dev/null
+++ b/devel/ptl/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: PTL
+# Date created: 8 April 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ptl
+PORTVERSION= 2.1.8
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.media.osaka-cu.ac.jp/pub/%SUBDIR%/ \
+ ftp://ftp.ics.es.osaka-u.ac.jp/pub/mirrors/%SUBDIR%/
+MASTER_SITE_SUBDIR= ${PORTNAME:U}/${PORTNAME:U}2
+DISTNAME= ${PORTNAME:U}-${PORTVERSION}
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
+
+MAKE_ARGS= prefix="${PREFIX}"
+INSTALLS_SHLIB= yes
+
+DOCS= COPYING ChangeLog FAQ NEWS \
+ PROBLEMS README README.PDB README.jp \
+ WISHLIST doc/manual.ps.gz
+
+post-patch:
+ ${PERL} -i -pe 's/-O[2-6]/${CFLAGS}/g' \
+ ${WRKSRC}/Util/Makefile.in \
+ ${WRKSRC}/Util/configure \
+ ${WRKSRC}/libaltsys/utils/configure
+
+post-install:
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${PORTNAME:U}
+ cd ${PREFIX} && ( \
+ find ${PORTNAME:U} -type f -o -type l | sort; \
+ find ${PORTNAME:U} -type d | sort -r | ${SED} 's/^/@dirrm /'; \
+ ) >> ${TMPPLIST}
+.if !defined(NOPORTDOCS)
+ ${INSTALL_DATA} ${WRKSRC}/doc/PTL.info* ${PREFIX}/info/
+.for f in ${DOCS}
+ ${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PORTNAME}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/ptl/distinfo b/devel/ptl/distinfo
new file mode 100644
index 000000000000..37ca4b15e90f
--- /dev/null
+++ b/devel/ptl/distinfo
@@ -0,0 +1 @@
+MD5 (PTL-2.1.8.tar.gz) = 4c367786201c3a12ae687d1aaa3ef517
diff --git a/devel/ptl/files/patch-Makefile b/devel/ptl/files/patch-Makefile
new file mode 100644
index 000000000000..eab230613976
--- /dev/null
+++ b/devel/ptl/files/patch-Makefile
@@ -0,0 +1,27 @@
+--- Makefile.orig Sat Sep 23 07:05:15 2000
++++ Makefile Sun Apr 8 02:47:24 2001
+@@ -7,13 +7,13 @@
+ #
+
+ # Install directory
+-prefix = /usr/local
++prefix ?= /usr/local
+ 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
+@@ -27,7 +27,7 @@
+ # make distclean Cleanup PTL (A.*)
+ #
+
+-AUTOCONFBINDIR = /usr/local/bin
++AUTOCONFBINDIR = $(exec_prefix)/bin
+ ARCHPROG = ./Util/config.guess
+ SHELL = /bin/sh
+ # Exported variable CC will confuse configure script ...
diff --git a/devel/ptl/files/patch-Util::Makefile.in b/devel/ptl/files/patch-Util::Makefile.in
new file mode 100644
index 000000000000..2d6df76c9f71
--- /dev/null
+++ b/devel/ptl/files/patch-Util::Makefile.in
@@ -0,0 +1,11 @@
+--- Util/Makefile.in.orig Sun Apr 8 03:00:36 2001
++++ Util/Makefile.in Sun Apr 8 03:21:21 2001
+@@ -117,7 +117,7 @@
+ STATIC_LIBRARY = libPTL.a
+ PROFLIBRARY = libPTL_p.a
+ SHARED_LIBRARY = libPTL.so
+-SLIBVER = 2.0
++SLIBVER = 2
+
+ ALTSYS_LINK = -L$(altsysdir) -laltsys `cat $(altsysdir)/linker_opt`
+
diff --git a/devel/ptl/pkg-comment b/devel/ptl/pkg-comment
new file mode 100644
index 000000000000..8eb6ab374582
--- /dev/null
+++ b/devel/ptl/pkg-comment
@@ -0,0 +1 @@
+A user level multi-thread library based on POSIX 1003.1c API
diff --git a/devel/ptl/pkg-descr b/devel/ptl/pkg-descr
new file mode 100644
index 000000000000..1b4a40305880
--- /dev/null
+++ b/devel/ptl/pkg-descr
@@ -0,0 +1,18 @@
+PTL -- Portable Thread Library
+
+PTL is an implementation of a user level multi-thread library based on
+POSIX 1003.1c API. You can create and control multiple threads
+(control flow) in one UNIX process using PTL.
+
+For example, PTL can be used for following purposes.
+
+ - Network server/client program
+ - Concurrent processing
+ - Simulating distributed or parallel algorithms
+ - Study of multi thread programming
+
+This library is based on the standard "POSIX 1003.1c" and works on BSD
+UNIX (architecture-independent!)
+
+WWW: http://www.media.osaka-cu.ac.jp/~k-abe/PTL/
+Author: Kota ABE <k-abe@media.osaka-cu.ac.jp>
diff --git a/devel/ptl/pkg-plist b/devel/ptl/pkg-plist
new file mode 100644
index 000000000000..fe52fbee7438
--- /dev/null
+++ b/devel/ptl/pkg-plist
@@ -0,0 +1,24 @@
+bin/ptlgcc
+bin/ptlg++
+lib/libPTL.a
+lib/libPTL.so
+lib/libPTL.so.2
+%%PORTDOCS%%@unexec install-info --delete %D/info/PTL.info %D/info/dir
+%%PORTDOCS%%info/PTL.info
+%%PORTDOCS%%info/PTL.info-1
+%%PORTDOCS%%info/PTL.info-2
+%%PORTDOCS%%info/PTL.info-3
+%%PORTDOCS%%info/PTL.info-4
+%%PORTDOCS%%@exec install-info %D/info/PTL.info %D/info/dir
+%%PORTDOCS%%share/doc/ptl/COPYING
+%%PORTDOCS%%share/doc/ptl/ChangeLog
+%%PORTDOCS%%share/doc/ptl/FAQ
+%%PORTDOCS%%share/doc/ptl/NEWS
+%%PORTDOCS%%share/doc/ptl/PROBLEMS
+%%PORTDOCS%%share/doc/ptl/README
+%%PORTDOCS%%share/doc/ptl/README.PDB
+%%PORTDOCS%%share/doc/ptl/README.jp
+%%PORTDOCS%%share/doc/ptl/WISHLIST
+%%PORTDOCS%%share/doc/ptl/manual.ps.gz
+%%PORTDOCS%%@dirrm share/doc/ptl
+@comment PTL/* is environment dependent and thus added dynamically hereinafter: