Xft2 library/headers (devel package) (http://www.fontconfig.org)
Xlib library/headers (devel package)
Python library/headers (devel package) (http://www.python.org)
-
-Optional:
SWIG 1.3.17+ (http://www.swig.org)
- *** If you don't want to get swig, thats fine, unless you're going to be
- *** editing stuff.
- *** Without SWIG, before you build CVS _every time you update_ you need to:
- ***
- *** % touch src/openbox.i
- *** % touch src/openbox_wrap.cc
- ***
- *** This is because of how CVS deals with timestamps.
-
I recommend the latest version of all these packages.
% ./bootstrap
% ./configure
-<optional touch commands from above if you don't have SWIG>
% make all install
-Don't try building it and running it from the src/ directory, it won't work. It
-needs to be installed.
+Don't try running it from the src/ directory without installing, it won't work.
+It needs to be installed before it is run.
The installed binary is 'openbox3'.
-DDEFAULTMENU=\"$(DEFAULT_MENU)\" \
-DDEFAULTSTYLE=\"$(DEFAULT_STYLE)\" \
-DLOCALEDIR=\"$(localedir)\" \
--DSCRIPTDIR=\"$(scriptdir)\"
+-DSCRIPTDIR=\"$(scriptdir)\" -DSWIG_GLOBAL
+# -DSWIG_GLOBAL is for the swigruntime.cc (see swigruntime.i for explanation)
LIBS=$(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
bin_PROGRAMS= openbox3
-openbox3_LDADD=-L../otk -lotk -lswigpy @LIBINTL@
+openbox3_LDADD=-L../otk -lotk @LIBINTL@
openbox3_SOURCES= actions.cc client.cc frame.cc openbox.cc screen.cc \
main.cc backgroundwidget.cc labelwidget.cc \
buttonwidget.cc python.cc bindings.cc \
- openbox_wrap.cc
+ swigruntime.cc openbox_wrap.cc
openbox3_LDFLAGS= $(PYTHON_LDFLAGS)
script_DATA = ob.py
%_wrap.cc: %.i
swig -c -I../otk $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
+swigruntime.cc: swigruntime.i
+ swig -python -c++ -o $@ $<
+
# local dependencies
--- /dev/null
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+
+/*
+ This module exists just to link in the stuff that libswigpy would normally
+ provide. This way you don't need swig to compile this package from
+ distributed source tarballs.
+*/
+
+%module swigruntime