mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 17:50:06 +02:00
69 lines
1.8 KiB
Bash
69 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="1"
|
|
SOURCE_URI="http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz"
|
|
CHECKSUM_SHA256="6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845"
|
|
SOURCE_DIR="pkg-config-0.28"
|
|
PATCHES="pkgconfig-0.28.patch"
|
|
|
|
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()
|
|
{
|
|
# because we patched configure.ac...
|
|
cd pkg-config-0.28/glib
|
|
autoreconf -i -f
|
|
cd ..
|
|
# do the needful...
|
|
autoreconf -i -f
|
|
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
|
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
|
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
|
|
--docdir=$COMMON_DOCS/doc/pkg-config \
|
|
--mandir=$COMMON_DOCS/man \
|
|
--disable-host-tool \
|
|
--with-internal-glib
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd pkg-config-0.28
|
|
make install
|
|
}
|