[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / mozjs78

Annotation of pkgsrc/lang/mozjs78/Makefile, Revision 1.21

1.21    ! gutterid    1: # $NetBSD: Makefile,v 1.20 2021/05/24 19:52:34 wiz Exp $
1.1       nia         2:
                      3: DISTNAME=      mozjs78_78.4.0.orig
                      4: PKGNAME=       ${DISTNAME:S/_/-/:S/.orig//}
1.20      wiz         5: PKGREVISION=   3
1.1       nia         6: CATEGORIES=    lang
                      7: MASTER_SITES=  http://deb.debian.org/debian/pool/main/m/mozjs78/
                      8: EXTRACT_SUFX=  .tar.xz
                      9:
                     10: MAINTAINER=    pkgsrc-users@NetBSD.org
1.19      gutterid   11: HOMEPAGE=      https://spidermonkey.dev/
1.1       nia        12: COMMENT=       SpiderMonkey JavaScript library (78.x branch)
                     13: LICENSE=       mpl-1.1
                     14:
1.10      nia        15: WRKSRC=                ${WRKDIR}/firefox-${PKGVERSION_NOREV}
1.1       nia        16: USE_TOOLS+=    autoconf213 gmake perl pkg-config
                     17: USE_LANGUAGES= c c++
                     18:
1.4       gutterid   19: # "ERROR: Only GCC 7.1 or newer is supported"
1.7       nia        20: GCC_REQD+=     7
1.1       nia        21:
1.10      nia        22: CONFIGURE_DIRS=        js/src/build
                     23: BUILD_DIRS=    js/src/build
                     24:
1.1       nia        25: HAS_CONFIGURE=         yes
                     26: CONFIGURE_SCRIPT=      ../configure
                     27: CONFIGURE_ARGS+=       --prefix=${PREFIX}
                     28: CONFIGURE_ARGS+=       --disable-debug
                     29: CONFIGURE_ARGS+=       --with-system-icu
                     30: CONFIGURE_ARGS+=       --with-system-zlib
                     31: CONFIGURE_ARGS+=       --enable-readline
                     32: CONFIGURE_ARGS+=       --disable-jemalloc
                     33: CONFIGURE_ARGS+=       --disable-debug-symbols
                     34: CONFIGURE_ARGS+=       --enable-strip
                     35: CONFIGURE_ARGS+=       --with-intl-api
                     36: # --disable-optimize
1.21    ! gutterid   37:
1.1       nia        38: # For rustc/cargo detection
1.21    ! gutterid   39: .include "../../mk/bsd.prefs.mk"
        !            40:
        !            41: # This is to work around build failures where an upstream configuration script
        !            42: # is confused by having more than one approximate match to MACHINE_GNU_PLATFORM
        !            43: # "i486" when attempting to select the Rust compiler target.
        !            44: .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
        !            45: CONFIGURE_ARGS+=       --target=i586-unknown-netbsd
        !            46: CONFIGURE_ARGS+=       --host=i586-unknown-netbsd
        !            47: .else
1.1       nia        48: CONFIGURE_ARGS+=       --target=${MACHINE_GNU_PLATFORM}
                     49: CONFIGURE_ARGS+=       --host=${MACHINE_GNU_PLATFORM}
1.21    ! gutterid   50: .endif
1.1       nia        51:
1.15      gutterid   52: BUILDLINK_TRANSFORM.SunOS+=    rm:-pie
                     53:
1.10      nia        54: SUBST_CLASSES+=                conf
                     55: SUBST_STAGE.conf=      pre-configure
                     56: SUBST_MESSAGE.conf=    Set variables in configuration file.
                     57: SUBST_FILES.conf+=     js/moz.configure
                     58: SUBST_VARS.conf=       PREFIX
                     59:
                     60: PKGCONFIG_OVERRIDE+=   js/src/build/js.pc.in
                     61: PKGCONFIG_OVERRIDE+=   js/src/ctypes/libffi/libffi.pc.in
1.1       nia        62:
1.2       nia        63: PYTHON_VERSIONS_INCOMPATIBLE=  27
1.1       nia        64: PYTHON_FOR_BUILD_ONLY=         tool
1.2       nia        65: TOOL_DEPENDS+=                 ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
1.1       nia        66:
1.13      gutterid   67: TEST_DEPENDS+=                 ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
                     68:
                     69: TEST_TARGET=                   check-jstests
                     70:
1.1       nia        71: pre-configure:
1.10      nia        72:        cd ${WRKSRC}/js/src && \
                     73:            autoconf-2.13 old-configure.in > old-configure && autoconf-2.13
                     74:        ${MKDIR} ${WRKSRC}/js/src/build && \
                     75:            ${TOUCH} ${WRKSRC}/js/src/build/old-configure.vars
1.1       nia        76:
                     77: post-install:
                     78:        cd ${DESTDIR}${PREFIX}/lib && \
                     79:                ${MV} libmozjs-78.so libmozjs-78.so.0.0.0 && \
                     80:                ${LN} -s libmozjs-78.so.0.0.0 libmozjs-78.so.0 && \
                     81:                ${LN} -s libmozjs-78.so.0 libmozjs-78.so
                     82:        ${RM} -f ${DESTDIR}${PREFIX}/lib/libjs_static.ajs
                     83:        ${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-78/js-config.h
                     84:        ${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-78.pc
                     85:
                     86: BUILDLINK_DEPMETHOD.clang=     build
                     87: .include "../../lang/clang/buildlink3.mk"
1.3       gutterid   88: RUST_REQ=      1.41.0
1.1       nia        89: .include "../../lang/rust/rust.mk"
                     90: .include "../../devel/zlib/buildlink3.mk"
                     91: .include "../../lang/python/tool.mk"
                     92: .include "../../textproc/icu/buildlink3.mk"
                     93: .include "../../mk/readline.buildlink3.mk"
1.16      nia        94: # XXX This does not work entirely correctly at present. There are
                     95: # 26 atomic type test failures on powerpc, where these pass on i386.
                     96: .include "../../mk/atomic64.mk"
1.1       nia        97: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>