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 \
|
|
|
|
-DWITH_PYTHON_INSTALL:BOOL=OFF \
|
|
|
|
-DWITH_OPENCOLLADA:BOOL=OFF
|
|
|
|
|
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:
|
|
|
|
dh_python3 -V 3.1-3.2 /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"
|