mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
104 lines
2.5 KiB
Bash
104 lines
2.5 KiB
Bash
SUMMARY="A program to turn bitmaps into vectors"
|
|
DESCRIPTION="AutoTrace is a program that can convert bitmaps into \
|
|
close vectors. It tries to replicate the image as close as possible while \
|
|
still being usable to edit manually. It is made to compete with other \
|
|
commercial products that do the same."
|
|
HOMEPAGE="http://autotrace.sourceforge.net"
|
|
COPYRIGHT="2000-2020 AutoTrace contributors"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/autotrace/autotrace/archive/refs/tags/travis-20200219.65.tar.gz"
|
|
CHECKSUM_SHA256="74ca2555aff1a968290f13602a90f836872e08d37ecaf80c5296ad223f6cd69a"
|
|
SOURCE_DIR="autotrace-travis-20200219.65"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="3.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
autotrace$secondaryArchSuffix = $portVersion
|
|
cmd:autotrace$commandSuffix = $portVersion
|
|
cmd:autotrace_config$commandSuffix = $portVersion
|
|
lib:libautotrace$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libMagick++_6.Q16$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
autotrace${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libautotrace$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
autotrace$secondaryArchSuffix == $portVersion base
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libMagick++_6.Q16$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autopoint
|
|
cmd:autoreconf
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:intltoolize
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage autotrace$secondaryArchSuffix \
|
|
$libDir/libautotrace.so.$libVersion \
|
|
$commandBinDir/autotrace
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--without-pstoedit \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f $libDir/*.la
|
|
|
|
prepareInstalledDevelLib libautotrace
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|