strip(1) when building without DEBUG.
Drop the static archive, it's not used by anything. This saves us 500M per pkg... ok jasper@ landry@ (maintainer)
This commit is contained in:
parent
2ae4b0966a
commit
c62fcbad30
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2014/03/26 12:17:08 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2014/05/19 10:28:39 ajacoutot Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
# based on ffx 17 engine
|
||||
@ -14,7 +14,7 @@ COMMENT = Mozilla C implementation of JavaScript
|
||||
MOZILLA_VERSION = 17.0
|
||||
DISTNAME = mozjs17.0.0
|
||||
PKGNAME = mozjs17-${MOZILLA_VERSION}
|
||||
REVISION = 0
|
||||
REVISION = 1
|
||||
|
||||
SO_VERSION = 0.0
|
||||
SHARED_LIBS = mozjs-17.0 ${SO_VERSION}
|
||||
@ -50,4 +50,11 @@ CONFIGURE_ENV += SO_VERSION="${SO_VERSION}" \
|
||||
MOZILLA_VERSION="${MOZILLA_VERSION}" \
|
||||
LIBS=-lncurses
|
||||
|
||||
post-install:
|
||||
rm ${PREFIX}/lib/libmozjs-${MOZILLA_VERSION}.a
|
||||
.ifndef DEBUG
|
||||
${STRIP} ${PREFIX}/bin/js17
|
||||
${STRIP} ${PREFIX}/lib/libmozjs-${MOZILLA_VERSION}.so.${LIBmozjs-17.0_VERSION}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2014/03/26 12:17:08 ajacoutot Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.3 2014/05/19 10:28:39 ajacoutot Exp $
|
||||
@option no-default-conflict
|
||||
@conflict spidermonkey->=17.0,<18.0
|
||||
@bin bin/js17
|
||||
@ -70,6 +70,5 @@ include/js-${MOZILLA_VERSION}/mozilla/TypeTraits.h
|
||||
include/js-${MOZILLA_VERSION}/mozilla/Types.h
|
||||
include/js-${MOZILLA_VERSION}/mozilla/Util.h
|
||||
include/js-${MOZILLA_VERSION}/mozilla/WeakPtr.h
|
||||
lib/libmozjs-${MOZILLA_VERSION}.a
|
||||
@lib lib/libmozjs-${MOZILLA_VERSION}.so.${LIBmozjs-17.0_VERSION}
|
||||
lib/pkgconfig/mozjs-${MOZILLA_VERSION}.pc
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.22 2014/03/26 16:05:38 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.23 2014/05/19 10:28:39 ajacoutot Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
# based on ffx 24 engine
|
||||
@ -15,6 +15,7 @@ MOZILLA_VERSION = 24
|
||||
DISTNAME = mozjs-${MOZILLA_VERSION}.2.0
|
||||
PKGNAME = spidermonkey-${MOZILLA_VERSION}.2.0
|
||||
PKGSPEC = spidermonkey->=24.0,<25.0
|
||||
REVISION = 0
|
||||
|
||||
SO_VERSION = 0.0
|
||||
SHARED_LIBS = mozjs-24 ${SO_VERSION}
|
||||
@ -58,4 +59,11 @@ CONFIGURE_ENV += SO_VERSION="${SO_VERSION}" \
|
||||
MOZILLA_VERSION="${MOZILLA_VERSION}" \
|
||||
LIBS=-lncurses
|
||||
|
||||
post-install:
|
||||
rm ${PREFIX}/lib/libmozjs-${MOZILLA_VERSION}.a
|
||||
.ifndef DEBUG
|
||||
${STRIP} ${PREFIX}/bin/js${MOZILLA_VERSION}
|
||||
${STRIP} ${PREFIX}/lib/libmozjs-${MOZILLA_VERSION}.so.${LIBmozjs-24_VERSION}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2014/03/26 10:11:01 landry Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2014/05/19 10:28:39 ajacoutot Exp $
|
||||
@option no-default-conflict
|
||||
@conflict spidermonkey->=24.0,<25.0
|
||||
@bin bin/js${MOZILLA_VERSION}
|
||||
@ -79,6 +79,5 @@ include/mozjs-${MOZILLA_VERSION}/mozilla/TypedEnum.h
|
||||
include/mozjs-${MOZILLA_VERSION}/mozilla/Types.h
|
||||
include/mozjs-${MOZILLA_VERSION}/mozilla/Util.h
|
||||
include/mozjs-${MOZILLA_VERSION}/mozilla/WeakPtr.h
|
||||
lib/libmozjs-${MOZILLA_VERSION}.a
|
||||
@lib lib/libmozjs-${MOZILLA_VERSION}.so.${LIBmozjs-24_VERSION}
|
||||
lib/pkgconfig/mozjs-${MOZILLA_VERSION}.pc
|
||||
|
Loading…
Reference in New Issue
Block a user