pkgsrc/devel/nspr/Makefile
ryoon 3133528496 Update to 4.10.5
Changelog:
An important internal change in NSPR 4.10.5 is that the configure script
was generated using Autoconf 2.69 instead of Autoconf 2.13. If your
build system uses Autoconf and your configure script invokes NSPR's
configure script as a sub-configure, some adjustments may be necessary.

NSPR 4.10.5 has the following bug fixes:
- Bug 50549: Link to ws2_32.lib instead of wsock32.lib under Windows.
- Bug 695993: Update NSPR's config.guess and config.sub, get rid of our
  non-upstreamed hacks. Contributed by Ulrich Weigand.
- Bug 849085: autoconf: Port NSPR's build/autoconf/acwinpaths.m4 to
  autoconf 2.56+.
- Bug 849093: autoconf: Do not call AC_PROG_CC inside a conditional
  block.
- Bug 977685: Support powerpc64le-linux platform in NSPR. Contributed by
  Ulrich Weigand.
- Bug 978636: Detect MSYS2 on configure. Contributed by Makoto Kato.
- Bug 981558: Do library timestamping with one-second resolution.
- Bug 986745: Add atomic primitives for Linux ppc64. Contributed by
  Ulrich Weigand.
- Bug 989497: nspr/configure.in should also call AC_PROG_CPP when
  cross-compiling.
- Bug 992471: nspr/configure.in should not check for CROSS_COMPILE in
  the environment.
2014-05-06 13:59:55 +00:00

105 lines
2.9 KiB
Makefile

# $NetBSD: Makefile,v 1.70 2014/05/06 13:59:55 ryoon Exp $
#
DISTNAME= nspr-${NSPR_RELEASE}
NSPR_RELEASE= 4.10.5
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=nspr/releases/v${NSPR_RELEASE}/src/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mozilla.org/projects/nspr/index.html
COMMENT= Platform-neutral API for system level and libc like functions
LICENSE= mpl-2.0
CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh
CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh
CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/configure
CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}configure
GNU_CONFIGURE= yes
GNU_CONFIGURE_LIBSUBDIR=nspr
CONFIGURE_DIRS= nspr
USE_GCC_RUNTIME= yes
USE_TOOLS+= autoconf gmake perl
REPLACE_PERL+= nspr/pr/src/misc/compile-et.pl
CONFIGURE_ARGS+= --disable-debug
CONFIGURE_ARGS+= --with-pthreads
CONFIGURE_ENV+= LIBRUNPATH=${PREFIX:Q}/lib/nspr
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= nspr-config
SUBST_STAGE.nspr-config= pre-configure
SUBST_MESSAGE.nspr-config= Fixing nspr-config run path
SUBST_FILES.nspr-config= nspr/config/nspr-config.in
SUBST_SED.nspr-config= -e 's|-L$$libdir|"${COMPILER_RPATH_FLAG}$$libdir -L$$libdir"|g'
.if ${OPSYS} == "OpenBSD"
CHECK_SHLIBS_SUPPORTED= no
.endif
.if ${OPSYS} == "Darwin"
SUBST_CLASSES+= exec_path
SUBST_STAGE.exec_path= pre-configure
SUBST_MESSAGE.exec_path= Fixing @executable_path
SUBST_FILES.exec_path= nspr/configure.in
SUBST_SED.exec_path= -e 's,@executable_path,${PREFIX}/lib/nspr,g'
.endif
.if ${OBJECT_FMT} == "ELF"
SO_SUFFIX= so
.elif ${OBJECT_FMT} == "Mach-O"
SO_SUFFIX= dylib
.else
SO_SUFFIX= so.1.0
.endif
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX:Q}
PLIST_VARS+= sun4u_32
# see nspr/pr/src/md/unix/Makefile.in
# for the bit about 32-bit sun4u machines installing an extra file.
# That is why we have this specific test and modify the PLIST
.if ${OPSYS} == "SunOS"
. if defined(ABI) && ${ABI} == "64"
CONFIGURE_ARGS+= --enable-64bit
. else
HW_CLASS!= ${UNAME} -m
. if ${HW_CLASS} == "sun4u"
PLIST.sun4u_32= yes
. endif
. endif
.endif
.if ${OPSYS} == "Linux"
. if defined(ABI) && ${ABI} == "64"
CONFIGURE_ARGS+= --enable-64bit
. endif
.endif
.if ${OPSYS} == "Darwin" && exists(/Developer/Headers/FlatCarbon)
BUILDLINK_PASSTHRU_DIRS+= Developer/Headers/FlatCarbon
.endif
pre-configure:
cd ${WRKSRC}/nspr && autoconf
post-build:
set -e; ( \
${ECHO} "Name: NSPR"; \
${ECHO} "Description: The Netscape Portable Runtime"; \
${ECHO} "Version: ${NSPR_RELEASE}"; \
${ECHO} "Cflags: -I${PREFIX}/include/nspr"; \
${ECHO} "Libs: -L${PREFIX}/lib/nspr" \
"${COMPILER_RPATH_FLAG}${PREFIX}/lib/nspr" \
"-lplds4 -lplc4 -lnspr4 "${BUILDLINK_LIBS.pthread:Q}; \
) > ${WRKDIR}/nspr.pc
INSTALLATION_DIRS+= lib/pkgconfig
post-install:
${INSTALL_DATA} ${WRKDIR}/nspr.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"