blob: 3cd21917f82b7fd033229c0b005f8c37743ab49e (
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
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.2 2002/06/02 18:09:35 wiz Exp $
#
DISTNAME= pth-1.4.1
PKGNAME= ${DISTNAME:C/pth/pth-syscall/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=pth/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gnu.org/software/pth/pth.html
COMMENT= GNU Portable Thread library
CONFLICTS= pth-current-[0-9]* pth-[0-9]*
USE_BUILDLINK_ONLY= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-pthread
CONFIGURE_ARGS+= --enable-syscall-hard
.if (${MACHINE_ARCH} == "i386" && ${CFLAGS:M-O2} == "-O2")
CFLAGS:= ${CFLAGS:S/-O2/-O0/}
.endif
# for PLIST
PTH_MAJOR= 14
PTH_MINOR= 21
PLIST_SUBST+= PTH_MAJOR=${PTH_MAJOR} PTH_MINOR=${PTH_MINOR}
test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} test | \
tee ${WRKSRC}/test.log
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pth/
cd ${WRKSRC} && ${INSTALL_DATA} ANNOUNCE AUTHORS COPYING HACKING \
NEWS README SUPPORT TESTS THANKS USERS pthread.ps rse-pmt.ps \
${PREFIX}/share/doc/pth/
.include "../../mk/bsd.pkg.mk"
|