2011-02-10 06:11:16 +00:00
|
|
|
#!/usr/bin/make -f
|
2011-02-11 10:29:47 +00:00
|
|
|
# -*- makefile -*-
|
2011-02-10 06:11:16 +00:00
|
|
|
|
|
|
|
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')
|
2011-02-11 10:29:47 +00:00
|
|
|
REL := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([0-9]+\.[0-9]+).*,\1,p')
|
2011-02-10 06:11:16 +00:00
|
|
|
TARBALL = blender_$(VER).orig.tar.gz
|
2011-02-11 10:29:47 +00:00
|
|
|
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 \
|
2011-03-06 12:04:59 +00:00
|
|
|
-DWITH_INSTALL_PORTABLE:BOOL=OFF \
|
2011-02-11 10:29:47 +00:00
|
|
|
-DWITH_PYTHON_INSTALL:BOOL=OFF \
|
|
|
|
-DWITH_OPENCOLLADA:BOOL=OFF
|
|
|
|
|
2011-04-02 21:51:05 +00:00
|
|
|
override_dh_auto_test:
|
|
|
|
# don't run CTest
|
|
|
|
|
2011-02-17 11:49:54 +00:00
|
|
|
override_dh_install:
|
|
|
|
dh_install
|
|
|
|
|
|
|
|
# remove duplicated docs
|
|
|
|
rm -rf debian/blender-snapshot/usr/share/doc/blender
|
|
|
|
|
2011-02-11 10:29:47 +00:00
|
|
|
override_dh_python3:
|
2011-04-02 21:51:05 +00:00
|
|
|
dh_python3 -V 3.2-3.3 /usr/share/blender/$(REL)/scripts
|
2011-02-10 06:11:16 +00:00
|
|
|
|
|
|
|
get-orig-source:
|
|
|
|
rm -rf get-orig-source $(TARBALL)
|
|
|
|
mkdir get-orig-source
|
2011-02-21 13:59:42 +00:00
|
|
|
if [ "$(SVN_URL)" = . ] && [ `svnversion` = "$(REV)" ]; then \
|
|
|
|
svn -q export . get-orig-source/blender-$(VER); \
|
|
|
|
else \
|
|
|
|
svn -q export -r $(REV) $(SVN_URL) get-orig-source/blender-$(VER); \
|
|
|
|
fi
|
2011-02-10 06:11:16 +00:00
|
|
|
GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source blender-$(VER)
|
|
|
|
rm -rf get-orig-source
|
2011-02-17 11:49:54 +00:00
|
|
|
@echo "$(TARBALL) created; move it to the right destination to build the package"
|