1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Unbreak: Recursive make variable definitions which may or may not be applied

in obscure ways, confuse myself as well as make(1).  Fix: rename the modified
  variable

PR:		ports/79606
Submitted by:	Johan van Selst <johans@stack.nl>
This commit is contained in:
Pav Lucistnik 2005-04-08 22:32:55 +00:00
parent 5db0acfb5c
commit f3bad1ca00
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132787
2 changed files with 2 additions and 6 deletions

View File

@ -20,7 +20,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libcoro.a:${PORTSDIR}/devel/libcoro
USE_PYTHON= yes
USE_REINPLACE= yes
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
MAKE_ENV= PYTHON_VERSION=${PYTHON_VERSION:S/python//} \
MAKE_ENV= SHORT_PYTHON_VERSION=${PYTHON_VERSION:S/python//} \
EXTRA_INCLUDE="-I${LOCALBASE}/include" \
EXTRA_LIB="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= installdir="${PREFIX}" \
@ -35,10 +35,6 @@ CORO_EXAMPLES= backdoor coro_fd coro_subproc coro_ehttpd \
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 503000
BROKEN= "Does not build on FreeBSD >= 5.x"
.endif
post-patch:
.if ${PYTHON_REL} >= 230
@${REINPLACE_CMD} -e 's,@DEFS@,,g' ${WRKSRC}/coromodule/Makefile.pre.in

View File

@ -24,7 +24,7 @@
CONFIGCIN= $(LIBPL)/config.c.in
-SETUP= $(LIBPL)/Setup.thread $(LIBPL)/Setup.local $(LIBPL)/Setup
+SETUP= $(LIBPL)/Setup.local $(LIBPL)/Setup
+.if ${PYTHON_VERSION} < 2.0
+.if ${SHORT_PYTHON_VERSION} < 2.0
+SETUP+= ${LIBPL}/Setup.thread
+.endif