| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.122 2022/12/15 23:01:17 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.123 2023/06/27 10:44:01 riastradh Exp $ |
2 | | | 2 | |
3 | DISTNAME= nspr-${NSPR_RELEASE:S/.0$//} | | 3 | DISTNAME= nspr-${NSPR_RELEASE:S/.0$//} |
4 | NSPR_RELEASE= 4.35.0 | | 4 | NSPR_RELEASE= 4.35.0 |
5 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
6 | MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=nspr/releases/v${NSPR_RELEASE:S/.0$//}/src/} | | 6 | MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=nspr/releases/v${NSPR_RELEASE:S/.0$//}/src/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR | | 9 | HOMEPAGE= https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR |
10 | COMMENT= Platform-neutral API for system level and libc like functions | | 10 | COMMENT= Platform-neutral API for system level and libc like functions |
11 | LICENSE= mpl-2.0 | | 11 | LICENSE= mpl-2.0 |
12 | | | 12 | |
13 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh | | 13 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh |
14 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh | | 14 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh |
| @@ -21,29 +21,44 @@ GNU_CONFIGURE= yes | | | @@ -21,29 +21,44 @@ GNU_CONFIGURE= yes |
21 | GNU_CONFIGURE_LIBSUBDIR= nspr | | 21 | GNU_CONFIGURE_LIBSUBDIR= nspr |
22 | CONFIGURE_DIRS= nspr | | 22 | CONFIGURE_DIRS= nspr |
23 | | | 23 | |
24 | USE_GCC_RUNTIME= yes | | 24 | USE_GCC_RUNTIME= yes |
25 | USE_TOOLS+= autoconf gmake perl | | 25 | USE_TOOLS+= autoconf gmake perl |
26 | REPLACE_PERL+= nspr/pr/src/misc/compile-et.pl | | 26 | REPLACE_PERL+= nspr/pr/src/misc/compile-et.pl |
27 | | | 27 | |
28 | CONFIGURE_ARGS+= --disable-debug | | 28 | CONFIGURE_ARGS+= --disable-debug |
29 | CONFIGURE_ARGS+= --with-pthreads | | 29 | CONFIGURE_ARGS+= --with-pthreads |
30 | CONFIGURE_ENV+= LIBRUNPATH=${PREFIX}/lib/nspr | | 30 | CONFIGURE_ENV+= LIBRUNPATH=${PREFIX}/lib/nspr |
31 | | | 31 | |
32 | .include "../../mk/bsd.prefs.mk" | | 32 | .include "../../mk/bsd.prefs.mk" |
33 | | | 33 | |
| | | 34 | PLIST_VARS+= native |
| | | 35 | |
34 | .if ${USE_CROSS_COMPILE:U:tl} == yes | | 36 | .if ${USE_CROSS_COMPILE:U:tl} == yes |
35 | MAKE_FLAGS+= HOST_CC=${NATIVE_CC:Q} | | 37 | MAKE_FLAGS+= HOST_CC=${NATIVE_CC:Q} |
36 | MAKE_FLAGS+= HOST_CXX=${NATIVE_CXX:Q} | | 38 | MAKE_FLAGS+= HOST_CXX=${NATIVE_CXX:Q} |
| | | 39 | post-install: post-install-rm-perl |
| | | 40 | .PHONY: post-install-rm-perl |
| | | 41 | post-install-rm-perl: |
| | | 42 | ${RUN} rm ${DESTDIR:Q}${PREFIX:Q}/bin/compile-et.pl |
| | | 43 | ${RUN} rm ${DESTDIR:Q}${PREFIX:Q}/bin/prerr.properties |
| | | 44 | .else |
| | | 45 | # XXX Not actually sure if compile-et.pl or prerr.properties are |
| | | 46 | # supposed to be included -- they are run at build-time, and other |
| | | 47 | # packaging systems like Debian exclude them. But out of an abundance |
| | | 48 | # of caution, let's avoid breaking downstream packages for now |
| | | 49 | # (20230609) by continuing to include these in native builds. (Cross |
| | | 50 | # builds break because of the missing interpreter.) |
| | | 51 | PLIST.native= yes |
37 | .endif | | 52 | .endif |
38 | | | 53 | |
39 | BUILDLINK_TRANSFORM+= rm:-Wall | | 54 | BUILDLINK_TRANSFORM+= rm:-Wall |
40 | | | 55 | |
41 | SUBST_CLASSES+= nspr-config | | 56 | SUBST_CLASSES+= nspr-config |
42 | SUBST_STAGE.nspr-config= pre-configure | | 57 | SUBST_STAGE.nspr-config= pre-configure |
43 | SUBST_MESSAGE.nspr-config= Fixing nspr-config run path | | 58 | SUBST_MESSAGE.nspr-config= Fixing nspr-config run path |
44 | SUBST_FILES.nspr-config= nspr/config/nspr-config.in | | 59 | SUBST_FILES.nspr-config= nspr/config/nspr-config.in |
45 | SUBST_SED.nspr-config= -e 's|-L$$libdir|"${COMPILER_RPATH_FLAG}$$libdir -L$$libdir"|g' | | 60 | SUBST_SED.nspr-config= -e 's|-L$$libdir|"${COMPILER_RPATH_FLAG}$$libdir -L$$libdir"|g' |
46 | | | 61 | |
47 | SUBST_CLASSES+= nspr-rpath | | 62 | SUBST_CLASSES+= nspr-rpath |
48 | SUBST_STAGE.nspr-rpath= pre-configure | | 63 | SUBST_STAGE.nspr-rpath= pre-configure |
49 | SUBST_FILES.nspr-rpath= nspr/lib/libc/src/Makefile.in nspr/lib/ds/Makefile.in | | 64 | SUBST_FILES.nspr-rpath= nspr/lib/libc/src/Makefile.in nspr/lib/ds/Makefile.in |