mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
cab8bb4398
Changelog at <http://iut-tice.ujf-grenoble.fr/cao/news.txt>.
101 lines
2.9 KiB
Plaintext
101 lines
2.9 KiB
Plaintext
--- libs.FreeBSD.orig Mon Apr 24 20:33:28 2006
|
||
+++ libs.FreeBSD Mon Apr 24 20:39:35 2006
|
||
@@ -1,6 +1,6 @@
|
||
|
||
#Configuration for build kicad
|
||
-KICAD_BIN = /usr/local/kicad/FreeBSD
|
||
+KICAD_BIN = ${PREFIX}/kicad/FreeBSD
|
||
|
||
|
||
SRCSUFF = .cpp
|
||
@@ -14,11 +14,16 @@
|
||
# KICAD_STATIC_LINK = 1
|
||
|
||
# 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=`
|
||
+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_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
|
||
@@ -30,33 +35,33 @@
|
||
LIBSTDC = -lstdc++
|
||
endif
|
||
|
||
-LIBVERSION=`wx-config --release`
|
||
+LIBVERSION=`${WX_CONFIG} --release`
|
||
|
||
# use link static for wxWidgets
|
||
ifdef KICAD_STATIC_LINK
|
||
LIBS3D = $(WXPATH)/$(PREFIX_WX_LIBS)$(SUFFIX_WX_LIBGL)\
|
||
$(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\
|
||
+ ${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\
|
||
-lglib-2.0 -lpangoft2-1.0 \
|
||
-L/usr/lib
|
||
|
||
-
|
||
+
|
||
WXSYSLIB_WITH_GL= $(WXPATH)/$(PREFIX_WX_LIBS)-$(LIBVERSION).a \
|
||
- $(WXPATH)/libwxpng-$(LIBVERSION).a\
|
||
- $(WXPATH)/libwxjpeg-$(LIBVERSION).a\
|
||
- $(WXPATH)/libwxzlib-$(LIBVERSION).a\
|
||
+ -lpng\
|
||
+ -ljpeg\
|
||
+ -lz\
|
||
$(LIBS3D)\
|
||
- /usr/X11R6/lib/libXinerama.a \
|
||
- /usr/X11R6/lib/libXxf86vm.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\
|
||
@@ -64,16 +69,16 @@
|
||
-L/usr/lib
|
||
else
|
||
#or use "standard command" for wxWidgets
|
||
-WXSYSLIB= `wx-config --libs`
|
||
-WXSYSLIB_WITH_GL= `wx-config --libs std,gl`
|
||
+WXSYSLIB= `${WX_CONFIG} --libs`
|
||
+WXSYSLIB_WITH_GL= `${WX_CONFIG} --libs std,gl`
|
||
endif
|
||
|
||
|
||
-# attention <20> l'ordre des libairies
|
||
-LIBS = -L/usr/local/lib -L/usr/X11R6/lib\
|
||
+# attention <20> l'ordre des librairies
|
||
+LIBS = -L${LOCALBASE}/lib -L${X11BASE}/lib\
|
||
$(EXTRALIBS) $(WXSYSLIB)\
|
||
$(LIBSTDC)
|
||
|
||
-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)
|