Files
haikuports/dev-util/pkgconfig/pkgconfig-0.27.1.recipe
2013-11-11 00:20:52 -08:00

64 lines
1.6 KiB
Plaintext

SUMMARY="Helper tool for compiling applications and libraries"
DESCRIPTION="pkg-config is a helper tool used when compiling applications and libraries. It 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/"
LICENSE="GNU GPL v2"
COPYRIGHT="1998, 2001-2006 Red Hat Inc."
SRC_URI="http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.1.tar.gz"
CHECKSUM_MD5="5392b4e3372879c5bf856173b418d6a2"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="pkgconfig-0.27.1.patchset"
PROVIDES="
pkgconfig = $portVersion compat >= 0.27
cmd:pkg_config = $portVersion compat >= 0.27
"
REQUIRES="
haiku >= $haikuVersion
lib:libiconv
"
BUILD_REQUIRES="
devel:libiconv
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:autoreconf
cmd:gcc
cmd:ld
cmd:libtoolize
cmd:make
"
SOURCE_DIR="pkg-config-0.27.1"
BUILD()
{
cd glib
libtoolize --force --copy --install
autoreconf
cd ..
libtoolize --force --copy --install
aclocal
autoconf
automake --add-missing
pcPathSubdir="develop/lib/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
}