Files
haikuports/dev-util/pkgconfig/pkgconfig-0.27.1.recipe
Humdinger 4a6f4a8774 More recipe cosmetics.
Mainly inproved SUMMARY/DESCRIPTION and re-ordering of blocks.
2015-08-25 17:44:40 +02:00

72 lines
1.8 KiB
Bash

SUMMARY="Helper tool for compiling applications and libraries"
DESCRIPTION="pkg-config helps you insert the correct compiler options on the \
command line so an application can use 'gcc -o test test.cpkg-config --libs \
--cflags glib-2.0' for instance, rather than hard-coding values on where to \
find glib (or other libraries). It is language-agnostic, so it can be used \
for defining the location of documentation tools, for instance."
HOMEPAGE="http://pkg-config.freedesktop.org/wiki/"
COPYRIGHT="1998, 2001-2006 Red Hat Inc."
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.1.tar.gz"
CHECKSUM_SHA256="4f63d0df3035101b12949250da5231af49e3c3afcd8fb18554fa7c3cb92d8c17"
SOURCE_DIR="pkg-config-0.27.1"
PATCHES="pkgconfig-0.27.1.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
pkgconfig$secondaryArchSuffix = $portVersion compat >= 0.27
cmd:pkg_config$secondaryArchSuffix = $portVersion compat >= 0.27
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:autoreconf
cmd:awk
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:xargs
"
BUILD()
{
cd glib
libtoolize --force --copy --install
autoreconf
cd ..
libtoolize --force --copy --install
aclocal
autoconf
automake --add-missing
pcPathSubdir="develop/lib${secondaryArchSuffix/_//}/pkgconfig"
pcPath="/boot/home/config/non-packaged/$pcPathSubdir"
pcPath="$pcPath:/boot/home/config/$pcPathSubdir"
pcPath="$pcPath:/boot/system/$pcPathSubdir"
runConfigure ./configure \
--with-internal-glib \
--with-pc_path="$pcPath"
make $jobArgs
}
INSTALL()
{
make install
}