aboutsummaryrefslogtreecommitdiff
path: root/cad/kicad/files
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-05-26 07:48:22 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-05-26 07:48:22 +0000
commitc2d75eda5f2b480fd666a58e370fb59ecf3554a3 (patch)
tree28f7cea9f05e4e2765d35ef67e0694fbc081e784 /cad/kicad/files
parent098759834a203b3b921871bd7d1ac708dba6b913 (diff)
downloadports-c2d75eda5f2b480fd666a58e370fb59ecf3554a3.tar.gz
ports-c2d75eda5f2b480fd666a58e370fb59ecf3554a3.zip
Upgrade to 2007.05.25 and switch to wxWidgets-2.8.
Note: Python bindings not yet enabled.
Notes
Notes: svn path=/head/; revision=191888
Diffstat (limited to 'cad/kicad/files')
-rw-r--r--cad/kicad/files/patch-libs.FreeBSD57
1 files changed, 36 insertions, 21 deletions
diff --git a/cad/kicad/files/patch-libs.FreeBSD b/cad/kicad/files/patch-libs.FreeBSD
index 8d935b6a79d4..90aa4f91af7d 100644
--- a/cad/kicad/files/patch-libs.FreeBSD
+++ b/cad/kicad/files/patch-libs.FreeBSD
@@ -1,5 +1,5 @@
---- libs.FreeBSD.orig Sat Jan 27 00:07:38 2007
-+++ libs.FreeBSD Sat Jan 27 00:08:36 2007
+--- libs.FreeBSD.orig Fri May 25 18:35:26 2007
++++ libs.FreeBSD Fri May 25 21:04:46 2007
@@ -1,6 +1,6 @@
#Configuration for build kicad
@@ -8,28 +8,41 @@
SRCSUFF = .cpp
-@@ -11,26 +11,31 @@
+@@ -14,39 +14,39 @@
# You must comment or uncomment this line for dynamic or static link
# dynamic link is less difficult than static link
# choose it if you have problems (libs not found, or unresolved references) ), or if kicad is running only on YOUR system.
+-ifndef KICAD_PYTHON
-KICAD_STATIC_LINK = 1
+-endif
++#ifndef KICAD_PYTHON
+#KICAD_STATIC_LINK = 1
++#endif
+
+ ifdef KICAD_PYTHON
+-PYTHON_VERSION=2.3
+-PYLIBS= -L/usr/lib
+-PYLIBS+= -L /usr/include/python
++PYTHON_VERSION=2.4
++PYLIBS= -L${LOCALBASE}/lib
++PYLIBS+= -L${LOCALBASE}/lib/python$(PYTHON_VERSION)
+ PYLIBS+= -lpython$(PYTHON_VERSION)
+ PYLIBS+= -lboost_python
+-EXTRACPPFLAGS+=-I /usr/include/python$(PYTHON_VERSION) -DKICAD_PYTHON -fno-strict-aliasing
++EXTRACPPFLAGS+=-I ${LOCALBASE}/python$(PYTHON_VERSION) -DKICAD_PYTHON -fno-strict-aliasing
+ endif
# path and version definition for wxWidgets and mesa libs
-MESALIBSPATH = /usr/local/lib
-WXPATH = `wx-config --prefix`/lib
-PREFIX_WX_LIBS = lib`wx-config --basename`
-SUFFIX_WX_LIBSTD = `wx-config --utility=`
+-SUFFIX_WX_LIBGL = _gl-$(LIBVERSION).a
+MESALIBSPATH = ${LOCALBASE}/lib
+WXPATH = `${WX_CONFIG} --prefix`/lib
-+ifdef KICAD_STATIC_LINK
+PREFIX_WX_LIBS = lib`${WX_CONFIG} --basename`
- SUFFIX_WX_LIBGL = _gl-$(LIBVERSION).a
-+else
-+PREFIX_WX_LIBS = `${WX_CONFIG} --basename`
++SUFFIX_WX_LIBSTD = `${WX_CONFIG} --utility=`
+SUFFIX_WX_LIBGL = _gl-$(LIBVERSION)
-+endif
-+#SUFFIX_WX_LIBSTD = `${WX_CONFIG} --utility=`
# Use static link for libstdc++.a (sometimes also libsupc++.a)
# locate libstdc++.a and copy it in kicad_dev/syslibs
@@ -42,29 +55,31 @@
LIBSTDC = -lstdc++
endif
+
-LIBVERSION=`wx-config --release`
+-LIBREGEX=$(WXPATH)/libwxregexu-$(LIBVERSION).a
+LIBVERSION=`${WX_CONFIG} --release`
++LIBREGEX=
# use link static for wxWidgets
ifdef KICAD_STATIC_LINK
-@@ -38,11 +43,11 @@
+@@ -54,11 +54,11 @@
$(MESALIBSPATH)/libGL.a $(MESALIBSPATH)/libGLU.a
WXSYSLIB= $(WXPATH)/$(PREFIX_WX_LIBS)-$(LIBVERSION).a \
- $(WXPATH)/libwxpng-$(LIBVERSION).a\
- $(WXPATH)/libwxjpeg-$(LIBVERSION).a\
- $(WXPATH)/libwxzlib-$(LIBVERSION).a\
-- /usr/X11R6/lib/libXinerama.a \
-- /usr/X11R6/lib/libXxf86vm.a \
+ -lpng\
+ -ljpeg\
+ -lz\
+ $(LIBREGEX)\
+- /usr/X11R6/lib/libXinerama.a \
+ ${X11BASE}/lib/libXinerama.a \
-+ ${X11BASE}/lib/libXxf86vm.a \
-lgtk-x11-2.0 -lgdk-x11-2.0 \
-latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lgthread-2.0\
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl\
-@@ -51,12 +56,12 @@
+@@ -67,29 +67,29 @@
WXSYSLIB_WITH_GL= $(WXPATH)/$(PREFIX_WX_LIBS)-$(LIBVERSION).a \
@@ -82,25 +97,25 @@
-lgtk-x11-2.0 -lgdk-x11-2.0 \
-latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lgthread-2.0\
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl\
-@@ -64,16 +69,16 @@
- -L/usr/lib
+ -lglib-2.0 -lpangoft2-1.0 -lSM\
+- -L/usr/lib $(PYLIBS)
++ -L${LOCALBASE}/lib $(PYLIBS)
else
#or use "standard command" for wxWidgets
-WXSYSLIB= `wx-config --libs std`
-WXSYSLIB_WITH_GL= `wx-config --libs std,gl`
-+WXSYSLIB= `${WX_CONFIG} --libs`
++WXSYSLIB= `${WX_CONFIG} --libs std`
+WXSYSLIB_WITH_GL= `${WX_CONFIG} --libs std,gl`
endif
--# attention à l'ordre des libairies
+ # attention à l'ordre des libairies
-LIBS = -L/usr/local/lib -L/usr/X11R6/lib\
-+# attention à l'ordre des librairies
+LIBS = -L${LOCALBASE}/lib -L${X11BASE}/lib\
$(EXTRALIBS) $(WXSYSLIB)\
- $(LIBSTDC)
+ $(LIBSTDC) $(PYLIBS)
-LIBS_WITH_GL = -L/usr/local/lib -L/usr/X11R6/lib\
+LIBS_WITH_GL = -L${LOCALBASE}/lib -L${X11BASE}/lib\
$(EXTRALIBS) $(WXSYSLIB_WITH_GL)\
- $(LIBSTDC)
+ $(LIBSTDC) $(PYLIBS)