mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
- fix build on FreeBSD 10
- strict python versions to 2.6-2.7 - bump USE_WX to 2.8+ according to matplotlib docs - fix pkg-plist after switching this port to wxPython 2.8+ - bump PORTREVISION PR: ports/161716 Submitted by: rm (myself) Approved by: Geoffrey Mainland <mainland@apeiron.net> (maintainer), novel (mentor) Feature safe: yes
This commit is contained in:
parent
b0a8e9dbdc
commit
55a433209f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285590
3 changed files with 10 additions and 14 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
PORTNAME= matplotlib
|
||||
PORTVERSION= 1.0.1
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= math python
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -25,7 +25,7 @@ RUN_DEPENDS= ${PYNUMPY} \
|
|||
${PYTHON_PKGNAMEPREFIX}dateutil>=1.4:${PORTSDIR}/devel/py-dateutil \
|
||||
${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz
|
||||
|
||||
USE_PYTHON= 2.4+
|
||||
USE_PYTHON= 2.6-2.7
|
||||
USE_PYDISTUTILS=yes
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
|
||||
|
@ -85,17 +85,13 @@ PLIST_SUB+= TKAGGBACKEND="@comment "
|
|||
.endif
|
||||
|
||||
.if defined(WITH_WXAGGBACKEND)
|
||||
USE_WX= 2.6
|
||||
USE_WX= 2.8+
|
||||
WX_COMPS= python
|
||||
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}"
|
||||
|
||||
WXAGG_BACKEND= True
|
||||
|
||||
PLIST_SUB+= WXAGGBACKEND=""
|
||||
.else
|
||||
WXAGG_BACKEND= False
|
||||
|
||||
PLIST_SUB+= WXAGGBACKEND="@comment "
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
--- setupext.py.orig 2010-07-07 09:41:55.000000000 +0800
|
||||
+++ setupext.py 2011-06-27 16:14:58.000000000 +0800
|
||||
@@ -68,6 +68,9 @@
|
||||
--- setupext.py.orig 2010-07-07 05:41:55.000000000 +0400
|
||||
+++ setupext.py 2011-10-16 18:49:43.000000000 +0400
|
||||
@@ -68,6 +68,10 @@
|
||||
'freebsd4' : ['/usr/local', '/usr'],
|
||||
'freebsd5' : ['/usr/local', '/usr'],
|
||||
'freebsd6' : ['/usr/local', '/usr'],
|
||||
+ 'freebsd7' : ['/usr/local', '/usr'],
|
||||
+ 'freebsd8' : ['/usr/local', '/usr'],
|
||||
+ 'freebsd9' : ['/usr/local', '/usr'],
|
||||
+ 'freebsd10': ['/usr/local', '/usr'],
|
||||
'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
|
||||
'gnukfreebsd5' : ['/usr/local', '/usr'],
|
||||
'gnukfreebsd6' : ['/usr/local', '/usr'],
|
||||
@@ -789,7 +792,7 @@
|
||||
@@ -789,7 +793,7 @@
|
||||
module.libraries.extend(wxlibs)
|
||||
return
|
||||
|
||||
|
@ -19,7 +20,7 @@
|
|||
|
||||
# Make sure you use the Tk version given by Tkinter.TkVersion
|
||||
# or else you'll build for a wrong version of the Tcl
|
||||
@@ -828,8 +831,12 @@
|
||||
@@ -828,8 +832,12 @@
|
||||
gotit = False
|
||||
|
||||
if gotit:
|
||||
|
@ -33,7 +34,7 @@
|
|||
else:
|
||||
print_status("Tkinter", "no")
|
||||
if explanation is not None:
|
||||
@@ -1092,9 +1099,9 @@
|
||||
@@ -1092,9 +1100,9 @@
|
||||
|
||||
# Add final versions of directories and libraries to module lists
|
||||
tcl_lib, tcl_inc, tk_lib, tk_inc = result
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
%%GTKBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_backend_gdk.so
|
||||
%%GTKAGGBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_gtkagg.so
|
||||
%%TKAGGBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_tkagg.so
|
||||
%%WXAGGBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_wxagg.so
|
||||
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.py
|
||||
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.pyc
|
||||
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.pyo
|
||||
|
|
Loading…
Add table
Reference in a new issue