summaryrefslogtreecommitdiff
path: root/devel/unproven-pthreads/Makefile
blob: 202f0b1f6cd535f07bfc28b193f8d34f7817d954 (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
# $NetBSD: Makefile,v 1.21 2001/02/25 04:17:43 hubertf Exp $
#

DISTNAME=		unproven-pthreads-0.17
PKGNAME=		${DISTNAME}nb1
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.flame.org/pub/netbsd/

MAINTAINER=		explorer@netbsd.org
COMMENT=		(MIT) POSIX threads library, hacked by Michael Graff

#ONLY_FOR_PLATFORM=	NetBSD-*-sparc
ONLY_FOR_PLATFORM=	NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \
			NetBSD-*-m68k NetBSD-*-powerpc
CONFLICTS+=		mit-pthreads-*

HAS_CONFIGURE=		yes
MAKE_ENV+=		NOLINT=1 NOPROFILE=1 OBJECT_FMT=${OBJECT_FMT}
CONFIGURE_ARGS+=	--prefix=${PREFIX}/pthreads

pre-install:
	${INSTALL_DATA_DIR} ${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"