]> Dogcows Code - chaz/openbox/commitdiff
provide pkg-config info for libotk
authorDana Jansens <danakj@orodu.net>
Wed, 5 Feb 2003 09:40:08 +0000 (09:40 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 5 Feb 2003 09:40:08 +0000 (09:40 +0000)
otk/.cvsignore
otk/Makefile.am
otk/otk.pc.in [new file with mode: 0644]

index 8be6a1742a8ef9a508d1ea90cd2f821f0947d118..0497be4ac8ae74a814a151e225c68debbc989ea8 100644 (file)
@@ -40,3 +40,4 @@ renderstyle.lo
 rendercontrol.lo
 rendercolor.lo
 otk.py
+otk.pc
index 992d7344183d698ad80acd58a33431a99c3f23c2..3ca6c6ffe1fd29522bd7447943d04995388f6f03 100644 (file)
@@ -1,8 +1,9 @@
 buttonsdir = $(pkgdatadir)/buttons
 scriptdir = $(libdir)/openbox/python
 includeotkdir = $(includedir)/otk
+pkgconfigdir = $(libdir)/pkgconfig
 
-CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \
+CXXFLAGS=$(XFT_CFLAGS) @CXXFLAGS@ \
 -DBUTTONSDIR=\"$(buttonsdir)\" -DSWIG_GLOBAL
 # -DSWIG_GLOBAL means we don't have to link libswigpy cuz libotk will export
 # everything it would
@@ -29,14 +30,21 @@ includeotk_HEADERS=application.hh appwidget.hh assassin.hh button.hh \
                    rendertexture.hh screeninfo.hh strut.hh surface.hh \
                    timer.hh truerendercontrol.hh ustring.hh util.hh widget.hh \
                    ../config.h
-libotk_la_LDFLAGS = $(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
+libotk_la_LDFLAGS = $(XFT_LIBS) @LIBS@
 
 MAINTAINERCLEANFILES= Makefile.in
 
+pkgconfig_DATA = otk.pc
+
 script_DATA = otk.py
 
 EXTRA_DIST = $(script_DATA)
 
+otk.pc: otk.pc.in
+       @regex_cmd@ -e "s,\@prefix\@,$(prefix)," \
+               -e "s,\@version\@,$(VERSION)," \
+               @srcdir@/$^ > $@
+
 distclean-local:
        rm -f *\~ *.orig *.rej .\#*
 
diff --git a/otk/otk.pc.in b/otk/otk.pc.in
new file mode 100644 (file)
index 0000000..1d4d368
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: otk
+Description: Openbox Toolkit
+Version: @version@
+Requires: xft
+Libs: -L${libdir} -lotk
+Cflags: -I${includedir}
This page took 0.025295 seconds and 4 git commands to generate.