Files
haikuports/media-libs/pdflib/pdflib-5.0.3.recipe
2016-07-18 19:22:51 -04:00

75 lines
1.8 KiB
Bash

SUMMARY="A library for generating PDF files"
DESCRIPTION="PDFlib is a development tool for PDF-enabling your software, or \
generating PDF on your server. PDFlib saves you the intricate details of PDF \
generation by offering a simple-to-use API for programmatically creating PDF \
files from within your own server- or client-side software. PDFlib doesn't \
make use of third-party software for generating PDF, nor does it require any \
other tools.
This is the \"Lite\" version of PDFlib, which may only be used in open-source \
software."
HOMEPAGE="https://www.pdflib.com/"
COPYRIGHT="PDFlib GmbH"
LICENSE="PDFlib 5"
REVISION="1"
SOURCE_URI="http://download.polytechnic.edu.na/pub2/openpkg1/sources/DST/pdflib/PDFlib-Lite-5.0.3-Unix-src.tar.gz"
CHECKSUM_SHA256="4908d84c7836cd11677c48df8d9a0bdf0021a358853804621663458fc0c94077"
SOURCE_DIR="PDFlib-Lite-$portVersion-Unix-src"
#PATCHES="projectx-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
pdflib$secondaryArchSuffix = $portVersion
lib:libpdf$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
pdflib${secondaryArchSuffix}_devel = $portVersion
devel:libpdf$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
pdflib$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:libtool
cmd:libtoolize
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:make
cmd:gcc$secondaryArchSuffix
"
PATCH()
{
cp /system/data/libtool/libltdl/aclocal.m4 config/aclocal.m4
}
BUILD()
{
libtoolize -fci
aclocal
autoconf
runConfigure --omit-dirs "docDir dataRootDir" ./configure \
--enable-shared --with-libm=-lroot
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs \
libprojectx
packageEntries devel \
$developDir
}