View | Details | Raw Unified | Return to bug 203640
Collapse All | Expand All

(-)Makefile (-12 / +5 lines)
Lines 24-38 Link Here
24
PLIST_SUB+=		LIB_VERSION="${PORTVERSION}" LIB_VRS="${LIB_VRS}"
24
PLIST_SUB+=		LIB_VERSION="${PORTVERSION}" LIB_VRS="${LIB_VRS}"
25
.endif
25
.endif
26
26
27
OPTIONS_DEFINE?=	DEBUG TESTS
27
OPTIONS_DEFINE?=	DEBUG TEST
28
OPTIONS_DEFAULT?=	TESTS
29
TESTS_DESC?=		Build and run tests (requires lang/python)
30
28
31
.include <bsd.port.options.mk>
29
.include <bsd.port.options.mk>
32
30
33
USES+=			iconv gmake
31
USES+=			iconv gmake
34
32
35
.if ${PORT_OPTIONS:MTESTS} && ${SLAVE_PORT} == "no"
33
.if ${PORT_OPTIONS:MTEST} && ${SLAVE_PORT} == "no"
36
USES+=			python:build
34
USES+=			python:build
37
BUILD_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}passlib>0:${PORTSDIR}/security/py-passlib
35
BUILD_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}passlib>0:${PORTSDIR}/security/py-passlib
38
.endif
36
.endif
Lines 62-68 Link Here
62
MAKE_ENV+=		LP64=yes
60
MAKE_ENV+=		LP64=yes
63
.endif
61
.endif
64
62
65
.if !${PORT_OPTIONS:MTESTS}
63
.if !${PORT_OPTIONS:MTEST}
66
MAKE_ENV+=		NOTESTS=yes
64
MAKE_ENV+=		NOTESTS=yes
67
.endif
65
.endif
68
66
Lines 135-148 Link Here
135
		s|%%PREFIX%%|${PREFIX}|g; \
133
		s|%%PREFIX%%|${PREFIX}|g; \
136
		s|%%LOCALBASE%%|${LOCALBASE}|g;' ${WRKSRC}/php/config/Make.rules.php
134
		s|%%LOCALBASE%%|${LOCALBASE}|g;' ${WRKSRC}/php/config/Make.rules.php
137
135
138
.if ${PORT_OPTIONS:MTESTS}
136
do-test-TEST-on:
139
TEST_CMD=		@cd ${BUILD_WRKSRC} && ${PYTHON_CMD} ./allTests.py
137
	@cd ${BUILD_WRKSRC} && ${PYTHON_CMD} ./allTests.py
140
check regression-test test: build
141
	${TEST_CMD}
142
138
143
pre-install: regression-test
144
.endif
145
146
.if ${SLAVE_PORT} == "no"
139
.if ${SLAVE_PORT} == "no"
147
post-install:
140
post-install:
148
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*
141
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*

Return to bug 203640