aboutsummaryrefslogtreecommitdiffstats
path: root/devel/nspr/Makefile
blob: 76e9ea7ffbe43ed8131c41e5a8d38f79acffc616 (plain) (blame)
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
# Ports collection Makefile for:    nspr
# Date created:             18 December 2001
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   nspr
PORTVERSION=    4.4.1
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= nspr/releases/v${PORTVERSION}/src

MAINTAINER= gnome@FreeBSD.org
COMMENT=    A platform-neutral API for system level and libc like functions

WRKSRC=     ${WRKDIR}/${DISTNAME}/mozilla/nsprpub/build

INSTALLS_SHLIB= yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_SCRIPT=   ../configure
CONFIGURE_ARGS= --disable-debug \
        --with-pthreads
CONFIGURE_ENV=  BSD_PTHREAD_LIBS=${PTHREAD_LIBS}
MAKE_ENV=   DIST=${WRKSRC}/dist

LIBS=       libnspr4.so.1 libplc4.so.1 libplds4.so.1

pre-configure:
    @if [ -n "`${PKG_INFO} -xI '^bind[0-9]*-base-[0-9]'`" ]; then \
        ${ECHO_CMD} "${PKGNAME}: bind installed with PORT_REPLACES_BASE_BIND causes build problems."; \
        ${FALSE}; \
    fi

do-install:
    ${MKDIR} ${PREFIX}/include/nspr
    ${TAR} -C ${WRKSRC}/dist/include --dereference -cf - . | \
        ${TAR} -C ${PREFIX}/include -xf -
    ${TAR} -C ${WRKSRC}/dist/lib --dereference -cf - . | \
        ${TAR} -C ${PREFIX}/lib -xf -
    ${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${PREFIX}/bin
.for lib in ${LIBS}
    ${LN} -sf ${lib} ${PREFIX}/lib/${lib:S/.1$//}
.endfor

.include <bsd.port.mk>