mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
pdflib: Fix recipe.
This commit is contained in:
@@ -15,24 +15,24 @@ 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
|
||||
pdflib = $portVersion
|
||||
lib:libpdf = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
haiku
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
pdflib${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libpdf$secondaryArchSuffix = $portVersion
|
||||
pdflib_devel = $portVersion
|
||||
cmd:pdflib_config = $portVersion
|
||||
devel:libpdf = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
pdflib$secondaryArchSuffix == $portVersion base
|
||||
pdflib == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
@@ -41,34 +41,40 @@ BUILD_REQUIRES="
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:libtool
|
||||
cmd:libtoolize
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
cp /system/data/libtool/libltdl/aclocal.m4 config/aclocal.m4
|
||||
if [ "$effectiveTargetArchitecture" == x86_gcc2 ]; then
|
||||
sed -i "s/-lstdc++/-lstdc++.r4/g" configure
|
||||
fi
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize -fci
|
||||
aclocal
|
||||
autoconf
|
||||
/bin/libtoolize -fci
|
||||
cp /bin/libtool config/ltmain.sh
|
||||
runConfigure --omit-dirs "docDir dataRootDir" ./configure \
|
||||
--enable-shared --with-libm=-lroot
|
||||
--enable-shared --with-libm=-lroot --with-pic --without-PSP \
|
||||
--without-perl --disable-debug
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
mkdir -p $binDir
|
||||
# libtool install rule is semi-busted
|
||||
make install || true
|
||||
|
||||
mkdir -p $libDir
|
||||
cp "./libs/pdflib/.libs/libpdf.so" $libDir/libpdf.so
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libprojectx
|
||||
libpdf
|
||||
packageEntries devel \
|
||||
$binDir \
|
||||
$developDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user