mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
62 lines
1.3 KiB
Bash
62 lines
1.3 KiB
Bash
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="2"
|
|
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
|
|
}
|