diff options
author | Marcus von Appen <mva@FreeBSD.org> | 2012-07-22 09:45:24 +0000 |
---|---|---|
committer | Marcus von Appen <mva@FreeBSD.org> | 2012-07-22 09:45:24 +0000 |
commit | a9682d1571df9ae18c52e5a02778acad34600c03 (patch) | |
tree | 265af112e1fadc3a264bb2971fb018cbcd6b5030 /lang/python26 | |
parent | - Update multimedia/vdr to 1.7.29 . (diff) |
- Fix Python OPT flags for WITH_PTH knob
PR: ports/168767
Submitted by: Marcus von Appen <mva@freebsd.org>
Notes
Notes:
svn path=/head/; revision=301311
Diffstat (limited to 'lang/python26')
-rw-r--r-- | lang/python26/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile index cfd285d858dd..bca1c38f7c11 100644 --- a/lang/python26/Makefile +++ b/lang/python26/Makefile @@ -7,7 +7,7 @@ PORTNAME= python26 PORTVERSION= 2.6.8 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -21,7 +21,7 @@ WRKSRC= ${PYTHON_WRKSRC}/portbld.static PATCH_WRKSRC= ${PYTHON_WRKSRC} GNU_CONFIGURE= yes CONFIGURE_SCRIPT= ../configure # must be relative -CONFIGURE_ENV= OPT="${CFLAGS}" SVNVERSION="echo freebsd" +CONFIGURE_ENV= SVNVERSION="echo freebsd" MAKE_ENV= VPATH="${PYTHON_WRKSRC}" USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes @@ -148,6 +148,8 @@ CONFIGURE_ARGS+= --disable-ipv6 CONFIGURE_ARGS+= --with-fpectl .endif +CONFIGURE_ENV+= OPT="${CFLAGS} ${_PTH_CPPFLAGS}" + pre-patch: ${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \ ${PATCH_WRKSRC}/Lib/plat-freebsd9 @@ -176,8 +178,10 @@ pre-patch: ${PATCH_WRKSRC}/Makefile.pre.in ${SED} -e 's|^#!.*|#!${PREFIX}/bin/${PYTHON_VERSION}|' \ + -e 's|libs = getvar|libs = getvar("LDFLAGS").split() + getvar|' \ ${PATCH_WRKSRC}/Misc/python-config.in > ${WRKDIR}/${PYTHON_VERSION}-config ${SED} -e 's|^#!.*|#!${PREFIX}/bin/${PYTHON_VERSION:S/thon/thon-shared/}|' \ + -e 's|libs = getvar|libs = getvar("LDFLAGS").split() + getvar|' \ ${PATCH_WRKSRC}/Misc/python-config.in > ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config .if ${PORT_OPTIONS:MFPECTL) && ${ARCH} == i386 |