qrencode: add recipe for version 3.3.0

This commit is contained in:
Jerome Duval
2014-04-18 15:41:27 +00:00
parent fec54e420f
commit cb74778518

View File

@@ -0,0 +1,76 @@
SUMMARY="QR Code encoding library"
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.
Libqrencode accepts a string or a list of data chunks then encodes in a QR Code \
symbol as a bitmap array. While other QR Code applications generate an image \
file, using libqrencode allows applications to render QR Code symbols from raw \
bitmap data directly. This library also contains a command-line utility outputs \
a QR Code symbol as a PNG image. It will help light-weight CGI programs.
"
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_SIZE="446084"
CHECKSUM_RMD160="785156bb8d165e0a8337ace7b2d92d9c3c2b0863"
CHECKSUM_SHA512="b53b9dc34c97ff86e4a0686cd1be4bd1cd3f77d13a65c562628089b8873c707060507f7bbdb320f6a3e224751604279a21689328e843e62039a908c37220ca6c"
REVISION="1"
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
cmd:sed
cmd:awk
"
BUILD()
{
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
"