Lines 35-40
Link Here
|
35 |
PYPY_MINMEM_DESC= Use PyPy to translate (lowest memory usage) |
35 |
PYPY_MINMEM_DESC= Use PyPy to translate (lowest memory usage) |
36 |
TRANS_DESC= Translation method |
36 |
TRANS_DESC= Translation method |
37 |
LOCALBASE?= /usr/local |
37 |
LOCALBASE?= /usr/local |
|
|
38 |
# Only allow building with pypy if it wouldn't cause a dependency loop (pypy depending on itself) |
38 |
.if exists(${LOCALBASE}/bin/pypy) || ${PORTNAME} != pypy |
39 |
.if exists(${LOCALBASE}/bin/pypy) || ${PORTNAME} != pypy |
39 |
OPTIONS_SINGLE_TRANS+= PYPY PYPY_MINMEM |
40 |
OPTIONS_SINGLE_TRANS+= PYPY PYPY_MINMEM |
40 |
. if exists(${LOCALBASE}/bin/pypy) |
41 |
. if exists(${LOCALBASE}/bin/pypy) |
Lines 47-53
Link Here
|
47 |
.endif |
48 |
.endif |
48 |
|
49 |
|
49 |
ALL_TARGET= ${PORTNAME}-c |
50 |
ALL_TARGET= ${PORTNAME}-c |
50 |
BUILD_WRKSRC?= ${WRKDIR}/build/usession-release-pypy2.7-v${DISTVERSION}rc4-0/testing_1 |
51 |
BUILD_WRKSRC?= ${WRKDIR}/build/usession-${PORTNAME}-0/testing_1 |
51 |
MAKE_ENV+= PYPY_LOCALBASE=${LOCALBASE} LDSHARED="${CC} -shared" |
52 |
MAKE_ENV+= PYPY_LOCALBASE=${LOCALBASE} LDSHARED="${CC} -shared" |
52 |
PACKAGE_ARGS?= --without-gdbm --without-sqlite3 --without-tk |
53 |
PACKAGE_ARGS?= --without-gdbm --without-sqlite3 --without-tk |
53 |
LLD_UNSAFE= yes |
54 |
LLD_UNSAFE= yes |
Lines 99-109
Link Here
|
99 |
|
100 |
|
100 |
DESCR= ${.CURDIR}/pkg-descr |
101 |
DESCR= ${.CURDIR}/pkg-descr |
101 |
DISTINFO_FILE= ${.CURDIR}/distinfo |
102 |
DISTINFO_FILE= ${.CURDIR}/distinfo |
102 |
MASTERDIR?= ${.CURDIR} |
|
|
103 |
PATCHDIR= ${.CURDIR}/files |
103 |
PATCHDIR= ${.CURDIR}/files |
104 |
PLIST= ${.CURDIR}/pkg-plist |
104 |
PLIST= ${.CURDIR}/pkg-plist |
105 |
|
105 |
|
106 |
.include "${MASTERDIR}/bsd.pypy.mk" |
106 |
.include "bsd.pypy.mk" |
107 |
.include <bsd.port.pre.mk> |
107 |
.include <bsd.port.pre.mk> |
108 |
|
108 |
|
109 |
.if ${OPSYS} == FreeBSD && ${ARCH} != i386 && ${ARCH} != amd64 |
109 |
.if ${OPSYS} == FreeBSD && ${ARCH} != i386 && ${ARCH} != amd64 |
Lines 112-126
Link Here
|
112 |
LIB_DEPENDS+= libunwind.so:devel/libunwind |
112 |
LIB_DEPENDS+= libunwind.so:devel/libunwind |
113 |
.endif |
113 |
.endif |
114 |
|
114 |
|
115 |
post-extract: |
|
|
116 |
${FIND} ${WRKSRC} -name '*.swn' -delete |
117 |
|
118 |
pre-build: |
115 |
pre-build: |
119 |
if [ ! -f ${BUILD_WRKSRC}/Makefile ]; then \ |
116 |
if [ ! -f ${BUILD_WRKSRC}/Makefile ]; then \ |
120 |
${RM} -r ${WRKDIR}/build; \ |
117 |
${RM} -r ${WRKDIR}/build; \ |
121 |
${MKDIR} ${WRKDIR}/build; \ |
118 |
${MKDIR} ${WRKDIR}/build; \ |
122 |
(cd ${WRKSRC}/pypy/goal; \ |
119 |
(cd ${WRKSRC}/pypy/goal; \ |
123 |
${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build \ |
120 |
${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build PYPY_USESSION_BASENAME=${PORTNAME} \ |
124 |
${PYTHON_CMD} ../../rpython/bin/rpython --source -Ojit targetpypystandalone.py ${PYPY_ARGS}); \ |
121 |
${PYTHON_CMD} ../../rpython/bin/rpython --source -Ojit targetpypystandalone.py ${PYPY_ARGS}); \ |
125 |
fi |
122 |
fi |
126 |
|
123 |
|