diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2009-09-15 21:41:21 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2009-09-15 21:41:21 +0000 |
| commit | 87ee28693e2fb6ecbb98d21239fa820e011b77db (patch) | |
| tree | c57d35c783f1af53dfb5d7204dc3b1acd25b2175 /lang/python26/Makefile | |
| parent | 40a43e8c8f6f9bbcfe30241c54a9d7f0b1dd8ce0 (diff) | |
Fix build if POSIX semaphore enabled is
Reported by: many on ports@/python@
Patched by: beat@
Feature safe: yes
Notes
svn path=/head/; revision=241486
Diffstat (limited to 'lang/python26/Makefile')
| -rw-r--r-- | lang/python26/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile index 9aa26c7460b5..e77ea3a77044 100644 --- a/lang/python26/Makefile +++ b/lang/python26/Makefile @@ -62,7 +62,6 @@ OPTIONS= THREADS "Enable thread support" on \ .if defined(WITH_SEM) .if ${OSVERSION} >= 701106 -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-setup.py SEM_MSG= "" .else IGNORE= POSIX semaphore support only works in FreeBSD 7-STABLE and later @@ -182,6 +181,13 @@ pre-patch: ${ECHO} "fpectl fpectlmodule.c" >> ${WRKSRC}/Modules/Setup.dist .endif +post-patch: +.if defined(WITH_SEM) +.if ${OSVERSION} >= 701106 + @cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-setup.py +.endif +.endif + post-configure: ${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${SHARED_WRKSRC} -xf - ${LN} -sf ${PYTHON_WRKSRC}/Lib ${WRKSRC}/Lib |
