Changeset View
Changeset View
Standalone View
Standalone View
head/lang/python35/Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org> | # Created by: Kubilay Kocak <koobs@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= python | PORTNAME= python | ||||
DISTVERSION= 3.5.0 | DISTVERSION= 3.5.0 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= lang python ipv6 | CATEGORIES= lang python ipv6 | ||||
MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/} | MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/} | ||||
PKGNAMESUFFIX= 35 | PKGNAMESUFFIX= ${PYTHON_SUFFIX} | ||||
DISTNAME= Python-${DISTVERSION} | DISTNAME= Python-${DISTVERSION} | ||||
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 | ||||
LICENSE= PSFL | LICENSE= PSFL | ||||
USES= cpe ncurses pkgconfig readline tar:xz | USES= cpe ncurses pkgconfig readline tar:xz | ||||
USE_OPENSSL= yes | USE_OPENSSL= yes | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CPE_VENDOR= python | CPE_VENDOR= python | ||||
CPE_PRODUCT= ${CPE_VENDOR} | CPE_PRODUCT= ${CPE_VENDOR} | ||||
CPE_VERSION= ${DISTVERSION} | CPE_VERSION= ${DISTVERSION} | ||||
# Duplicate python.mk variables. TODO: Let lang/python?? ports use python.mk bits. | # Duplicate python.mk variables. TODO: Let lang/python?? ports use python.mk bits. | ||||
PYTHON_VER= ${DISTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} | |||||
PYTHON_VERSION= python${PYTHON_VER} | |||||
PYTHON_PORTVERSION= ${DISTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/} | PYTHON_PORTVERSION= ${DISTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/} | ||||
PYTHON_VER= ${PYTHON_PORTVERSION:R} | |||||
PYTHON_VERSION= python${PYTHON_VER} | |||||
PYTHON_SUFFIX= ${PYTHON_VER:S/.//g} | PYTHON_SUFFIX= ${PYTHON_VER:S/.//g} | ||||
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm | DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm | ||||
CONFIGURE_ARGS+= --enable-shared --without-ensurepip | CONFIGURE_ARGS+= --enable-shared --without-ensurepip | ||||
CONFIGURE_ENV+= OPT="" DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS}" # Null out OPT to respect user CFLAGS and remove optimizations | CONFIGURE_ENV+= OPT="" DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS}" # Null out OPT to respect user CFLAGS and remove optimizations | ||||
INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files | INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files | ||||
MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library | MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library | ||||
MAKE_ARGS+= LIBPC="${PREFIX}/libdata/pkgconfig" # Until pathfix gets support for files other than Makefile.in | MAKE_ARGS+= LIBPC="${PREFIX}/libdata/pkgconfig" # Until pathfix gets support for files other than Makefile.in | ||||
MAKE_JOBS_UNSAFE= yes # Parser/pgen build bug. See Issue: 200622, 201974 | MAKE_JOBS_UNSAFE= yes # Parser/pgen build bug. See Issue: 200622, 201974 | ||||
SUB_FILES= pkg-message | |||||
SUB_LIST= PYTHON_SUFFIX=${PYTHON_SUFFIX} | |||||
PLIST_SUB= XYDOT=${PYTHON_VER} XY=${PYTHON_SUFFIX} \ | PLIST_SUB= XYDOT=${PYTHON_VER} XY=${PYTHON_SUFFIX} \ | ||||
XYZDOT=${PYTHON_PORTVERSION} ABI=${ABIFLAGS} \ | XYZDOT=${PYTHON_PORTVERSION} ABI=${ABIFLAGS} \ | ||||
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 THREADS TSC | OPTIONS_DEFINE= DEBUG IPV6 LIBFFI NLS PYMALLOC THREADS TSC | ||||
OPTIONS_DEFAULT= IPV6 LIBFFI NLS PYMALLOC THREADS | OPTIONS_DEFAULT= IPV6 LIBFFI NLS PYMALLOC THREADS | ||||
OPTIONS_RADIO= HASH | OPTIONS_RADIO= HASH | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |