summaryrefslogtreecommitdiff
path: root/pkg-config
diff options
context:
space:
mode:
Diffstat (limited to 'pkg-config')
-rw-r--r--pkg-config/Makefile36
-rw-r--r--pkg-config/pkg-config.p5m22
2 files changed, 58 insertions, 0 deletions
diff --git a/pkg-config/Makefile b/pkg-config/Makefile
new file mode 100644
index 0000000..73a0d94
--- /dev/null
+++ b/pkg-config/Makefile
@@ -0,0 +1,36 @@
+include /usr/share/cibs/rules/ips.mk
+include /usr/share/cibs/rules/archive.mk
+include /usr/share/cibs/rules/autotools.mk
+include /usr/share/cibs/rules/64.mk
+
+summary := manage compile and link flags for libraries
+license := GPL v2+
+license-file := COPYING
+
+build-depends += \
+ pkg:/library/glib2 \
+ pkg:/library/popt
+
+configure-options += \
+ --with-installed-popt \
+ --disable-shared \
+ --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/64/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/gnu/lib/64/pkgconfig:/usr/gnu/lib/pkgconfig \
+ --with-system-library-path=/usr/lib:/usr/gnu/lib:/usr/lib/amd64:/usr/gnu/lib/amd64:/usr/lib/64:/usr/gnu/lib/64
+
+
+# To bootstrap without pkg-config installed:
+configure-env += \
+ GLIB_LIBS="-lglib-2.0" \
+ GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/64/glib-2.0/include -I/usr/lib/glib-2.0/include"
+
+name := pkg-config
+home := http://www.freedesktop.org/wiki/Software/pkg-config
+version := 0.27.1
+archive := $(name)-$(version).tar.gz
+download := http://pkgconfig.freedesktop.org/releases/$(archive)
+# Insert this into Makefile:
+checksum := \
+ md5:5392b4e3372879c5bf856173b418d6a2 \
+ sha1:08249417a51c0a7a940e4276105b142b77e576b5 \
+ sha256:4f63d0df3035101b12949250da5231af49e3c3afcd8fb18554fa7c3cb92d8c17 \
+ size:1908265
diff --git a/pkg-config/pkg-config.p5m b/pkg-config/pkg-config.p5m
new file mode 100644
index 0000000..b5a2018
--- /dev/null
+++ b/pkg-config/pkg-config.p5m
@@ -0,0 +1,22 @@
+set name=pkg.fmri value=pkg:/developer/pkg-config@$(ips-version)
+set name=pkg.summary value="$(summary)"
+set name=info.upstream-url value="$(home)"
+set name=info.source-url value="$(download)"
+
+license $(license-file) license="$(license)"
+
+# It's all "devel"
+<transform file dir link -> set facet.devel false >
+
+dir path=usr
+dir path=usr/bin
+dir path=usr/share
+dir path=usr/share/aclocal
+dir path=usr/share/man
+dir path=usr/share/man/man1
+dir path=usr/share/doc
+dir path=usr/share/doc/pkg-config
+file path=usr/bin/pkg-config
+file path=usr/share/aclocal/pkg.m4
+file path=usr/share/man/man1/pkg-config.1
+file path=usr/share/doc/pkg-config/pkg-config-guide.html