mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-03 04:57:15 +08:00
hack against lib32-qt.
This commit is contained in:
parent
cd6b7ab225
commit
506b2fb65a
@ -5,27 +5,31 @@
|
||||
pkgname=lib32-sni-qt
|
||||
_pkgname=sni-qt
|
||||
pkgver=0.2.6
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc='Qt4 plugin which turns all QSystemTrayIcon into StatusNotifierItems (appindicators)'
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://launchpad.net/sni-qt'
|
||||
license=('LGPL3')
|
||||
depends=('lib32-libdbusmenu-qt' "${_pkgname}=${pkgver}")
|
||||
makedepends=('cmake')
|
||||
source=("http://launchpad.net/${_pkgname}/trunk/${pkgver}/+download/${_pkgname}-${pkgver}.tar.bz2")
|
||||
md5sums=('e84c66e776f7c22c961817387f618c81')
|
||||
source=("http://launchpad.net/${_pkgname}/trunk/${pkgver}/+download/${_pkgname}-${pkgver}.tar.bz2" "qconfig.h")
|
||||
md5sums=('e84c66e776f7c22c961817387f618c81'
|
||||
'8bffe79f81780c300a9a55264badb111')
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
|
||||
# Disable building tests
|
||||
sed -i '/tests/ d' ${_pkgname}-${pkgver}/CMakeLists.txt
|
||||
|
||||
mkdir -p ${_pkgname}-${pkgver}/src/QtCore
|
||||
cp ../${source[1]} ${_pkgname}-${pkgver}/src/QtCore
|
||||
}
|
||||
|
||||
build() {
|
||||
cd build
|
||||
export CC="gcc -m32"
|
||||
export CXX="g++ -m32"
|
||||
export CXX="g++ -m32 "
|
||||
cmake ../${_pkgname}-${pkgver} \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
|
160
lib32-sni-qt/qconfig.h
Normal file
160
lib32-sni-qt/qconfig.h
Normal file
@ -0,0 +1,160 @@
|
||||
/* Everything */
|
||||
|
||||
/* Qt Edition */
|
||||
#ifndef QT_EDITION
|
||||
# define QT_EDITION QT_EDITION_OPENSOURCE
|
||||
#endif
|
||||
|
||||
/* Machine byte-order */
|
||||
#define Q_BIG_ENDIAN 4321
|
||||
#define Q_LITTLE_ENDIAN 1234
|
||||
#define QT_BUILD_KEY "i386 linux g++-4 full-config"
|
||||
#define QT_BUILD_KEY_COMPAT "i686 Linux g++-4 full-config"
|
||||
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
#define Q_BYTE_ORDER Q_LITTLE_ENDIAN
|
||||
#else
|
||||
#define Q_BYTE_ORDER Q_LITTLE_ENDIAN
|
||||
#endif
|
||||
/* Machine Architecture */
|
||||
#ifndef QT_BOOTSTRAPPED
|
||||
# define QT_ARCH_I386
|
||||
#else
|
||||
# define QT_ARCH_I386
|
||||
#endif
|
||||
/* Compile time features */
|
||||
#define QT_LARGEFILE_SUPPORT 64
|
||||
#define QT_POINTER_SIZE 4
|
||||
|
||||
#ifndef QT_BOOTSTRAPPED
|
||||
|
||||
#if defined(QT_GRAPHICSSYSTEM_RASTER) && defined(QT_NO_GRAPHICSSYSTEM_RASTER)
|
||||
# undef QT_GRAPHICSSYSTEM_RASTER
|
||||
#elif !defined(QT_GRAPHICSSYSTEM_RASTER) && !defined(QT_NO_GRAPHICSSYSTEM_RASTER)
|
||||
# define QT_GRAPHICSSYSTEM_RASTER
|
||||
#endif
|
||||
|
||||
#if defined(QT_LINKED_OPENSSL) && defined(QT_NO_LINKED_OPENSSL)
|
||||
# undef QT_LINKED_OPENSSL
|
||||
#elif !defined(QT_LINKED_OPENSSL) && !defined(QT_NO_LINKED_OPENSSL)
|
||||
# define QT_LINKED_OPENSSL
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_EGL) && defined(QT_EGL)
|
||||
# undef QT_NO_EGL
|
||||
#elif !defined(QT_NO_EGL) && !defined(QT_EGL)
|
||||
# define QT_NO_EGL
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_GSTREAMER) && defined(QT_GSTREAMER)
|
||||
# undef QT_NO_GSTREAMER
|
||||
#elif !defined(QT_NO_GSTREAMER) && !defined(QT_GSTREAMER)
|
||||
# define QT_NO_GSTREAMER
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_ICD) && defined(QT_ICD)
|
||||
# undef QT_NO_ICD
|
||||
#elif !defined(QT_NO_ICD) && !defined(QT_ICD)
|
||||
# define QT_NO_ICD
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_IMAGEFORMAT_JPEG) && defined(QT_IMAGEFORMAT_JPEG)
|
||||
# undef QT_NO_IMAGEFORMAT_JPEG
|
||||
#elif !defined(QT_NO_IMAGEFORMAT_JPEG) && !defined(QT_IMAGEFORMAT_JPEG)
|
||||
# define QT_NO_IMAGEFORMAT_JPEG
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_IMAGEFORMAT_MNG) && defined(QT_IMAGEFORMAT_MNG)
|
||||
# undef QT_NO_IMAGEFORMAT_MNG
|
||||
#elif !defined(QT_NO_IMAGEFORMAT_MNG) && !defined(QT_IMAGEFORMAT_MNG)
|
||||
# define QT_NO_IMAGEFORMAT_MNG
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_IMAGEFORMAT_TIFF) && defined(QT_IMAGEFORMAT_TIFF)
|
||||
# undef QT_NO_IMAGEFORMAT_TIFF
|
||||
#elif !defined(QT_NO_IMAGEFORMAT_TIFF) && !defined(QT_IMAGEFORMAT_TIFF)
|
||||
# define QT_NO_IMAGEFORMAT_TIFF
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_NAS) && defined(QT_NAS)
|
||||
# undef QT_NO_NAS
|
||||
#elif !defined(QT_NO_NAS) && !defined(QT_NAS)
|
||||
# define QT_NO_NAS
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_OPENVG) && defined(QT_OPENVG)
|
||||
# undef QT_NO_OPENVG
|
||||
#elif !defined(QT_NO_OPENVG) && !defined(QT_OPENVG)
|
||||
# define QT_NO_OPENVG
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_PHONON) && defined(QT_PHONON)
|
||||
# undef QT_NO_PHONON
|
||||
#elif !defined(QT_NO_PHONON) && !defined(QT_PHONON)
|
||||
# define QT_NO_PHONON
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_PULSEAUDIO) && defined(QT_PULSEAUDIO)
|
||||
# undef QT_NO_PULSEAUDIO
|
||||
#elif !defined(QT_NO_PULSEAUDIO) && !defined(QT_PULSEAUDIO)
|
||||
# define QT_NO_PULSEAUDIO
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_S60) && defined(QT_S60)
|
||||
# undef QT_NO_S60
|
||||
#elif !defined(QT_NO_S60) && !defined(QT_S60)
|
||||
# define QT_NO_S60
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_STYLE_S60) && defined(QT_STYLE_S60)
|
||||
# undef QT_NO_STYLE_S60
|
||||
#elif !defined(QT_NO_STYLE_S60) && !defined(QT_STYLE_S60)
|
||||
# define QT_NO_STYLE_S60
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_SXE) && defined(QT_SXE)
|
||||
# undef QT_NO_SXE
|
||||
#elif !defined(QT_NO_SXE) && !defined(QT_SXE)
|
||||
# define QT_NO_SXE
|
||||
#endif
|
||||
|
||||
#if defined(QT_NO_ZLIB) && defined(QT_ZLIB)
|
||||
# undef QT_NO_ZLIB
|
||||
#elif !defined(QT_NO_ZLIB) && !defined(QT_ZLIB)
|
||||
# define QT_NO_ZLIB
|
||||
#endif
|
||||
|
||||
#if defined(QT_RUNTIME_XFIXES) && defined(QT_NO_RUNTIME_XFIXES)
|
||||
# undef QT_RUNTIME_XFIXES
|
||||
#elif !defined(QT_RUNTIME_XFIXES) && !defined(QT_NO_RUNTIME_XFIXES)
|
||||
# define QT_RUNTIME_XFIXES
|
||||
#endif
|
||||
|
||||
#if defined(QT_RUNTIME_XINERAMA) && defined(QT_NO_RUNTIME_XINERAMA)
|
||||
# undef QT_RUNTIME_XINERAMA
|
||||
#elif !defined(QT_RUNTIME_XINERAMA) && !defined(QT_NO_RUNTIME_XINERAMA)
|
||||
# define QT_RUNTIME_XINERAMA
|
||||
#endif
|
||||
|
||||
#if defined(QT_RUNTIME_XINPUT) && defined(QT_NO_RUNTIME_XINPUT)
|
||||
# undef QT_RUNTIME_XINPUT
|
||||
#elif !defined(QT_RUNTIME_XINPUT) && !defined(QT_NO_RUNTIME_XINPUT)
|
||||
# define QT_RUNTIME_XINPUT
|
||||
#endif
|
||||
|
||||
#if defined(QT_RUNTIME_XRANDR) && defined(QT_NO_RUNTIME_XRANDR)
|
||||
# undef QT_RUNTIME_XRANDR
|
||||
#elif !defined(QT_RUNTIME_XRANDR) && !defined(QT_NO_RUNTIME_XRANDR)
|
||||
# define QT_RUNTIME_XRANDR
|
||||
#endif
|
||||
|
||||
#if defined(QT_USE_MATH_H_FLOATS) && defined(QT_NO_USE_MATH_H_FLOATS)
|
||||
# undef QT_USE_MATH_H_FLOATS
|
||||
#elif !defined(QT_USE_MATH_H_FLOATS) && !defined(QT_NO_USE_MATH_H_FLOATS)
|
||||
# define QT_USE_MATH_H_FLOATS
|
||||
#endif
|
||||
|
||||
#endif // QT_BOOTSTRAPPED
|
||||
|
||||
#define QT_VISIBILITY_AVAILABLE
|
||||
|
Loading…
Reference in New Issue
Block a user