pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix file permissions and installing on Darwin.



Module Name:	pkgsrc-wip
Committed By:	youri <youri%NetBSD.org@localhost>
Pushed By:	youri
Date:		Fri Apr 1 15:34:49 2016 +0200
Changeset:	4bb4294e66980e4d79e726d7a5f2bacfb42e0a3c

Modified Files:
	spidermonkey24/Makefile

Log Message:
Fix file permissions and installing on Darwin.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4bb4294e66980e4d79e726d7a5f2bacfb42e0a3c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 spidermonkey24/Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diffs:
diff --git a/spidermonkey24/Makefile b/spidermonkey24/Makefile
index 012746f..2d1a031 100644
--- a/spidermonkey24/Makefile
+++ b/spidermonkey24/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2014/02/06 15:12:17 fhajny Exp $
+# $NetBSD: Makefile,v 1.1 2014/02/06 15:12:24 fhajny Exp $
 
 DISTNAME=	mozjs-24.2.0
 PKGNAME=	${DISTNAME:S/mozjs/spidermonkey24/}
@@ -42,6 +42,16 @@ PLIST_SUBST+=	ARCH=X64
 PLIST_SUBST+=	ARCH=${MACHINE_ARCH}
 .endif
 
+post-install:
+.if ${OPSYS} == "Darwin"
+	install_name_tool -id ${PREFIX}/lib/libmozjs-24.dylib \
+		${DESTDIR}${PREFIX}/lib/libmozjs-24.dylib
+.endif
+	${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-24/*.*
+	${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-24/*/*.*
+	${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libmozjs-24.a
+	${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-24.pc
+
 .include "../../devel/libffi/buildlink3.mk"
 .include "../../devel/nspr/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"


Home | Main Index | Thread Index | Old Index