mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
dmtx-utils, bump version (#4799)
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
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="3"
|
||||
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
|
||||
}
|
||||
72
media-gfx/dmtx-utils/dmtx_utils-0.7.6.recipe
Normal file
72
media-gfx/dmtx-utils/dmtx_utils-0.7.6.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
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/
|
||||
https://github.com/dmtx/dmtx-utils"
|
||||
COPYRIGHT="2009-2018 Mike Laughton, Vadim Misbakh-Soloviov and others"
|
||||
LICENSE="GNU GPL v2
|
||||
GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/dmtx/dmtx-utils/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0d396ec14f32a8cf9e08369a4122a16aa2e5fa1675e02218f16f1ab777ea2a28"
|
||||
SOURCE_FILENAME="dmtx-utils-v$portVersion.tar.gz"
|
||||
SOURCE_DIR="dmtx-utils-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
||||
commandBinDir=$binDir
|
||||
else
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
dmtx_utils$secondaryArchSuffix = $portVersion
|
||||
cmd:dmtxquery = $portVersion
|
||||
cmd:dmtxread = $portVersion
|
||||
cmd:dmtxwrite = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libdmtx$secondaryArchSuffix
|
||||
lib:libMagickCore_6.Q16$secondaryArchSuffix
|
||||
lib:libMagickWand_6.Q16$secondaryArchSuffix
|
||||
lib:libgomp$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libdmtx$secondaryArchSuffix
|
||||
devel:libMagickCore_6.Q16$secondaryArchSuffix
|
||||
devel:libMagickWand_6.Q16$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export CFLAGS="-D_BSD_SOURCE"
|
||||
autoreconf -vfi
|
||||
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user