part of a patch from Dan Eicher with some edits.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Feb 2011 05:49:21 +0000 (05:49 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Feb 2011 05:49:21 +0000 (05:49 +0000)
- clean svn string: 35042:35051M -> 35051
- debian and pacman build with threads by default.

GNUmakefile
build_files/package_spec/build_debian.sh
build_files/package_spec/debian/control
build_files/package_spec/pacman/PKGBUILD

index 9815477dd3931512b301931f215c25db8834fe75..0e1f57bd3dc15c2a7181b27890da1c69ba0b52fd 100644 (file)
@@ -85,10 +85,10 @@ debug: all
 
 # package types
 package_debian:
-       cd build_files/package_spec ; sh ./build_debian.sh
+       cd build_files/package_spec ; DEB_BUILD_OPTIONS="parallel=$(NPROCS)" sh ./build_debian.sh
 
 package_pacman:
-       cd build_files/package_spec/pacman ; makepkg --asroot
+       cd build_files/package_spec/pacman ; MAKEFLAGS="-j$(NPROCS)" makepkg --asroot
 
 # forward build targets
 test:
index dda24eabee504fd839a85e2dd9c538d95755897f..1d35e4590e2f350c6ac702e133c5395a3243e201 100755 (executable)
@@ -11,7 +11,8 @@ cp -a build_files/package_spec/debian .
 
 
 # Get values from blender to use in debian/changelog.
-BLENDER_REVISION=$(svnversion)
+# value may be formatted: 35042:35051M
+BLENDER_REVISION=$(svnversion | cut -d: -f2 | tr -dc 0-9)
 
 blender_srcdir=$PWD
 blender_version=$(grep BLENDER_VERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)
index 3a6fda8ff6ceb1969bbde3f74c27ed4efe50bb2a..7329a552dbc771612ae276a006890c20424afc9f 100644 (file)
@@ -5,8 +5,6 @@ Maintainer: Dan Eicher <dan@trollwerks.org>
 Build-Depends: debhelper (>= 7.0.50~), cmake, python3, python, libfreetype6-dev, libglu1-mesa-dev, libilmbase-dev, libopenexr-dev, libjpeg62-dev, libopenal-dev, libpng12-dev, libsamplerate0-dev, libsdl-dev, libtiff4-dev, libx11-dev, libxi-dev, zlib1g-dev, python3.1-dev, libopenjpeg-dev
 Standards-Version: 3.9.1
 Homepage: http://blender.org/
-Vcs-Browser: http://github.com/eponymous/blender
-Vcs-Git: git://github.com/eponymous/blender.git
 X-Python3-Version: >= 3.1, << 3.2
 
 Package: blender-snapshot
index 6102be5833cc26574c67e13bc28a36e13bb0cb9e..3cbd452dbf49e8d012028259dcc0f90ca7956c0c 100644 (file)
@@ -2,7 +2,8 @@
 
 # custom blender vars
 blender_srcdir=$(dirname $startdir)"/../.."
-blender_revision=$(svnversion $blender_srcdir)
+# value may be formatted: 35042:35051M
+blender_revision=$(svnversion $blender_srcdir | cut -d: -f2 | tr -dc 0-9)
 blender_version=$(grep BLENDER_VERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)
 # blender_subversion=$(grep BLENDER_SUBVERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)
 blender_ver_string=$(expr $blender_version / 100).$(expr $blender_version % 100)+svn$blender_revision
@@ -40,7 +41,7 @@ build() {
     -DWITH_PYTHON_INSTALL:BOOL=OFF \
     -DWITH_OPENCOLLADA:BOOL=OFF
 
-  make
+  make $MAKEFLAGS
 }
 
 package() {