summaryrefslogtreecommitdiff
path: root/otk/Makefile.am
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-05 09:40:08 +0000
committerDana Jansens <danakj@orodu.net>2003-02-05 09:40:08 +0000
commita5a712f9ae652e500c81b42db548d213bde4712e (patch)
treeea7edc7037656628d30926821b50904cf283f209 /otk/Makefile.am
parent59ef3022a4ce0a23e6d54f7d73a2aa77721e9cc9 (diff)
provide pkg-config info for libotk
Diffstat (limited to 'otk/Makefile.am')
-rw-r--r--otk/Makefile.am12
1 files changed, 10 insertions, 2 deletions
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 .\#*