Changeset View
Changeset View
Standalone View
Standalone View
head/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 26 Lines | |||||
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 32 Lines | |||||
.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 | |||||
.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> |