Description: configurations to build goldencheetah
Origin:      vendor
Author:      KURASHIKI Satoru <lurdan@gmail.com>

Index: goldencheetah/qwt/qwtconfig.pri
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ goldencheetah/qwt/qwtconfig.pri	2011-11-10 08:54:32.572602441 +0900
@@ -0,0 +1,126 @@
+######################################################################
+# Install paths
+######################################################################
+
+VER_MAJ      = 5
+VER_MIN      = 2
+VER_PAT      = 1
+VERSION      = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT}
+
+
+
+unix {
+    INSTALLBASE    = /usr/local/qwt-$$VERSION-svn
+}
+
+win32 {
+    INSTALLBASE    = C:/Qwt-$$VERSION-svn
+}
+
+target.path    = /usr/lib/goldencheetah/qwt
+headers.path   = /usr/include/goldencheetah/qwt
+doc.path       = /usr/share/doc/goldencheetah/qwt
+
+######################################################################
+# qmake internal options
+######################################################################
+
+CONFIG           += qt     # Also for Qtopia Core!
+CONFIG           += warn_on
+CONFIG           += thread
+
+######################################################################
+# release/debug mode
+# If you want to build both DEBUG_SUFFIX and RELEASE_SUFFIX
+# have to differ to avoid, that they overwrite each other.
+######################################################################
+
+VVERSION = $$[QT_VERSION]
+isEmpty(VVERSION) {
+
+    # Qt 3
+    CONFIG           += debug     # release/debug
+}
+else {
+    # Qt 4
+    win32 {
+        # On Windows you can't mix release and debug libraries.
+        # The designer is built in release mode. If you like to use it
+        # you need a release version. For your own application development you
+        # might need a debug version. 
+        # Enable debug_and_release + build_all if you want to build both.
+
+        CONFIG           += debug     # release/debug/debug_and_release
+        #CONFIG           += debug_and_release
+        #CONFIG           += build_all
+    }
+    else {
+        CONFIG           += debug     # release/debug
+    }
+}
+
+######################################################################
+# If you want to have different names for the debug and release 
+# versions you can add a suffix rule below.
+######################################################################
+
+DEBUG_SUFFIX        = 
+RELEASE_SUFFIX      = 
+
+win32 {
+    DEBUG_SUFFIX      = d
+}
+
+######################################################################
+# Build the static/shared libraries.
+# If QwtDll is enabled, a shared library is built, otherwise
+# it will be a static library.
+######################################################################
+
+#CONFIG           += QwtDll
+
+######################################################################
+# QwtPlot enables all classes, that are needed to use the QwtPlot 
+# widget. 
+######################################################################
+
+CONFIG       += QwtPlot
+
+######################################################################
+# QwtWidgets enables all classes, that are needed to use the all other
+# widgets (sliders, dials, ...), beside QwtPlot. 
+######################################################################
+
+CONFIG     += QwtWidgets
+
+######################################################################
+# If you want to display svg imageson the plot canvas, enable the 
+# line below. Note that Qwt needs the svg+xml, when enabling 
+# QwtSVGItem.
+######################################################################
+
+#CONFIG     += QwtSVGItem
+
+######################################################################
+# If you have a commercial license you can use the MathML renderer
+# of the Qt solutions package to enable MathML support in Qwt.
+# So if you want this, copy qtmmlwidget.h + qtmmlwidget.cpp to
+# textengines/mathml and enable the line below.
+######################################################################
+
+#CONFIG     += QwtMathML
+
+######################################################################
+# If you want to build the Qwt designer plugin, 
+# enable the line below.
+# Otherwise you have to build it from the designer directory.
+######################################################################
+
+CONFIG     += QwtDesigner
+
+######################################################################
+# If you want to auto build the examples, enable the line below
+# Otherwise you have to build them from the examples directory.
+######################################################################
+
+#CONFIG     += QwtExamples
Index: goldencheetah/src/gcconfig.pri
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ goldencheetah/src/gcconfig.pri	2011-11-10 08:55:59.481033406 +0900
@@ -0,0 +1,64 @@
+# To build, copy this file to gcconfig.pri and then fill in the paths to your
+# local installs of Boost and srmio in the copy.  If you don't want
+# support for SRM downloads, just comment out the SRMIO_INSTALL line.
+
+#BOOST_INSTALL = /usr/local/boost
+#SRMIO_INSTALL = /usr/local/srmio
+#D2XX_INCLUDE = /usr/local/include/D2XX
+
+# If you want Twitter support you must install liboauth
+# http://liboauth.sourceforge.net/
+# Set the path to where liboauth.a was installed
+# By default it will have been installed like this:
+#
+LIBOAUTH_INSTALL = -loauth
+LIBCRYPTO_INSTALL = -lgcrypt
+LIBCURL_INSTALL=-lcurl -lnss3
+LIBZ_INSTALL=-lz
+
+# If you want 3D plotting, you need to install qwtplot3d
+#
+#  http://qwtplot3d.sourceforge.net/
+#
+#  If you are running Linux and have font problems, download
+#  the Tar ball from http://qwtplot3d.svn.sourceforge.net/viewvc/qwtplot3d/
+#  Follow Branches -> Maintain_0_2_x -> qwtplot3d
+#
+## then set the following variable appropriately:
+
+#QWT3D_INSTALL = /usr/local/qwtplot3d
+
+# If you want support for Google Earth .kml files then you need
+# to install the Google libkml library
+#
+# http://code.google.com/p/libkml/
+# or on Linux sudo apt-get install libkml-dev
+#
+# then set the following variable appropriately
+# to the root of the libs/includ path
+
+#KML_INSTALL = /usr
+
+
+# We recommend a debug build for development, and a static build for releases.
+#CONFIG += debug
+CONFIG += static
+
+# Edit these paths only if you have a Boost/srmio install that uses
+# a non-standard directory layout.
+
+#BOOST_INCLUDE = $${BOOST_INSTALL}/include
+
+!isEmpty( SRMIO_INSTALL ) {
+    SRMIO_INCLUDE = $${SRMIO_INSTALL}/include
+    SRMIO_LIB = $${SRMIO_INSTALL}/lib/libsrmio.a
+}
+
+macx {
+    # Uncomment this line to build with OS X Tiger support on a Leopard system:
+    #QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
+
+    # Uncomment this line to build a OS X universal binary:
+    #CONFIG+=x86 ppc
+}
+
Index: goldencheetah/src/src.pro
===================================================================
--- goldencheetah.orig/src/src.pro	2011-11-10 08:54:18.696533632 +0900
+++ goldencheetah/src/src.pro	2011-11-10 08:55:19.608835666 +0900
@@ -12,8 +12,7 @@
 LIBS += -lm
 
 !isEmpty( LIBOAUTH_INSTALL ) {
-INCLUDEPATH += $${LIBOAUTH_INSTALL}/include
-LIBS +=  $${LIBOAUTH_INSTALL}/lib/liboauth.a
+LIBS +=  $${LIBOAUTH_INSTALL}
 LIBS += $${LIBCRYPTO_INSTALL}
 LIBS += $${LIBZ_INSTALL}
 LIBS += $${LIBCURL_INSTALL}
