blob: 089bf91dce1d2fb9c17d17f75a424195b86131e3 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.13 2002/08/01 05:48:10 jlam Exp $
#
DISTNAME= pwlib_min_1.1pl17
PKGNAME= pwlib-1.1pl17
CATEGORIES= devel
MASTER_SITES= http://www.openh323.org/bin/
COUNTRY_MIRRORS= au au2 us1 us2 ru de at cz pl
.for COUNTRY in ${COUNTRY_MIRRORS}
MASTER_SITES+= ftp://www.${COUNTRY}.openh323.org/bin/
.endfor
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.openh323.org/
COMMENT= Portable Windows Libary
BUILD_DEPENDS= bison-[0-9]*:../../devel/bison
WRKSRC= ${WRKDIR}/pwlib
USE_BUILDLINK_ONLY= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
PTHREAD_OPTS+= native
MAKE_ENV+= PWLIBDIR=${WRKSRC}
MAKE_ENV+= CC="${CC}"
MAKE_ENV+= CPLUS="${CXX}"
ALL_TARGET= opt
do-configure:
${LN} -sf ${WRKDIR} ${WRKSRC}/share
pre-install:
${FIND} ${WRKSRC} \( -name CVS -o -name "*.orig" \) -print | \
${XARGS} ${RM} -rf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/ptclib
${INSTALL_DATA_DIR} ${PREFIX}/include/ptlib/unix/ptlib
cd ${WRKSRC}/include; \
for f in `${FIND} . -type f -print`; do \
${INSTALL_DATA} $$f ${PREFIX}/include/`${DIRNAME} $$f`; \
done
${INSTALL_DATA_DIR} ${PREFIX}/share/pwlib/make
cd ${WRKSRC}/make; \
for f in unix.mak common.mak lib.mak ptlib.mak; do \
${INSTALL_DATA} $$f ${PREFIX}/share/pwlib/make; \
done
.include "../../mk/pthread.buildlink.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
. include "../../devel/unproven-pthreads/buildlink.mk"
.endif
.include "../../mk/bsd.pkg.mk"
|