aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-04 13:00:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-04 13:14:22 +0000
commit0a38b6da604a5f5cb48f92cdd8cd04e6ed67e8f7 (patch)
treeb4c33d5074e8d2e1e7cb9813d330ef60d43a9e14 /testing
parent8e048afa8c9d9ebbead2ee0a3d7b034bf682d675 (diff)
downloadaports-0a38b6da604a5f5cb48f92cdd8cd04e6ed67e8f7.tar.bz2
aports-0a38b6da604a5f5cb48f92cdd8cd04e6ed67e8f7.tar.xz
testing/qt5-qtbase: new aport
Qt5 - QtBase components http://qt-project.org/
Diffstat (limited to 'testing')
-rw-r--r--testing/qt5-qtbase/APKBUILD185
1 files changed, 185 insertions, 0 deletions
diff --git a/testing/qt5-qtbase/APKBUILD b/testing/qt5-qtbase/APKBUILD
new file mode 100644
index 0000000000..ac647de64e
--- /dev/null
+++ b/testing/qt5-qtbase/APKBUILD
@@ -0,0 +1,185 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtbase
+pkgver=5.1.1
+pkgrel=0
+pkgdesc="Qt5 - QtBase components"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev="mesa-dev libice-dev libsm-dev libx11-dev libxext-dev
+ libxrender-dev alsa-lib-dev openssl-dev fontconfig-dev freetype-dev
+ glib-dev libpng-dev zlib-dev sqlite-dev dbus-dev"
+makedepends="$depends_dev
+ bison
+ cups-dev
+ flex
+ freetds-dev
+ gawk
+ gperf
+ gtk+2.0-dev
+ hicolor-icon-theme
+ icu-dev
+ libjpeg-turbo-dev
+ libmng-dev
+ libxkbcommon-dev
+ libxi-dev
+ libxrandr-dev
+ libxrender-dev
+ libxslt-dev
+ libxv-dev
+ mysql-dev
+ paxctl
+ pcre-dev
+ perl
+ postgresql-dev
+ tiff-dev
+ udev-dev
+ unixodbc-dev
+ xcb-util-dev
+ xcb-util-image-dev
+ xcb-util-keysyms-dev
+ xcb-util-wm-dev
+ "
+install=""
+subpackages="$pkgname-dev $pkgname-doc
+ $pkgname-sqlite $pkgname-odbc $pkgname-postgresql $pkgname-mysql
+ $pkgname-tds $pkgname-x11"
+source="http://download.qt-project.org/official_releases/qt/${pkgver%.*}/$pkgver/submodules/qtbase-opensource-src-$pkgver.tar.xz
+ "
+_builddir="$srcdir"/qtbase-opensource-src-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch)
+ msg "Applying $i"
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
+ sed -i -e "s|-O2|$CXXFLAGS|" \
+ -e "/^QMAKE_RPATH/s| -Wl,-rpath,||g" \
+ -e "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" \
+ mkspecs/common/*.conf || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure -confirm-license -opensource \
+ -archdatadir /usr/lib/qt5 \
+ -datadir /usr/share/qt5 \
+ -dbus-linked \
+ -docdir /usr/share/doc/qt5 \
+ -examplesdir /usr/share/doc/qt5/examples \
+ -glib \
+ -gtkstyle \
+ -icu \
+ -importdir /usr/lib/qt5/imports \
+ -largefile \
+ -no-openvg \
+ -no-rpath \
+ -no-separate-debug-info \
+ -no-javascript-jit \
+ -nomake examples \
+ -opengl \
+ -openssl-linked \
+ -optimized-qmake \
+ -plugin-sql-mysql \
+ -plugin-sql-odbc \
+ -plugin-sql-psql \
+ -plugin-sql-sqlite \
+ -plugin-sql-tds \
+ -plugindir /usr/lib/qt5/plugins \
+ -prefix /usr \
+ -reduce-relocations \
+ -silent \
+ -sysconfdir /etc \
+ -system-libjpeg \
+ -system-libpng \
+ -system-pcre \
+ -system-sqlite \
+ -system-xcb \
+ -system-zlib \
+ -translationdir /usr/share/qt5/translations \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_ROOT="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+_mv_files() {
+ local i
+ for i; do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
+ done
+}
+
+dev() {
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/mkspecs \
+ usr/lib/cmake \
+ usr/bin \
+ $(find usr/ -name '*.prl') \
+ || return 1
+ default_dev
+}
+
+sqlite() {
+ pkgdesc="SQLite driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlite*
+}
+
+odbc() {
+ pkgdesc="ODBC driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlodbc*
+}
+
+postgresql() {
+ pkgdesc="PostgreSQL driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlpsql*
+}
+
+mysql() {
+ pkgdesc="MySQL driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlmysql*
+}
+
+tds() {
+ pkgdesc="TDS driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqltds*
+}
+
+x11() {
+ pkgdesc="Qt5 GUI-related libraries"
+ depends="hicolor-icon-theme"
+ cd "$pkgdir"
+ _mv_files \
+ usr/lib/libQt5Gui.so.* \
+ usr/lib/libQt5Widgets.so.* \
+ usr/lib/libQt5OpenGL.so.* \
+ usr/lib/libQt5PrintSupport.so.* \
+ usr/lib/qt5/plugins/accessible \
+ usr/lib/qt5/plugins/generic \
+ usr/lib/qt5/plugins/image* \
+ usr/lib/qt5/plugins/platform* \
+ usr/lib/qt5/plugins/printsupport* \
+ || return 1
+
+ scanelf -Rn usr/ | egrep '(libX|libQt5Gui|libGL)' && return 1
+ return 0
+}
+
+md5sums="955d1e4da875f3872ef3208f21a757dd qtbase-opensource-src-5.1.1.tar.xz"
+sha256sums="d4620e0b1aff6d2b6f4d8066e6f8258e012a8b5507af7c03b661029a1ffa75c9 qtbase-opensource-src-5.1.1.tar.xz"
+sha512sums="db7e25a520584b10370d898747f2cfb84ebbce3a8b9027f373cac7ab713fe199da5465df2453d04107406101ad4eff8cd82871efab40377ff44d789a424667c3 qtbase-opensource-src-5.1.1.tar.xz"