mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
74 lines
1.7 KiB
Bash
74 lines
1.7 KiB
Bash
SUMMARY="Library for handling paper characteristics"
|
|
DESCRIPTION="The libpaper paper-handling library automates recognition of many different \
|
|
paper types and sizes for programs that need to deal with printed output."
|
|
HOMEPAGE="http://packages.debian.org/unstable/source/libpaper"
|
|
COPYRIGHT="1996 Yves Arrouye
|
|
2000 Adrian Bunk"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
#SOURCE_URI="http://httpredir.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.24.tar.gz"
|
|
SOURCE_URI="https://www.mirrorservice.org/sites/distfiles.macports.org/libpaper/libpaper_1.1.24.tar.gz"
|
|
CHECKSUM_SHA256="38ac28114673d4b175a939d981e0477a0ed9bcaab27033522ecb2ca78ee90c7e"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libpaper$secondaryArchSuffix = $portVersion
|
|
lib:libpaper$secondaryArchSuffix = 1.1.24 compat >= 1
|
|
cmd:paper_config$secondaryArchSuffix
|
|
cmd:paperconf$secondaryArchSuffix
|
|
cmd:paperconfig$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libpaper${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libpaper$secondaryArchSuffix = 1.1.24 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libpaper$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtool
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac
|
|
echo "AM_PROG_CC_C_O" >> configure.ac
|
|
libtoolize --force --copy --install
|
|
aclocal --install -I m4
|
|
autoconf
|
|
touch NEWS
|
|
touch AUTHORS
|
|
automake --add-missing
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
prepareInstalledDevelLibs \
|
|
libpaper
|
|
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|