Changeset View
Changeset View
Standalone View
Standalone View
lang/python27/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= python27 | PORTNAME= python27 | ||||
PORTVERSION= ${PYTHON_PORTVERSION} | PORTVERSION= ${PYTHON_PORTVERSION} | ||||
PORTREVISION= 2 | PORTREVISION= 3 | ||||
CATEGORIES= lang python ipv6 | CATEGORIES= lang python ipv6 | ||||
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} | MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} | ||||
DISTNAME= Python-${PORTVERSION} | DISTNAME= Python-${PORTVERSION} | ||||
DIST_SUBDIR= python | DIST_SUBDIR= python | ||||
MAINTAINER= python@FreeBSD.org | MAINTAINER= python@FreeBSD.org | ||||
COMMENT= Interpreted object-oriented programming language | COMMENT= Interpreted object-oriented programming language | ||||
Show All 12 Lines | SHEBANG_FILES= Lib/lib2to3/pgen2/*.py Lib/lib2to3/tests/*.py Lib/lib2to3/tests/data/*.py \ | ||||
Lib/platform.py Lib/profile.py Lib/pydoc.py Lib/quopri.py Lib/smtpd.py \ | Lib/platform.py Lib/profile.py Lib/pydoc.py Lib/quopri.py Lib/smtpd.py \ | ||||
Lib/smtplib.py Lib/symbol.py Lib/tabnanny.py Lib/timeit.py Lib/trace.py \ | Lib/smtplib.py Lib/symbol.py Lib/tabnanny.py Lib/timeit.py Lib/trace.py \ | ||||
Lib/uu.py Lib/webbrowser.py | Lib/uu.py Lib/webbrowser.py | ||||
CPE_VENDOR= python | CPE_VENDOR= python | ||||
CPE_PRODUCT= ${CPE_VENDOR} | CPE_PRODUCT= ${CPE_VENDOR} | ||||
CONFIGURE_ARGS+= --enable-shared | CONFIGURE_ARGS+= --enable-shared | ||||
CONFIGURE_ENV+= ac_cv_opt_olimit_ok=no OPT="" # Null out OPT to respect user CFLAGS and remove optimizations | CONFIGURE_ENV+= ac_cv_opt_olimit_ok=no OPT="" # Null out OPT to respect user CFLAGS and remove optimizations | ||||
jbeichUnsubmitted Not Done Inline Actions
jbeich: - autoconf detects sem_open() just fine, so leave caching for /usr/ports/Templates/config.site… | |||||
Not Done Inline ActionsFYI: other lang/python* ports don't pass ac_cv_posix_semaphores_enabled=yes. jbeich: FYI: other lang/python* ports don't pass `ac_cv_posix_semaphores_enabled=yes`. | |||||
INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files | INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files | ||||
Not Done Inline Actions
jbeich: - don't mix unrelated changes, they make it harder to review
- indentation is now inconsistent… | |||||
TEST_TARGET= buildbottest | TEST_TARGET= buildbottest | ||||
TEST_ARGS= TESTOPTS=-j${MAKE_JOBS_NUMBER} | TEST_ARGS= TESTOPTS=-j${MAKE_JOBS_NUMBER} | ||||
MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library | MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library | ||||
MAKE_JOBS_UNSAFE= yes # Parser/pgen build bug. See Issue: 200622, 201974 | MAKE_JOBS_UNSAFE= yes # Parser/pgen build bug. See Issue: 200622, 201974 | ||||
PLIST_SUB= ABI=${ABIFLAGS} \ | PLIST_SUB= ABI=${ABIFLAGS} \ | ||||
PORTVERSION=${PORTVERSION} \ | PORTVERSION=${PORTVERSION} \ | ||||
OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} # For plat-freebsd* in pkg-plist. http://bugs.python.org/issue19554 | OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} # For plat-freebsd* in pkg-plist. http://bugs.python.org/issue19554 | ||||
OPTIONS_DEFINE= DEBUG IPV6 LIBFFI NLS PYMALLOC SEM THREADS | OPTIONS_DEFINE= DEBUG IPV6 LIBFFI NLS PYMALLOC THREADS | ||||
OPTIONS_DEFAULT= LIBFFI PYMALLOC SEM THREADS UCS4 | OPTIONS_DEFAULT= LIBFFI PYMALLOC THREADS UCS4 | ||||
OPTIONS_SINGLE= UNICODE | OPTIONS_SINGLE= UNICODE | ||||
OPTIONS_SINGLE_UNICODE= UCS2 UCS4 | OPTIONS_SINGLE_UNICODE= UCS2 UCS4 | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
LIBFFI_DESC= Use libffi from ports instead of bundled version | LIBFFI_DESC= Use libffi from ports instead of bundled version | ||||
NLS_DESC= Enable gettext support for the locale module | NLS_DESC= Enable gettext support for the locale module | ||||
UCS2_DESC= Enable UCS2 Unicode Strings | UCS2_DESC= Enable UCS2 Unicode Strings | ||||
UCS4_DESC= Enable UCS4 Unicode Strings | UCS4_DESC= Enable UCS4 Unicode Strings | ||||
Show All 9 Lines | |||||
# Upstream Issue: http://bugs.python.org/issue6299 | # Upstream Issue: http://bugs.python.org/issue6299 | ||||
NLS_USES= gettext | NLS_USES= gettext | ||||
NLS_CPPFLAGS= -I${LOCALBASE}/include | NLS_CPPFLAGS= -I${LOCALBASE}/include | ||||
NLS_LIBS= -L${LOCALBASE}/lib -lintl | NLS_LIBS= -L${LOCALBASE}/lib -lintl | ||||
NLS_CONFIGURE_ENV_OFF= ac_cv_lib_intl_textdomain=no ac_cv_header_libintl_h=no | NLS_CONFIGURE_ENV_OFF= ac_cv_lib_intl_textdomain=no ac_cv_header_libintl_h=no | ||||
PYMALLOC_CONFIGURE_WITH= pymalloc | PYMALLOC_CONFIGURE_WITH= pymalloc | ||||
SEM_CONFIGURE_ENV= ac_cv_posix_semaphores_enabled=yes | |||||
SEM_CONFIGURE_ENV_OFF= ac_cv_posix_semaphores_enabled=no | |||||
THREADS_CONFIGURE_WITH= threads | THREADS_CONFIGURE_WITH= threads | ||||
THREADS_LDFLAGS= -lpthread | THREADS_LDFLAGS= -lpthread | ||||
UCS2_CONFIGURE_ON= --enable-unicode=ucs2 | UCS2_CONFIGURE_ON= --enable-unicode=ucs2 | ||||
UCS4_CONFIGURE_ON= --enable-unicode=ucs4 | UCS4_CONFIGURE_ON= --enable-unicode=ucs4 | ||||
.include "${.CURDIR}/Makefile.version" | .include "${.CURDIR}/Makefile.version" | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
Show All 31 Lines | |||||
PLIST_SUB+= NO_NIS="" | PLIST_SUB+= NO_NIS="" | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \ | ${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \ | ||||
${WRKSRC}/Lib/cgi.py | ${WRKSRC}/Lib/cgi.py | ||||
@${REINPLACE_CMD} -e \ | @${REINPLACE_CMD} -e \ | ||||
's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \ | 's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \ | ||||
${PATCH_WRKSRC}/Lib/pydoc.py | ${PATCH_WRKSRC}/Lib/pydoc.py | ||||
.if ${PORT_OPTIONS:MSEM} | |||||
@# do not use SEM_EXTRA_PATCHES here, since patch-setup.py overlaps with this one | |||||
@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-setup.py | |||||
.endif | |||||
Not Done Inline ActionsThe extra patch is gone, so the conditional can go away. jbeich: The extra patch is gone, so the conditional can go away. | |||||
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | ||||
@${REINPLACE_CMD} -e 's/disabled_module_list =[^]]*/&, "nis"/' \ | @${REINPLACE_CMD} -e 's/disabled_module_list =[^]]*/&, "nis"/' \ | ||||
${WRKSRC}/setup.py | ${WRKSRC}/setup.py | ||||
.endif | .endif | ||||
post-install: | post-install: | ||||
for i in ${STAGEDIR}${PREFIX}/lib/python2.7/lib-dynload/*.so; do \ | for i in ${STAGEDIR}${PREFIX}/lib/python2.7/lib-dynload/*.so; do \ | ||||
${STRIP_CMD} $$i; done # Strip shared extensions | ${STRIP_CMD} $$i; done # Strip shared extensions | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |