libdxfrw, new recipe (#9101)

This commit is contained in:
Schrijvers Luc
2023-07-29 13:02:42 +00:00
committed by GitHub
parent 6147c8fa7c
commit 3bf0a31220

View File

@@ -0,0 +1,92 @@
SUMMARY="C++ library to read/write DXF and read DWG files"
DESCRIPTION="libdxfrw is a free C++ library to read and write DXF files in both formats, ascii \
and binary form.
Also can read DWG files from R14 to the last V2015.
libdxfrw was created by LibreCAD contributors in the process of making LibreCAD. As the original \
code at SourceForge was no longer supported by the orignal authors, this repo has become its \
successor."
HOMEPAGE="https://github.com/LibreCAD/libdxfrw
http://sourceforge.net/projects/libdxfrw"
COPYRIGHT="2016-2021 A. Stebich
2011-2015 José F. Soriano"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/LibreCAD/libdxfrw/archive/refs/tags/LC2.2.0.tar.gz"
CHECKSUM_SHA256="b56535f8c234bb119b94e11b2436651531869ba0171bb10166b007588e97d69f"
SOURCE_DIR="libdxfrw-LC$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="0.6.3"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libdxfrw$secondaryArchSuffix = $portVersion
cmd:dwg2dxf$commandSuffix = $portVersion
lib:libdxfrw$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libdxfrw${secondaryArchSuffix}_devel = $portVersion
devel:libdxfrw$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libdxfrw$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage libdxfrw$secondaryArchSuffix \
$libDir/libdxfrw.so.$libVersion \
$commandBinDir/dwg2dxf
BUILD()
{
./autogen.sh
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--disable-static
make $jobArgs
}
INSTALL()
{
make install
# remove libtool file
rm -f $libDir/libdxfrw.la
prepareInstalledDevelLib \
libdxfrw
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}