fox-toolkit package

This commit is contained in:
archdvx
2015-10-29 15:35:39 +01:00
parent 18a1c50e19
commit 0d7d08ced5
4 changed files with 91 additions and 0 deletions

55
mingw-w64-fox/PKGBUILD Normal file
View File

@@ -0,0 +1,55 @@
# Maintainer: David Vachulka <david@konstrukce-cad.com>
_realname=fox
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.6.50
pkgrel=1
pkgdesc="C++ user interface toolkit (mingw-w64)"
arch=('any')
url="http://www.fox-toolkit.org"
license=('LGPLv2+ with exceptions')
groups=("${MINGW_PACKAGE_PREFIX}")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-libtiff"
"${MINGW_PACKAGE_PREFIX}-zlib"
"${MINGW_PACKAGE_PREFIX}-libpng"
"${MINGW_PACKAGE_PREFIX}-libjpeg-turbo")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
options=('strip')
source=("ftp://ftp.fox-toolkit.org/pub/${_realname}-${pkgver}.tar.gz"
fox-1-rdynamic.patch
fox-2-FXTrayIcon.patch
fox-3-chart.patch)
md5sums=('f68c2219318ecb0b838387ae85d3220d'
'd9a955540ec3a29bc3cef70f925a751c'
'f83fde69de68aac83416cee1cb723891'
'4a1e63a68911728a06abddcb21d4ff34')
prepare() {
cd "${srcdir}"/${_realname}-${pkgver}
patch -p0 -i ${srcdir}/fox-1-rdynamic.patch
patch -p0 -i ${srcdir}/fox-2-FXTrayIcon.patch
patch -p0 -i ${srcdir}/fox-3-chart.patch
}
build() {
[[ -d ${srcdir}/build-${CARCH} ]] && rm -rf ${srcdir}/build-${CARCH}
cp -rf ${_realname}-${pkgver} build-${CARCH}
cd build-${CARCH}
autoreconf -fvi
./configure \
--prefix=${MINGW_PREFIX} \
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST} \
--build=${MINGW_CHOST} \
--enable-release \
--disable-debug \
--with-xft=no \
--with-x=no
make VERBOSE=1
}
package() {
cd ${srcdir}/build-${CARCH}
make DESTDIR="${pkgdir}" install
}

View File

@@ -0,0 +1,13 @@
--- configure.ac.orig
+++ configure.ac
@@ -110,7 +110,7 @@
# Add copious amounts of debugging with gcc
if test "${GXX}" = "yes" ; then
- CXXFLAGS="${CXXFLAGS} -Wall -Wformat -Woverloaded-virtual -Wshadow"
+ CXXFLAGS="${CXXFLAGS} -Wall -Wformat -Woverloaded-virtual -Wshadow -DUNICODE"
- #LDFLAGS="-rdynamic ${LDFLAGS}"
+ LDFLAGS="-no-undefined ${LDFLAGS}"
fi
# Debugging turned on

View File

@@ -0,0 +1,12 @@
--- include/FXIcon.h.orig
+++ include/FXIcon.h
@@ -49,6 +49,7 @@
friend class FXDCWindow;
friend class FXDrawable;
friend class FXTopWindow;
+ friend class FXTrayIcon;
protected:
FXID shape; // Shape pixmap
FXID etch; // Etch pixmap

View File

@@ -0,0 +1,11 @@
--- chart/Makefile.am.orig
+++ chart/Makefile.am
@@ -8,7 +8,7 @@
lib_LTLIBRARIES = libCHART-1.6.la
-libCHART_1_6_la_LIBADD = $(X_LIBS) $(X_BASE_LIBS) $(X_EXTRA_LIBS)
+libCHART_1_6_la_LIBADD = $(X_LIBS) $(X_BASE_LIBS) $(X_EXTRA_LIBS) $(top_builddir)/src/libFOX-1.6.la
libCHART_1_6_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \