Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build_files/package_spec/debian/rules')
-rwxr-xr-xbuild_files/package_spec/debian/rules22
1 files changed, 16 insertions, 6 deletions
diff --git a/build_files/package_spec/debian/rules b/build_files/package_spec/debian/rules
index 932ad19f7ad..5844d289d88 100755
--- a/build_files/package_spec/debian/rules
+++ b/build_files/package_spec/debian/rules
@@ -1,15 +1,25 @@
#!/usr/bin/make -f
-
-# blender spesific CMake options
-DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_BUILD_TYPE:STRING=Release -DWITH_PYTHON_INSTALL:BOOL=OFF -DWITH_OPENCOLLADA:BOOL=OFF
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/cmake.mk
+# -*- makefile -*-
SVN_URL := https://svn.blender.org/svnroot/bf-blender/trunk/blender
REV := $(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]svn([0-9]+).*,\1,p')
VER := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+REL := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([0-9]+\.[0-9]+).*,\1,p')
TARBALL = blender_$(VER).orig.tar.gz
+BLDDIR = debian/cmake
+
+%:
+ dh $@ -Scmake -B$(BLDDIR) --parallel --with python3 --without python-support
+
+override_dh_auto_configure:
+ # blender spesific CMake options
+ dh_auto_configure -- \
+ -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DWITH_PYTHON_INSTALL:BOOL=OFF \
+ -DWITH_OPENCOLLADA:BOOL=OFF
+
+override_dh_python3:
+ dh_python3 -V 3.1-3.2 /usr/share/blender/$(REL)/scripts
get-orig-source:
rm -rf get-orig-source $(TARBALL)