summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
Diffstat (limited to 'otk')
-rw-r--r--otk/.cvsignore1
-rw-r--r--otk/Makefile.am12
-rw-r--r--otk/otk.pc.in11
3 files changed, 22 insertions, 2 deletions
diff --git a/otk/.cvsignore b/otk/.cvsignore
index 8be6a174..0497be4a 100644
--- a/otk/.cvsignore
+++ b/otk/.cvsignore
@@ -40,3 +40,4 @@ renderstyle.lo
rendercontrol.lo
rendercolor.lo
otk.py
+otk.pc
diff --git a/otk/Makefile.am b/otk/Makefile.am
index 992d7344..3ca6c6ff 100644
--- a/otk/Makefile.am
+++ b/otk/Makefile.am
@@ -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
index 00000000..1d4d368a
--- /dev/null
+++ b/otk/otk.pc.in
@@ -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}