mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
104 lines
2.6 KiB
Bash
104 lines
2.6 KiB
Bash
SUMMARY="Utility for tracing a bitmap"
|
|
DESCRIPTION="Potrace is a tool for tracing a bitmap, which means, transforming a \
|
|
bitmap into a smooth, scalable image. The input is a bitmap (PBM, \
|
|
PGM, PPM, or BMP), and the default output is one of several vector \
|
|
file formats. A typical use is to create EPS files from scanned \
|
|
data, such as company or university logos, handwritten notes, etc. \
|
|
The resulting image is not \"jaggy\" like a bitmap, but smooth. It can \
|
|
then be rendered at any resolution.
|
|
|
|
Potrace can currently produce the following output formats: EPS, \
|
|
PostScript, PDF, SVG (scalable vector graphics), DXF, GeoJSON, PGM \
|
|
(for easy antialiasing of pixel-based images), Gimppath, and \
|
|
XFig. Additional backends might be added in the future.
|
|
|
|
A separate program, mkbitmap, is also provided. This program can act \
|
|
as a pre-processor for Potrace, applying scaling and various filters \
|
|
to an image before converting it to a bitmap. This is useful for \
|
|
potracing greyscale and color images."
|
|
HOMEPAGE="http://potrace.sourceforge.net/"
|
|
COPYRIGHT="2001-2015 Peter Selinger"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="http://potrace.sourceforge.net/download/$portVersion/potrace-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="be8248a17dedd6ccbaab2fcc45835bb0502d062e40fbded3bc56028ce5eb7acc"
|
|
PATCHES="potrace-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libVersion="0.0.6"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
potrace$secondaryArchSuffix = $portVersion
|
|
lib:libpotrace$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
PROVIDES="$PROVIDES
|
|
cmd:mkbitmap$secondaryArchSuffix
|
|
cmd:potrace$secondaryArchSuffix
|
|
"
|
|
fi
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
potrace${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libpotrace$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
haiku$secondaryArchSuffix
|
|
potrace$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -f -i
|
|
runConfigure ./configure \
|
|
--with-libpotrace \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libpotrace.la
|
|
|
|
prepareInstalledDevelLib libpotrace
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $binDir
|
|
rm -rf $documentationDir
|
|
fi
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|