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

rules « debian « package_spec « build_files - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 932ad19f7ad100b1d2af27084064f2a3353abe0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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

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')
TARBALL = blender_$(VER).orig.tar.gz

get-orig-source:
	rm -rf get-orig-source $(TARBALL)
	mkdir get-orig-source
	svn -q export -r $(REV) $(SVN_URL) get-orig-source/blender-$(VER)
	GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source blender-$(VER)
	rm -rf get-orig-source
	echo "  "$(TARBALL)" created; move it to the right destination to build the package"