From ff54f1f738ef23950ee4deab322c14f146b0655d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 26 Dec 2010 10:39:42 +0000 Subject: testing/fotoxx: new aport Photo editing and collection management http://kornelix.squarespace.com/fotoxx --- testing/fotoxx/APKBUILD | 39 ++++++++++++++++++++++++ testing/fotoxx/no-execinfo.patch | 65 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 testing/fotoxx/APKBUILD create mode 100644 testing/fotoxx/no-execinfo.patch (limited to 'testing/fotoxx') diff --git a/testing/fotoxx/APKBUILD b/testing/fotoxx/APKBUILD new file mode 100644 index 0000000000..50b6545583 --- /dev/null +++ b/testing/fotoxx/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +pkgname=fotoxx +pkgver=10.11.2 +pkgrel=0 +pkgdesc="Photo editing and collection management" +url="http://kornelix.squarespace.com/fotoxx" +arch="all" +license="GPL-3" +depends="xdg-utils" +makedepends="gtk+-dev tiff-dev" +install= +subpackages="$pkgname-doc" +source="http://kornelix.squarespace.com/storage/downloads/fotoxx-$pkgver.tar.gz + no-execinfo.patch" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make PREFIX=/usr LDFLAGS="$LFDLAGS" CXXFLAGS="$CFLAGS" || return 1 +} + +package() { + cd "$_builddir" + make PREFIX=/usr DESTDIR="$pkgdir" install +} + +md5sums="644d7a6675272ce47785de61ba22890c fotoxx-10.11.2.tar.gz +2651f3e1a422f5dbfe2d09eb789af783 no-execinfo.patch" diff --git a/testing/fotoxx/no-execinfo.patch b/testing/fotoxx/no-execinfo.patch new file mode 100644 index 0000000000..2c8195c9e9 --- /dev/null +++ b/testing/fotoxx/no-execinfo.patch @@ -0,0 +1,65 @@ +diff --git a/zfuncs.cc b/zfuncs.cc +index 0427f99..686b75a 100644 +--- a/zfuncs.cc ++++ b/zfuncs.cc +@@ -45,12 +45,14 @@ void appcrash(cchar *pMess, ... ) + va_end(arglist); + + printf("appcrash: \n %s \n",message); +- ++#ifndef __UCLIBC__ + nstack = backtrace(stacklist,nstack); // good for g++ -rdynamic + stackents = backtrace_symbols(stacklist,nstack); + for (ii = 0; ii < nstack; ii++) + printf(" %s \n",stackents[ii]); +- ++#else ++ printf("backtrace not available\n"); ++#endif + abort(); // good for gdb backtrace + } + +@@ -105,11 +107,13 @@ void zappcrash(cchar *pMess, ... ) // v + + printf("zappcrash: \n %s \n",message); // stdout message v.3.7 + ++#ifndef __UCLIBC__ + nstack = backtrace(stacklist,nstack); // get traceback data + stackents = backtrace_symbols(stacklist,nstack); + + for (ii = 0; ii < nstack; ii++) // stdout backtrace + printf(" %s \n",stackents[ii]); ++#endif + + fid1 = fopen("zappcrash","w"); // text file for backtrace + +@@ -118,6 +122,7 @@ void zappcrash(cchar *pMess, ... ) // v + cc = readlink("/proc/self/exe",progexe,300); // get own program path + progexe[cc] = 0; + ++#ifndef __UCLIBC__ + for (ii = 0; ii < nstack; ii++) // output backtrace + { + pfunc = 0; +@@ -137,6 +142,7 @@ void zappcrash(cchar *pMess, ... ) // v + + fprintf(fid1," %s %s \n",stackents[ii],pfunc); // write to text file + } ++#endif + + fclose(fid1); + +diff --git a/zfuncs.h b/zfuncs.h +index 9ec9a6b..76b7b44 100644 +--- a/zfuncs.h ++++ b/zfuncs.h +@@ -34,7 +34,9 @@ + #include + #include + #include ++#ifndef __UCLIBC__ + #include ++#endif + #include + #include + -- cgit v1.2.3