aboutsummaryrefslogtreecommitdiff
path: root/pkg-config
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-06-04 07:55:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-06-04 07:55:05 +0000
commit64b23ee27ee25b5dd0a4943422ceddc7696d0765 (patch)
tree323dc8571294c3c51bcb53920698f31d88436a4c /pkg-config
parent7e97ae154ccfdcc61dce79dcff3574d261a9ca39 (diff)
downloadpaludis-64b23ee27ee25b5dd0a4943422ceddc7696d0765.tar.gz
paludis-64b23ee27ee25b5dd0a4943422ceddc7696d0765.tar.xz
r3069@snowflake: ciaranm | 2007-06-04 08:32:39 +0100
Use pkg-config. Move include files to a subdirectory.
Diffstat (limited to 'pkg-config')
-rw-r--r--pkg-config/Makefile.am19
-rw-r--r--pkg-config/paludis.pc.in11
2 files changed, 30 insertions, 0 deletions
diff --git a/pkg-config/Makefile.am b/pkg-config/Makefile.am
new file mode 100644
index 000000000..384c9c135
--- /dev/null
+++ b/pkg-config/Makefile.am
@@ -0,0 +1,19 @@
+MAINTAINERCLEANFILES = Makefile.in
+pkgconfigdir = $(libdir)/pkgconfig/
+pkgconfig_DATA = paludis.pc
+EXTRA_DIST = paludis.pc.in
+CLEANFILES = paludis.pc
+
+built-sources : $(BUILT_SOURCES)
+ for s in $(SUBDIRS) ; do $(MAKE) -C $$s built-sources || exit 1 ; done
+
+paludis.pc : paludis.pc.in Makefile
+ sed \
+ -e "s,#PALUDIS_PC_PREFIX#,$(prefix)," \
+ -e "s,#PALUDIS_PC_LIBDIR#,$(libdir)," \
+ -e "s,#PALUDIS_PC_INCLUDEDIR#,$(includedir)/paludis-$(PALUDIS_PC_SLOT)," \
+ -e "s,#PALUDIS_PC_VERSION#,$(PALUDIS_PC_VERSION)," \
+ -e "s,#PALUDIS_PC_LIBS#,$(PALUDIS_PC_LIBS)," \
+ -e "s,#PALUDIS_PC_CFLAGS#,$(PALUDIS_PC_CFLAGS)," \
+ < $(srcdir)/paludis.pc.in > paludis.pc
+
diff --git a/pkg-config/paludis.pc.in b/pkg-config/paludis.pc.in
new file mode 100644
index 000000000..b926c4ac8
--- /dev/null
+++ b/pkg-config/paludis.pc.in
@@ -0,0 +1,11 @@
+prefix=#PALUDIS_PC_PREFIX#
+exec_prefix=${prefix}
+libdir=#PALUDIS_PC_LIBDIR#
+includedir=#PALUDIS_PC_INCLUDEDIR#
+
+Name: Paludis
+Description: The Other Package Mangler
+Version: #PALUDIS_PC_VERSION#
+Libs: -L${libdir} #PALUDIS_PC_LIBS#
+Cflags: -I${includedir} #PALUDIS_PC_CFLAGS#
+