mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
podofo: bump version.
* at least one podofo header depends on ssl.h.
This commit is contained in:
129
app-text/podofo/podofo-0.9.5.recipe
Normal file
129
app-text/podofo/podofo-0.9.5.recipe
Normal file
@@ -0,0 +1,129 @@
|
||||
SUMMARY="A library to work with the PDF file format"
|
||||
DESCRIPTION="
|
||||
PoDoFo is a library to work with the PDF file format and includes also a few \
|
||||
tools. The name comes from the first two letters of PDF (Portable Document \
|
||||
Format.
|
||||
"
|
||||
HOMEPAGE="http://sourceforge.net/projects/podofo"
|
||||
COPYRIGHT="
|
||||
2005-2014 Dominik Seichter
|
||||
2008 Craig Ringer
|
||||
"
|
||||
LICENSE="
|
||||
GNU GPL v2
|
||||
GNU LGPL v2.1
|
||||
"
|
||||
SOURCE_URI="http://sourceforge.net/projects/podofo/files/podofo/$portVersion/podofo-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="854981cb897ebc14bac854ea0f25305372261a48a205363fe1c61659ba7b5304"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
PATCHES="podofo-$portVersion.patchset"
|
||||
|
||||
if [ $targetArchitecture != x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
podofo$secondaryArchSuffix = $portVersion
|
||||
lib:libpodofo$secondaryArchSuffix = $portVersion
|
||||
cmd:podofobox
|
||||
cmd:podofocolor
|
||||
cmd:podofocountpages
|
||||
cmd:podofocrop
|
||||
cmd:podofoencrypt
|
||||
cmd:podofogc
|
||||
cmd:podofoimg2pdf
|
||||
cmd:podofoimgextract
|
||||
cmd:podofoimpose
|
||||
cmd:podofoincrementalupdates
|
||||
cmd:podofomerge
|
||||
cmd:podofopages
|
||||
cmd:podofopdfinfo
|
||||
cmd:podofosign
|
||||
cmd:podofotxt2pdf
|
||||
cmd:podofotxtextract
|
||||
cmd:podofouncompress
|
||||
cmd:podofoxmp
|
||||
"
|
||||
PROVIDES_devel="
|
||||
podofo${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libpodofo$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libfontconfig$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
podofo$secondaryArchSuffix == $portVersion base
|
||||
devel:libssl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
headersDir=
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
headersDir=/$effectiveTargetArchitecture
|
||||
fi
|
||||
freetypeDir=$portPackageLinksDir/devel~libfreetype$secondaryArchSuffix/develop/headers$headersDir/freetype2
|
||||
sed -i -e s:/usr/include/freetype2:$freetypeDir: cmake/modules/FindFREETYPE.cmake
|
||||
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build; cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix \
|
||||
-DPODOFO_BUILD_SHARED=1 \
|
||||
..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mkdir -p $(dirname $includeDir) $manDir
|
||||
mv $prefix/include $includeDir
|
||||
mv $prefix/share/man/man1 $manDir
|
||||
rmdir $prefix/share/man $prefix/share
|
||||
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
mv $prefix/lib $prefix/lib2
|
||||
mkdir -p $libDir
|
||||
mv $prefix/lib2/* $libDir
|
||||
rmdir $prefix/lib2
|
||||
fi
|
||||
|
||||
prepareInstalledDevelLibs libpodofo
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user