qrencode: add KDL specific version.

This is needed for https://dev.haiku-os.org/ticket/11351 .
This commit is contained in:
Adrien Destugues
2014-10-19 09:53:52 +02:00
parent 106c159976
commit d9a2fb1332

View File

@@ -0,0 +1,74 @@
SUMMARY="QR Code encoding library - KDL support"
DESCRIPTION="
QLibqrencode is a library for encoding data in a QR Code symbol, a kind of 2D \
symbology that can be scanned by handy terminals such as a mobile phone with \
CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and has \
high robustness.
This version of qrencode is build specifically for use in Haiku's Kernel \
Debugger. It can be used as a way to export kernel messages when you don't \
have a serial port on the debugged machine.
"
HOMEPAGE="http://fukuchi.org/works/qrencode/"
COPYRIGHT="
Copyright (C) 2006-2012 Kentaro Fukuchi
"
LICENSE="GNU LGPL v2.1"
SRC_URI="http://fukuchi.org/works/qrencode/qrencode-$portVersion.tar.gz"
CHECKSUM_SHA256="499b2c86c218b16378e2496fefc858e4db4271c048336a29df9cc5754413d1d1"
SOURCE_DIR="qrencode-$portVersion"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
qrencode$secondaryArchSuffix = $portVersion
lib:libqrencode$secondaryArchSuffix = 3.3.0 compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libpng$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libpng$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:sed
cmd:awk
"
BUILD()
{
export CFLAGS="-Dmalloc=debug_malloc -Dcalloc=debug_calloc -Dfree=debug_free"
runConfigure ./configure --without-tools \
--enable-static
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libqrencode
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
qrencode${secondaryArchSuffix}_devel = $portVersion compat >= 3
devel:libqrencode$secondaryArchSuffix = 3.3.0 compat >= 3
"
REQUIRES_devel="
qrencode$secondaryArchSuffix == $portVersion
"