2001-04-30 06:16:08 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2001/04/30 04:16:09 jlam Exp $
|
1999-03-30 01:13:56 +02:00
|
|
|
|
2000-11-14 03:30:12 +01:00
|
|
|
DISTNAME= PTL-2.1.7
|
|
|
|
PKGNAME= ptl-2.1.7
|
1999-05-24 22:39:35 +02:00
|
|
|
CATEGORIES= devel
|
Jump to PTL-2.1.2
Changes between PTL2-current-990622 and PTL-2.1.2
* support NetBSD/arm32.
* fix a configure.in bug which fails if $MACHINE != $MACHINE_ARCH.
* src/io_udp.c (send_timedwait, sendto_timedwait,
sendmsg_timedait): While underlying system calls return with
EWOULDBLOCK, continue writing.
* src/signal.c (_pthread_signal_init): On system that PTL can set
the stack pointer without using sigstack(), SIGUSR2 can be used
for user's purpose.
* src/internal.h (END_CRITICAL): fixed: signal interruptions are
lost in certain situation theoretically.
* src/io.c: use O_NONBLOCK rather than O_NDELAY in SunOS5.
* Util/Makefile.in: version number of libPTL.so is changed to 2.0.
* src/specific.c (pthread_key_create, pthread_setspecific): if
fail to allocate the memory, returns ENOMEM.
* src/cond.c, src/mutex.c, include/sys/types.h: pthread_mutex_t
and pthread_cond_t are changed from `pointer to struct' to
`struct'.
* src/cond-attr.c, include/sys/types.h: pthread_condattr_t is
changed from integer handle to struct.
* src/cond.c, src/mutex.c, src/pthread.c:
pthread_{mutex_,cond_,}setname_np returns ENOMEM if malloc()
returns NULL.
* src/cancel.c (pthread_setcancelstate): if FLAG_CLEANUP_HANDLER
is set, do not call pthread_exit() even if PTHREAD_CANCEL_ENABLE
is specified and the thread is already cancel requested.
(pthread_testcancel): similar to above.
* src/internal.h (FLAG_CLEANUP_HANDLER): this flag shows that the
thread is currently executing cleanup handlers.
* src/sched.c (after_csw): Clear FLAG_DO_CANCEL flag before
executing cleanup handlers to prevent entering executing cleanup
handlers loop.
* src/io.c (_pthread_pdb_iostat): Implement `iostat' command into
PDB.
2000-05-07 13:18:19 +02:00
|
|
|
MASTER_SITES= ftp://ftp.media.osaka-cu.ac.jp/pub/PTL/PTL2/
|
1999-03-30 01:13:56 +02:00
|
|
|
|
1999-06-23 18:57:07 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
1999-05-31 12:13:57 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
MAINTAINER= msaitoh@netbsd.org
|
|
|
|
HOMEPAGE= http://www.media.osaka-cu.ac.jp/~k-abe/PTL/
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= Portable user-level Thread Library 2 written by Kota Abe
|
1999-03-30 01:13:56 +02:00
|
|
|
|
2001-04-30 06:16:08 +02:00
|
|
|
BUILD_DEPENDS= perl>=${PERL5_REQD}:../../lang/perl5
|
1999-05-01 16:37:30 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
MAKE_ENV= INSTALL_PROGRAM="${INSTALL_SCRIPT}"
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
1999-03-30 01:13:56 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/PTL/include
|
1999-12-28 06:09:49 +01:00
|
|
|
@${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
|
1999-03-30 01:13:56 +02:00
|
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
|
|
|
@cd ${PREFIX}; \
|
1999-12-28 06:09:49 +01:00
|
|
|
${FIND} PTL -type f >>${PLIST_SRC}; \
|
2000-06-21 10:57:04 +02:00
|
|
|
for LINK in `${FIND} PTL -type l`; do \
|
|
|
|
set - X `${FILE} $$LINK`; \
|
2001-01-13 04:33:14 +01:00
|
|
|
${ECHO} "@exec ${LN} -s $$6 %D/$$LINK" >>${PLIST_SRC}; \
|
2000-09-24 19:14:37 +02:00
|
|
|
${ECHO} "@unexec ${RM} -f %D/$$LINK" >>${PLIST_SRC}; \
|
2000-06-21 10:57:04 +02:00
|
|
|
done; \
|
1999-12-28 06:09:49 +01:00
|
|
|
for DIR in `${FIND} PTL -type d | sort -r`; do \
|
1999-03-30 01:13:56 +02:00
|
|
|
if [ -z "`ls $$DIR`" ]; then \
|
1999-05-20 19:28:31 +02:00
|
|
|
${ECHO} "@exec ${MKDIR} %D/$$DIR" >>${PLIST_SRC}; \
|
1999-03-30 01:13:56 +02:00
|
|
|
fi; \
|
1999-03-30 01:31:08 +02:00
|
|
|
${ECHO} "@dirrm $$DIR" >>${PLIST_SRC}; \
|
1999-03-30 01:13:56 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|