Skip to content

Commit

Permalink
fix debian builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 21, 2013
1 parent 6f37868 commit eea57cf
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,20 @@ CMAKE_OPTS := \

MAKEFLAGS += VERBOSE=YES

ifneq (,$(findstring $(DISTRIBUTION),"squeeze lucid"))
CMAKE_OPTS += -D WITH_STAGED_PLUGINS=FALSE
endif

ifeq (,$(findstring $(DISTRIBUTION),"squeeze lucid maverick natty oneiric"))
QT_PLUGIN_DIR = usr/lib/$(DEB_BUILD_GNU_TYPE)/qt4/plugins
DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
QT_PLUGIN_DIR = usr/lib/$(DEB_BUILD_MULTIARCH)/qt4/plugins
else
QT_PLUGIN_DIR = usr/lib/qt4/plugins
endif

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif

ifneq (,$(findstring $(DISTRIBUTION),"squeeze wheezy lucid maverick natty oneiric precise raring"))
Expand All @@ -80,8 +85,7 @@ else
endif

ifneq (,$(findstring $(DISTRIBUTION),"raring"))
DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
CMAKE_OPTS += -D PYTHON_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libpython2.7.so
CMAKE_OPTS += -D PYTHON_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libpython2.7.so
endif

ifneq (,$(findstring -oracle,$(DISTRIBUTION)))
Expand Down Expand Up @@ -112,7 +116,7 @@ ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
endif

ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTS += -D ENABLE_TESTS=TRUE
CMAKE_OPTS += -D ENABLE_TESTS=FALSE
endif

ifneq (,$(findstring profile,$(DEB_BUILD_OPTIONS)))
Expand Down

0 comments on commit eea57cf

Please sign in to comment.