mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-24 09:08:53 +02:00
pdflib: We have to ship docs and sample-code due to licensing.
This commit is contained in:
@@ -11,30 +11,24 @@ software."
|
||||
HOMEPAGE="https://www.pdflib.com/"
|
||||
COPYRIGHT="PDFlib GmbH"
|
||||
LICENSE="PDFlib 5"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
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"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
# no devel package, due to licensing
|
||||
PROVIDES="
|
||||
pdflib = $portVersion
|
||||
cmd:pdflib_config = $portVersion
|
||||
lib:libpdf = $portVersion
|
||||
devel:libpdf = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
pdflib_devel = $portVersion
|
||||
cmd:pdflib_config = $portVersion
|
||||
devel:libpdf = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
pdflib == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
@@ -65,16 +59,19 @@ BUILD()
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir
|
||||
# libtool install rule is semi-busted
|
||||
mkdir -p $binDir
|
||||
make install || true
|
||||
|
||||
mkdir -p $libDir
|
||||
cp "./libs/pdflib/.libs/libpdf.so" $libDir/libpdf.so
|
||||
|
||||
# documentation & examples -- we must include these due to licensing
|
||||
mkdir -p $docDir/
|
||||
cp -R doc/* $docDir/
|
||||
mkdir -p $developDir/sample-code/
|
||||
cp -R bind/pdflib/ $developDir/sample-code/
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libpdf
|
||||
packageEntries devel \
|
||||
$binDir \
|
||||
$developDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user