documentviewer: Add patches for x86_64

* Enable x86_64
* Add checksums
* Add patch to build on x86_64 (int32 is *not* for pointers!)
* Remove object files before building
  (Yes, the source really included .o and .a files)
* Call jam with -q to fail early
This commit is contained in:
Jonathan Schleifer
2014-03-25 01:40:56 +01:00
parent 06202587fb
commit e131801b2f
2 changed files with 149 additions and 3 deletions

View File

@@ -6,9 +6,13 @@ LICENSE="MIT"
COPYRIGHT="2010-2012 Haiku, Inc"
HOMEPAGE="http://haiku.bplaced.net/"
SRC_URI="http://haiku.bplaced.net/DocumentViewer/sources/documentviewer-0.3.2.zip"
CHECKSUM_SIZE="300252"
CHECKSUM_MD5="1fddc4292ecb14f343eb18b0bf723b13"
CHECKSUM_RMD160="91389103af4c2448602580f321fa574bcd488948"
CHECKSUM_SHA512="359dcb532f423df4c6ad612ebce9e5752928d8f45f6e9eec77d1bdcc9d054456badc837380759ad91d073038a5e33972b682527ef70190830cdffaec0619b533"
REVISION="2"
ARCHITECTURES="x86"
PATCHES="documentviewer-0.3.2.patchset"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
@@ -45,15 +49,18 @@ BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
cmd:jam
cmd:find
cmd:g++$secondaryArchSuffix
cmd:jam
"
SOURCE_DIR="documentviewer-0.3.2"
BUILD()
{
jam
# Yes, the source package actually contains binaries...
find . \( -name '*.o' -or -name '*.a' \) -delete
jam -q
}
INSTALL()