Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=5d3ccad38fdfe161ac0fe6f7abf967e7a68cc7ac
commit 5d3ccad38fdfe161ac0fe6f7abf967e7a68cc7ac Author: crazy <[email protected]> Date: Wed Oct 7 19:05:45 2015 +0200 chmlib-0.40-3-x86_64 * move away from lib only kdestuff in -extra need it diff --git a/source/lib-extra/chmlib/FrugalBuild b/source/lib-extra/chmlib/FrugalBuild new file mode 100644 index 0000000..cc84fa0 --- /dev/null +++ b/source/lib-extra/chmlib/FrugalBuild @@ -0,0 +1,28 @@ +# Compiling Time: 0.07 SBU +# Maintainer: Miklos Vajna <[email protected]> + +pkgname=chmlib +pkgver=0.40 +pkgrel=3 +pkgdesc="A library for dealing with Microsoft ITSS/CHM format files." +url="http://www.jedrea.com/chmlib/" +depends=() +groups=('lib-extra') +archs=('i686' 'x86_64' 'arm') +up2date="lynx -dump $url | grep -m1 Download | sed 's/.*n \(.*\):.*/\1/'" +source=($url/$pkgname-$pkgver.tar.bz2 header.diff stdtype.diff) + +build() +{ + Fpatchall + Fmkdir /usr/{include,lib} + Fmake --enable-examples + Fmakeinstall +} + +sha1sums=('5231d7531e8808420d7f89fd1e4fdbac1ed7a167' \ + 'ec9e8e89207953e5d4c4bbd29d6d708a498b8bcb' \ + '54508b94a1550c82f30c1dfd714343f50f5993fa') + +# optimization OK + diff --git a/source/lib-extra/chmlib/header.diff b/source/lib-extra/chmlib/header.diff new file mode 100644 index 0000000..55c2446 --- /dev/null +++ b/source/lib-extra/chmlib/header.diff @@ -0,0 +1,19 @@ +--- src/chm_http.c ++++ src/chm_http.c +@@ -34,6 +34,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + #if __sun || __sgi + #include <strings.h> + #endif +@@ -42,6 +43,7 @@ + #include <sys/socket.h> + #include <sys/types.h> + #include <netinet/in.h> ++#include <arpa/inet.h> + + /* threading includes */ + #include <pthread.h> + diff --git a/source/lib-extra/chmlib/stdtype.diff b/source/lib-extra/chmlib/stdtype.diff new file mode 100644 index 0000000..8eb7b17 --- /dev/null +++ b/source/lib-extra/chmlib/stdtype.diff @@ -0,0 +1,21 @@ +--- src/chm_lib.c ++++ src/chm_lib.c +@@ -149,6 +149,17 @@ typedef unsigned __int32 UInt32; + typedef __int64 Int64; + typedef unsigned __int64 UInt64; + ++/* Linux: use C standard types */ ++#elif defined(__linux__) ++#include <stdint.h> ++typedef unsigned char UChar; ++typedef int16_t Int16; ++typedef uint16_t UInt16; ++typedef int32_t Int32; ++typedef uint32_t UInt32; ++typedef int64_t Int64; ++typedef uint64_t UInt64; ++ + /* I386, 32-bit, non-Windows */ + /* Sparc */ + /* MIPS */ + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
