blob: 13ccb8414f74b817a0c439f2f3531f84f910f8ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $NetBSD: Makefile,v 1.1.1.1 1999/11/12 20:27:16 explorer Exp $
#
DISTNAME= unproven-pthreads-0.5
CATEGORIES= devel
MASTER_SITES= ftp://ftp.flame.org/pub/netbsd/
MAINTAINER= explorer@netbsd.org
#HOMEPAGE= http://www.mit.edu:8001/people/proven/pthreads.html
#ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \
# NetBSD-*-sparc NetBSD-*-m68k
ONLY_FOR_PLATFORM= NetBSD-*-i386
HAS_CONFIGURE= yes
MAKE_ENV+= NOLINT=1 NOPROFILE=1 OBJECT_FMT=${OBJECT_FMT}
CONFIGURE_ARGS+= --prefix=${PREFIX}/pthreads
post-configure:
@echo "#define HAVE_SYSCALL_SIGACTION 1" >> ${WRKSRC}/config.h
@echo "#define HAVE_SYSCALL_SIGPAUSE 1" >> ${WRKSRC}/config.h
@echo "#define HAVE_SYSCALL_SIGPROCMASK 1" >> ${WRKSRC}/config.h
@echo "#define HAVE_SYSCALL_SIGSUSPEND 1" >> ${WRKSRC}/config.h
pre-install:
${MKDIR} ${PREFIX}/pthreads
post-install:
@${RM} -f ${PREFIX}/pthreads/lib/libpthread_pic.a
@find ${PREFIX}/pthreads/include -name '*.orig'|xargs rm
@find ${PREFIX}/pthreads/include -type f -print|xargs chmod 644
@find ${PREFIX}/pthreads/include -type d -print|xargs chmod 755
@${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/pthreads/include
.include "../../mk/bsd.pkg.mk"
|