Eigen: move C API into intern/eigen.
[blender.git] / build_files / package_spec / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 SVN_URL := https://svn.blender.org/svnroot/bf-blender/trunk/blender
5 REV := $(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]svn([0-9]+).*,\1,p')
6 VER := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
7 REL := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([0-9]+\.[0-9]+).*,\1,p')
8 TARBALL = blender_$(VER).orig.tar.gz
9 BLDDIR = debian/cmake
10
11 %:
12         dh $@ -Scmake -B$(BLDDIR) --parallel --with python3 --without python-support
13
14 override_dh_auto_configure:
15         # blender spesific CMake options
16         dh_auto_configure -- \
17                 -DCMAKE_BUILD_TYPE:STRING=Release \
18                 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
19                 -DWITH_PYTHON_INSTALL:BOOL=OFF \
20                 -DWITH_OPENCOLLADA:BOOL=OFF
21
22 override_dh_auto_test:
23         # don't run CTest
24
25 override_dh_install:
26         dh_install
27
28         # remove duplicated docs
29         rm -rf debian/blender-snapshot/usr/share/doc/blender
30
31 override_dh_python3:
32         dh_python3 -V 3.2-3.3 /usr/share/blender/$(REL)/scripts
33
34 get-orig-source:
35         rm -rf get-orig-source $(TARBALL)
36         mkdir get-orig-source
37         if [ "$(SVN_URL)" = . ] && [ `svnversion` = "$(REV)" ]; then \
38                 svn -q export . get-orig-source/blender-$(VER); \
39         else \
40                 svn -q export -r $(REV) $(SVN_URL) get-orig-source/blender-$(VER); \
41         fi
42         GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source blender-$(VER)
43         rm -rf get-orig-source
44         @echo "$(TARBALL) created; move it to the right destination to build the package"