Changeset View
Changeset View
Standalone View
Standalone View
lang/python38/Makefile
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
PLIST_SUB+= NO_NIS="" | PLIST_SUB+= NO_NIS="" | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
# disable the detection of includes and library from e2fsprogs-libuuid, | # disable the detection of includes and library from e2fsprogs-libuuid, | ||||
# which introduces hidden dependency and breaks build | # which introduces hidden dependency and breaks build | ||||
@${REINPLACE_CMD} -e 's|uuid/uuid.h|ignore_&|' ${WRKSRC}/configure | @${REINPLACE_CMD} -e 's|uuid/uuid.h|ignore_&|' ${WRKSRC}/configure | ||||
@${REINPLACE_CMD} -e '/find_library_file/ s|uuid|ignore_&|' ${WRKSRC}/setup.py | @${REINPLACE_CMD} -e '/find_library_file/ s|uuid|ignore_&|' ${WRKSRC}/setup.py | ||||
# Building _lzma extension fails if archivers/lzmalib is installed. | |||||
# This way Python will always link with lzma from base (libarchive). | |||||
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209355 | |||||
# Eventually we can build it against archivers/lzma, but currently | |||||
# the port does not provide header and libraries. | |||||
.if exists(${LOCALBASE}/lib/liblzma.so) | |||||
@${ECHO_CMD} -e '*shared*\n_lzma _lzmamodule.c -I/usr/include -L/usr/lib -l:liblzma.so.5\n' \ | |||||
> ${WRKSRC}/Modules/Setup.local | |||||
.endif | |||||
post-install: | post-install: | ||||
.if ! ${PORT_OPTIONS:MDEBUG} | .if ! ${PORT_OPTIONS:MDEBUG} | ||||
${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 | ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 | ||||
.endif | .endif | ||||
# This code block exists for the qemu-user enabled cross build environment. | # This code block exists for the qemu-user enabled cross build environment. | ||||
# When using this environment in poudriere, CC is not set to the default | # When using this environment in poudriere, CC is not set to the default | ||||
# of /usr/bin/cc and a cross-compile toolchain is used. We need to hand | # of /usr/bin/cc and a cross-compile toolchain is used. We need to hand | ||||
Show All 20 Lines |