diff options
author | dbn <dbn@FreeBSD.org> | 2013-11-07 23:08:55 +0800 |
---|---|---|
committer | dbn <dbn@FreeBSD.org> | 2013-11-07 23:08:55 +0800 |
commit | 751c3cd24be4711292276f991c1a3ce65922d115 (patch) | |
tree | 34f41f090da546acbf40cab165aef2cc8b07bb9e /lang/pypy | |
parent | c36240fcc38dcd56e7279d0a36115c7aba22c957 (diff) | |
download | freebsd-ports-gnome-751c3cd24be4711292276f991c1a3ce65922d115.tar.gz freebsd-ports-gnome-751c3cd24be4711292276f991c1a3ce65922d115.tar.zst freebsd-ports-gnome-751c3cd24be4711292276f991c1a3ce65922d115.zip |
Add stage support to lang/pypy, lang/pypy-devel and lang/pypy3-devel.
Also, require a modern compiler that can handle c11. Although this is
not strictly required (just about any C compiler would do) the base GCC
compiler has a memory bug and thus cannot reasonably compile the ports.
Diffstat (limited to 'lang/pypy')
-rw-r--r-- | lang/pypy/Makefile | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/lang/pypy/Makefile b/lang/pypy/Makefile index 99b0e2efe81f..004709e27788 100644 --- a/lang/pypy/Makefile +++ b/lang/pypy/Makefile @@ -14,9 +14,9 @@ COMMENT= Fast, compliant implementation of the Python language LICENSE= MIT PSFL LICENSE_COMB= multi -LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \ - ffi:${PORTSDIR}/devel/libffi \ - sqlite3:${PORTSDIR}/databases/sqlite3 +LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \ + libffi.so:${PORTSDIR}/devel/libffi \ + libsqlite3.so:${PORTSDIR}/databases/sqlite3 CLI_DESC= (BROKEN) Translate a CLI (.NET) based pypy JVM_DESC= (BROKEN) Translate a JVM (Java) based pypy @@ -40,7 +40,7 @@ CONFLICTS_INSTALL= pypy-devel-[0-9]* ALL_TARGET= ${PYPY_NAMES} BUILD_WRKSRC= ${WRKDIR} USE_BZIP2= yes -USES= gettext iconv +USES= compiler:c11 gettext iconv MAKEFILE= ${FILESDIR}/Makefile PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${WRKDIR}/pkg-deinstall @@ -61,18 +61,9 @@ MAKE_ENV+= DISTVERSION=${DISTVERSION} PYTHON_CMD=${PYTHON_CMD} \ LOCALBASE_REFIX= \ ${PYPY_LIBDIR}/lib_pypy/_sqlite3.py -NO_STAGE= yes .include <bsd.port.options.mk> .include "${MASTERDIR}/files/bsd.pypy.inst.mk" -.if ${OSVERSION} < 1000024 || ( ${ARCH} != "i386" && ${ARCH} != "amd64" ) -.if ${CC:T} == cc && ( exists(/usr/bin/clang) || exists(${LOCALBASE}/clang) ) -CC= clang -.else -USE_GCC= 4.2+ -.endif -.endif - .if ${PORT_OPTIONS:MPYPY} || defined(PYTHON_CMD) PYTHON_CMD?= ${LOCALBASE}/bin/pypy .elif ${PORT_OPTIONS:MPYPY_MINMEM} @@ -128,7 +119,7 @@ WITH_JVM= yes .endfor # inst in ${PYPY_INST} .if defined(WITH_BOEHM_GC) -LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc +LIB_DEPENDS+= libgc.so:${PORTSDIR}/devel/boehm-gc .endif .if defined(WITH_CLI) @@ -299,11 +290,11 @@ post-build: do-install: .for dir in ${PYPYDIRS} - (cd ${WRKSRC}/${dir}; ${COPYTREE_SHARE} . ${PREFIX}/${dir}) + (cd ${WRKSRC}/${dir}; ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${dir}) .endfor .for name in ${PYPY_NAMES:O} ${STRIP_CMD} ${WRKDIR}/${name} - ${INSTALL_PROGRAM} ${WRKDIR}/${name} ${PREFIX}/bin/${name}-${PYPY_VER} + ${INSTALL_PROGRAM} ${WRKDIR}/${name} ${STAGEDIR}${PREFIX}/bin/${name}-${PYPY_VER} ${ECHO} bin/${name}-${PYPY_VER} >> ${TMPPLIST} .endfor |