mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
libdmtx: added recipe (GCI 2016) (#993)
This commit is contained in:
70
media-libs/libdmtx/libdmtx-0.7.4.recipe
Normal file
70
media-libs/libdmtx/libdmtx-0.7.4.recipe
Normal file
@@ -0,0 +1,70 @@
|
||||
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="1"
|
||||
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
|
||||
}
|
||||
34
media-libs/libdmtx/licenses/libdmtx v1.0
Normal file
34
media-libs/libdmtx/licenses/libdmtx v1.0
Normal file
@@ -0,0 +1,34 @@
|
||||
Copyright 2005-2011 Mike Laughton and others. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
The views and conclusions contained in the software and documentation are those
|
||||
of the authors and should not be interpreted as representing official policies,
|
||||
either expressed or implied, of the libdmtx project.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
ALTERNATE TERMS
|
||||
|
||||
Redistributions in binary form, with or without modification, are permitted
|
||||
without including the above copyright notice, list of conditions, and disclaimer
|
||||
if express written permission has been obtained from Dragonfly Logic, Inc.
|
||||
Reference in New Issue
Block a user