diff options
author | mezz <mezz@FreeBSD.org> | 2011-06-05 06:38:53 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2011-06-05 06:38:53 +0800 |
commit | 9c45e854df321800874ba71cf8143807c0e618a9 (patch) | |
tree | 710f0df740ab8156eda0d48c57cd65c787fbc4ae /devel/nspr | |
parent | cded9140a6d6af609d3b4ebb7efd6dbd4ecf6d4d (diff) | |
download | freebsd-ports-gnome-9c45e854df321800874ba71cf8143807c0e618a9.tar.gz freebsd-ports-gnome-9c45e854df321800874ba71cf8143807c0e618a9.tar.zst freebsd-ports-gnome-9c45e854df321800874ba71cf8143807c0e618a9.zip |
-env -> ${SETENV}
-${MASTER_SITE_MOZILLA} -> MOZILLA in MASTER_SITES
PR: ports/157373
Submitted by: Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Diffstat (limited to 'devel/nspr')
-rw-r--r-- | devel/nspr/Makefile | 10 | ||||
-rw-r--r-- | devel/nspr/files/patch-.._pr_include_md__freebsd.h | 2 |
2 files changed, 3 insertions, 9 deletions
diff --git a/devel/nspr/Makefile b/devel/nspr/Makefile index 8b7c62c70a67..af2d6ab1c420 100644 --- a/devel/nspr/Makefile +++ b/devel/nspr/Makefile @@ -8,8 +8,7 @@ PORTNAME= nspr DISTVERSION= 4.8.7 CATEGORIES= devel -#MASTER_SITES= LOCAL/ahze -MASTER_SITES= ${MASTER_SITE_MOZILLA} +MASTER_SITES= MOZILLA MASTER_SITE_SUBDIR= nspr/releases/v${PORTVERSION}/src MAINTAINER= gnome@FreeBSD.org @@ -34,11 +33,6 @@ LIBS= libnspr4.so.1 libplc4.so.1 libplds4.so.1 post-patch: @${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},g ; s,echo aout,echo elf,g' ${WRKSRC}/${CONFIGURE_SCRIPT} -.if ${OSVERSION} < 601104 - @${REINPLACE_CMD} -e 's|pthread_cond_wait|_pthread_cond_wait|g' \ - ${WRKSRC}/../pr/src/md/unix/pthreads_user.c \ - ${WRKSRC}/../pr/src/pthreads/ptsynch.c -.endif do-install: ${MKDIR} ${PREFIX}/include/nspr @@ -62,7 +56,7 @@ do-install: .endfor prtests: - env PTHREAD_LIBS="${PTHREAD_LIBS}" ${GMAKE} -C ${WRKSRC}/pr/tests + ${SETENV} PTHREAD_LIBS="${PTHREAD_LIBS}" ${GMAKE} -C ${WRKSRC}/pr/tests ${LN} -sf libmy.so.1 ${WRKSRC}/pr/tests/dll/libmy.so cd ${WRKSRC}/pr/tests && ../../../pr/tests/runtests.sh diff --git a/devel/nspr/files/patch-.._pr_include_md__freebsd.h b/devel/nspr/files/patch-.._pr_include_md__freebsd.h index 04dfc4a88644..610d1edeef59 100644 --- a/devel/nspr/files/patch-.._pr_include_md__freebsd.h +++ b/devel/nspr/files/patch-.._pr_include_md__freebsd.h @@ -15,7 +15,7 @@ #define _PR_IPV6_V6ONLY_PROBE #endif -+#if (__FreeBSD_version >= 700016) || (__FreeBSD_version < 700000 && __FreeBSD_version >= 601103) ++#if (__FreeBSD_version >= 700016) +#if defined(_PR_PTHREADS) +#define _PR_HAVE_GETPROTO_R +#define _PR_HAVE_5_ARG_GETPROTO_R |