Files
haikuports/media-libs/libdmtx/libdmtx-0.7.4.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

71 lines
1.5 KiB
Bash

SUMMARY="Library to read and write Data Matrix barcodes"
DESCRIPTION="libdmtx is a software library that enables programs to read and \
write Data Matrix (or DataMatrix) 2D barcodes. It runs on several platforms, \
and can be accessed by multiple languages."
HOMEPAGE="http://libmtx.sourceforge.net/"
COPYRIGHT="2005-2011 Mike Laughton"
LICENSE="libdmtx v1.0"
REVISION="2"
SOURCE_URI="https://downloads.sourceforge.net/libdmtx/libdmtx-$portVersion.tar.gz"
CHECKSUM_SHA256="686bcfb44e50b96345aa53f41e285f2118a2cf87a333b69b74165a2e7ddca492"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libdmtx$secondaryArchSuffix = $portVersion
lib:libdmtx$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libdmtx${secondaryArchSuffix}_devel = $portVersion
devel:libdmtx$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
libdmtx$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libdmtx.la
prepareInstalledDevelLib libdmtx
fixPkgconfig
if [ -z "$secondaryArchSuffix" ]; then
maybe_manDir_man3=$manDir/man3
else
maybe_manDir_man3=
rm -rf $manDir/man3
fi
packageEntries devel \
$developDir \
$maybe_manDir_man3
rmdir $manDir
}
TEST()
{
make check
}