all repos — openbox @ 49394f1edf60c87b4ebbf60b7bb8d5b6302b9a2f

openbox fork - make it a bit more like ryudo

use a built-in module to replace libswigpy
Dana Jansens danakj@orodu.net
commit

49394f1edf60c87b4ebbf60b7bb8d5b6302b9a2f

parent

5face4c6f35172761367f63ac0b6eaf62d84e532

3 files changed, 18 insertions(+), 17 deletions(-)

jump to
M README.CVSREADME.CVS

@@ -8,18 +8,7 @@ GNU Libtool

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.

@@ -27,10 +16,9 @@ Do the following to build and install Openbox in CVS:

% ./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'.
M src/Makefile.amsrc/Makefile.am

@@ -7,7 +7,8 @@ CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \

-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@

@@ -15,12 +16,12 @@ INCLUDES= -I..

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

@@ -37,5 +38,8 @@ touch $@

%_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
A src/swigruntime.i

@@ -0,0 +1,9 @@

+// -*- 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