mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 17:50:06 +02:00
71 lines
1.5 KiB
Bash
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
|
|
}
|