Commit d6114a62 authored by abveritas's avatar abveritas
Browse files

gdal rebuild

parent bfad6561
......@@ -8,12 +8,12 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=gdal
pkgver=1.8.0
pkgrel=3
pkgrel=4
pkgdesc="A translator library for raster geospatial data formats"
arch=('i686' 'x86_64')
url="http://www.gdal.org/"
license=('custom')
depends=('curl' 'geos' 'giflib' 'hdf5' 'libgeotiff' 'libjpeg>=8' 'libpng' 'libtiff'
depends=('curl' 'geos' 'giflib' 'hdf5' 'libgeotiff' 'libjpeg' 'libpng' 'libtiff'
'netcdf' 'python2' 'python-numpy' 'sqlite3' 'mysql' 'libmysqlclient' 'postgresql-libs' 'cfitsio')
makedepends=('perl' 'swig')
options=('!libtool' '!makeflags')
......@@ -24,7 +24,8 @@ md5sums=('c762cdab0f7e51a677ba49278a8a263d'
build() {
export CFLAGS="$CFLAGS -fno-strict-aliasing"
export LDFLAGS="$LDFLAGS -Wl,--as-needed"
cd ${srcdir}/$pkgname-$pkgver
patch -Np0 -i ${srcdir}/gdal-1.5.1-python-install.patch
......@@ -35,7 +36,8 @@ build() {
done
./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 \
--with-geotiff --with-mysql --with-python --without-libtool --with-curl
--with-geotiff --with-mysql --with-python --without-libtool --with-curl \
--with-hdf5 --with-perl --with-geos --with-png
# workaround for bug #13646
sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
......@@ -43,11 +45,16 @@ build() {
install -d ${pkgdir}/usr/lib/python2.7/site-packages/
make
}
package () {
cd ${srcdir}/$pkgname-$pkgver
make DESTDIR=${pkgdir} install
# install license
# install license
install -D -m644 LICENSE.TXT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
#FS#15477 clean up junks
rm -f ${pkgdir}/usr/bin/gdal_sieve.dox
#FS15477 clean up junks
rm -f ${pkgdir}/usr/bin/*.dox
}
......@@ -19,13 +19,14 @@ options=('!libtool')
_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
source=("ftp://ftp.qt.nokia.com/qt/source/${_pkgfqn}.tar.gz"
'assistant.desktop' 'designer.desktop' 'linguist.desktop'
'qtconfig.desktop' 'appmenu.patch')
'qtconfig.desktop' 'appmenu.patch' 'qtbug-16292.patch')
md5sums=('49b96eefb1224cc529af6fe5608654fe'
'fc211414130ab2764132e7370f8e5caa'
'85179f5e0437514f8639957e1d8baf62'
'f11852b97583610f3dbb669ebc3e21bc'
'6b771c8a81dd90b45e8a79afa0e5bbfd'
'7ca519c824d67cfae0281ec50af24ad8')
'7ca519c824d67cfae0281ec50af24ad8'
'dc7ed8c2e8c68a175f7f05a34dccc937')
# source PKGBUILD && _create-kdeqt-patch
_create-kdeqt-patch() {
......@@ -64,8 +65,12 @@ build() {
patch -Np1 -i ${srcdir}/appmenu.patch || return 1
cp ${srcdir}/${_pkgfqn}/src/gui/widgets/qabstractmenubarimpl_p.h ${srcdir}/${_pkgfqn}/include/QtGui/private/
# FS#24601
export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
cd $srcdir/$_pkgfqn
sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
sed -i "/^QMAKE_RPATH/s| -Wl,-rpath,||g" mkspecs/common/g++.conf
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" mkspecs/common/g++.conf
......@@ -155,98 +160,15 @@ package_qt-private-headers(){
pkgdesc="Qt private headers for development"
depends=("qt=${pkgver}")
install -d ${pkgdir}/usr/include/phonon/private
cd ${srcdir}/$_pkgfqn/src/3rdparty/phonon/phonon/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/phonon/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/Qt3Support/private
cd ${srcdir}/$_pkgfqn/src/qt3support/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/Qt3Support/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtCore/private
cd ${srcdir}/$_pkgfqn/src/corelib/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtCore/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtDBus/private
cd ${srcdir}/$_pkgfqn/src/dbus/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtDBus/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtDeclarative/private
cd ${srcdir}/$_pkgfqn/src/declarative/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtDeclarative/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtDesigner/private
cd ${srcdir}/$_pkgfqn/tools/designer/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtDesigner/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtGui/private
cd ${srcdir}/$_pkgfqn/src/gui/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtGui/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtHelp/private
cd ${srcdir}/$_pkgfqn/tools/assistant/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtHelp/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/{QtCore,QtDeclarative,QtGui,QtScript}
install -d ${pkgdir}/usr/src/{corelib,declarative,gui,script}
install -d ${pkgdir}/usr/include/QtMultimedia/private
cd ${srcdir}/$_pkgfqn/src/multimedia/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtMultimedia/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtNetwork/private
cd ${srcdir}/$_pkgfqn/src/network/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtNetwork/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtOpenGL/private
cd ${srcdir}/$_pkgfqn/src/opengl/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtOpenGL/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtScript/private
cd ${srcdir}/$_pkgfqn/src/script/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtScript/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtScriptTools/private
cd ${srcdir}/$_pkgfqn/src/scripttools/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtScriptTools/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtSql/private
cd ${srcdir}/$_pkgfqn/src/sql/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtSql/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtSvg/private
cd ${srcdir}/$_pkgfqn/src/svg/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtSvg/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtTest/private
cd ${srcdir}/$_pkgfqn/src/testlib/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtTest/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtUiTools/private
cd ${srcdir}/$_pkgfqn/tools/designer/src/uitools
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtUiTools/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtWebKit/private
cd ${srcdir}/$_pkgfqn/src/3rdparty/webkit
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtWebKit/private/ \; &> /dev/null
install -d ${pkgdir}/usr/include/QtXmlPatterns/private
cd ${srcdir}/$_pkgfqn/src/xmlpatterns/
find . -name "*_p.h" -exec install -m644 {} \
${pkgdir}/usr/include/QtXmlPatterns/private/ \; &> /dev/null
for i in QtCore QtDeclarative QtGui QtScript; do
cp -r ${srcdir}/$_pkgfqn/include/${i}/private/ \
${pkgdir}/usr/include/${i}/
done
for i in corelib declarative gui script; do
cp -r ${srcdir}/$_pkgfqn/src/${i} ${pkgdir}/usr/src/
done
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment