From 4c9f49cc71b0519e945996ec90d5434801add555 Mon Sep 17 00:00:00 2001 From: Tudor Nazarie Date: Sat, 7 Jan 2017 00:51:45 +0200 Subject: [PATCH] libdmtx: added recipe (GCI 2016) (#993) --- media-libs/libdmtx/libdmtx-0.7.4.recipe | 70 ++++++++++++++++++++++++ media-libs/libdmtx/licenses/libdmtx v1.0 | 34 ++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 media-libs/libdmtx/libdmtx-0.7.4.recipe create mode 100644 media-libs/libdmtx/licenses/libdmtx v1.0 diff --git a/media-libs/libdmtx/libdmtx-0.7.4.recipe b/media-libs/libdmtx/libdmtx-0.7.4.recipe new file mode 100644 index 000000000..4d9edeb2a --- /dev/null +++ b/media-libs/libdmtx/libdmtx-0.7.4.recipe @@ -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 +} diff --git a/media-libs/libdmtx/licenses/libdmtx v1.0 b/media-libs/libdmtx/licenses/libdmtx v1.0 new file mode 100644 index 000000000..90800e31e --- /dev/null +++ b/media-libs/libdmtx/licenses/libdmtx v1.0 @@ -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.