mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
dmtx_utils: new recipe (GCI 2016) (#1021)
This commit is contained in:
61
media-gfx/dmtx-utils/dmtx_utils-0.7.4.recipe
Normal file
61
media-gfx/dmtx-utils/dmtx_utils-0.7.4.recipe
Normal file
@@ -0,0 +1,61 @@
|
||||
SUMMARY="A software for reading and writing Data Matrix barcodes"
|
||||
DESCRIPTION="This is open source software for reading and writing Data Matrix \
|
||||
barcodes on Linux, Unix, OS X, Windows, and mobile devices. At its core \
|
||||
libdmtx is a native shared library, allowing C/C++ programs to use \
|
||||
its capabilities without extra restrictions or overhead."
|
||||
HOMEPAGE="http://libdmtx.sourceforge.net/"
|
||||
COPYRIGHT="2009-2017 Mike Laughton and others"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/libdmtx/dmtx-utils-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="27104dba2a53979c30a0788f4c9ccbf5e30fbe382b9bb6942928f9f869f528b6"
|
||||
SOURCE_DIR="dmtx-utils-$portVersion"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
dmtx_utils = $portVersion
|
||||
cmd:dmtxquery = $portVersion
|
||||
cmd:dmtxread = $portVersion
|
||||
cmd:dmtxwrite = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libdmtx
|
||||
lib:libMagickCore_6.Q16
|
||||
lib:libMagickWand_6.Q16
|
||||
"
|
||||
if [ "$effectiveTargetArchitecture" != x86_gcc2 ];then
|
||||
REQUIRES="$REQUIRES
|
||||
lib:libgomp
|
||||
"
|
||||
fi
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libdmtx
|
||||
devel:libMagickCore_6.Q16
|
||||
devel:libMagickWand_6.Q16
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:pkg_config
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export CFLAGS="-D_BSD_SOURCE"
|
||||
runConfigure ./configure
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user