blob: ac3ef1e48a66c58cc328a26dd7d17baa2cc03656 (
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
58
59
|
# $NetBSD: Makefile,v 1.2 2005/01/25 14:50:38 jschauma Exp $
DISTNAME= nspr-4.4.1
CATEGORIES= devel
MASTER_SITES?= ${MASTER_SIZE_MOZILLA:=nspr/releases/v4.4.1/src}
MAINTAINER= mjl@luckie.org.nz
HOMEPAGE= http://www.mozilla.org/projects/nspr/index.html
COMMENT= Platform-neutral API for system level and libc like functions
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/nsprpub/build
USE_BUILDLINK3= YES
USE_GNU_TOOLS+= make
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --disable-debug
AUTOCONF_REQD= 2.13
MAKE_ENV= DIST=${WRKSRC}/dist
CONFIGURE_SCRIPT= ../configure
CONFIGURE_ENV= LIBRUNPATH=${PREFIX}/lib
.include "../../mk/bsd.prefs.mk"
.if ${OBJECT_FMT} == "ELF"
SO_SUFFIX= so
SCRIPTS_ENV+= NSPR_INSTALL_LIB="${INSTALL_PROGRAM}"
.elif ${OBJECT_FMT} == "Mach-O"
SO_SUFFIX= dylib
SCRIPTS_ENV+= NSPR_INSTALL_LIB="${INSTALL_LIB}"
.else
SO_SUFFIX= so.1.0
SCRIPTS_ENV+= NSPR_INSTALL_LIB="${INSTALL_PROGRAM}"
.endif
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX}
pre-configure:
cd ${WRKSRC}/.. && ${AUTOCONF}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/nspr
(cd ${WRKSRC}/dist/include && ${PAX} -Lrwvpe . ${PREFIX}/include/ )
(cd ${WRKSRC}/dist/lib && ${PAX} -Lrwvpe . ${PREFIX}/lib/ )
${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${PREFIX}/bin
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
CONFIGURE_ARGS+= --without-pthreads
.else
CONFIGURE_ARGS+= --with-pthreads
.endif
.include "../../mk/autoconf.mk"
.include "../../mk/bsd.pkg.mk"
|