pkgconfig-0.29.2.recipe revision 650ea9b9
1SUMMARY="Helper tool for compiling applications and libraries"
2DESCRIPTION="pkg-config helps you insert the correct compiler options on the \
3command line so an application can use 'gcc -o test test.cpkg-config --libs \
4--cflags glib-2.0' for instance, rather than hard-coding values on where to \
5find glib (or other libraries). It is language-agnostic, so it can be used \
6for defining the location of documentation tools, for instance."
7HOMEPAGE="https://www.freedesktop.org/wiki/Software/pkg-config/"
8COPYRIGHT="1994-1996, 1999-2002, 2004-2016 Free Software Foundation, Inc."
9LICENSE="GNU GPL v2"
10REVISION="3"
11SOURCE_URI="https://pkg-config.freedesktop.org/releases/pkg-config-$portVersion.tar.gz"
12CHECKSUM_SHA256="6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591"
13SOURCE_DIR="pkg-config-$portVersion"
14PATCHES="pkgconfig-$portVersion.patchset"
15
16ARCHITECTURES="x86_gcc2 x86 x86_64 sparc"
17SECONDARY_ARCHITECTURES="x86_gcc2 x86"
18
19PROVIDES="
20	pkgconfig$secondaryArchSuffix = $portVersion compat >= 0.27
21	cmd:pkg_config$secondaryArchSuffix = $portVersion compat >= 0.27
22	"
23REQUIRES="
24	haiku$secondaryArchSuffix
25	lib:libiconv$secondaryArchSuffix
26	"
27
28BUILD_REQUIRES="
29	haiku${secondaryArchSuffix}_devel
30	devel:libiconv$secondaryArchSuffix
31	"
32BUILD_PREREQUIRES="
33	cmd:aclocal
34	cmd:autoconf
35	cmd:automake
36	cmd:autoreconf
37	cmd:awk
38	cmd:find
39	cmd:gcc$secondaryArchSuffix
40	cmd:ld$secondaryArchSuffix
41	cmd:libtoolize$secondaryArchSuffix
42	cmd:make
43	cmd:xargs
44	"
45
46BUILD()
47{
48	pcPathSubdir="/lib${secondaryArchSuffix/_//}/pkgconfig"
49	pcPath="`finddir B_USER_NONPACKAGED_DEVELOP_DIRECTORY`$pcPathSubdir"
50	pcPath="$pcPath:`finddir B_USER_DEVELOP_DIRECTORY`$pcPathSubdir"
51	pcPath="$pcPath:`finddir B_SYSTEM_NONPACKAGED_DEVELOP_DIRECTORY`$pcPathSubdir"
52	pcPath="$pcPath:`finddir B_SYSTEM_DEVELOP_DIRECTORY`$pcPathSubdir"
53	pcPath="$pcPath:`finddir B_USER_NONPACKAGED_DATA_DIRECTORY`/pkgconfig"
54	pcPath="$pcPath:`finddir B_USER_DATA_DIRECTORY`/pkgconfig"
55	pcPath="$pcPath:`finddir B_SYSTEM_NONPACKAGED_DATA_DIRECTORY`/pkgconfig"
56	pcPath="$pcPath:`finddir B_SYSTEM_DATA_DIRECTORY`/pkgconfig"
57
58	# because we patched configure.ac...
59	cd glib
60	autoreconf -i -f
61	cd ..
62	# do the needful...
63	autoreconf -i -f
64	automake --add-missing
65	export CFLAGS=-D_BSD_SOURCE
66	COMMON_DOCS=$docDir
67	runConfigure ./configure \
68		--disable-host-tool \
69		--with-internal-glib \
70		--with-pc-path="$pcPath"
71	make $jobArgs
72}
73
74INSTALL()
75{
76	make install
77}
78