mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-12 14:50:08 +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
2.1 KiB
Bash
74 lines
2.1 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="https://www.freedesktop.org/wiki/Software/pkg-config/"
|
|
COPYRIGHT="1994-1996, 1999-2002, 2004-2013 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://pkg-config.freedesktop.org/releases/pkg-config-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845"
|
|
SOURCE_DIR="pkg-config-$portVersion"
|
|
PATCHES="pkgconfig-$portVersion.patch"
|
|
|
|
ARCHITECTURES="all"
|
|
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$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:xargs
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
pcPathSubdir="/lib${secondaryArchSuffix/_//}/pkgconfig"
|
|
pcPath="`finddir B_USER_NONPACKAGED_DEVELOP_DIRECTORY`$pcPathSubdir"
|
|
pcPath="$pcPath:`finddir B_USER_DEVELOP_DIRECTORY`$pcPathSubdir"
|
|
pcPath="$pcPath:`finddir B_SYSTEM_NONPACKAGED_DEVELOP_DIRECTORY`$pcPathSubdir"
|
|
pcPath="$pcPath:`finddir B_SYSTEM_DEVELOP_DIRECTORY`$pcPathSubdir"
|
|
|
|
# because we patched configure.ac...
|
|
cd glib
|
|
autoreconf -i -f
|
|
cd ..
|
|
# do the needful...
|
|
autoreconf -i -f
|
|
automake --add-missing
|
|
export CFLAGS=-D_BSD_SOURCE
|
|
COMMON_DOCS=$docDir
|
|
runConfigure ./configure \
|
|
--disable-host-tool \
|
|
--with-internal-glib \
|
|
--with-pc-path="$pcPath"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|