You are not logged in.

#1 2005-04-25 16:02:23

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

tuhopuu - blender on speed (with PKGBUILD)

Hi,

as the blender maintainer I'm sometimes adventurous on testing the new stuff, and thus tuhouu came my way. Blender folks have two development trees: bf-blender which leads to new releases and tuhopuu which alwas test the lates features. There are noc such releases of tuhopuu, just cvs snapshots available. Once they are proven to be stable the features get ported from tuhopuu to bf-blender.

If you like to test the new stuff b4 it goes to stable releases, here comes a PKGBUILD. Why should you bother? This blows my mind:
http://mg.hp-fanfiction.com/index.php?o … 3&Itemid=3

Note currently it conflicts with blender, but since none of the packages ship with libraries or headers it might be easy to get them installed side by side when you rename the binaries.

Have fun,
-neri

download:   ~22MB
buildtime:    ca. 30Min on dual AthlonXP 2400+

PKGBUILD  -- always replce the date with current one, since old snapshots get deleted!

# $Id: PKGBUILD,v 1.13 2005/01/02 18:45:16 tobias Exp $
# Maintainer: tobias <tobias@archlinux.org>

pkgname=tuhopuu
_pkgdate=2005-04-25
pkgver=`echo $_pkgdate | sed 's|-||g'`
pkgrel=1
pkgdesc="blender on steriods"
url="http://blender3d.org"
depends=('libjpeg' 'libpng' 'sdl' 'python>=2.4' 'desktop-file-utils')
makedepends=('glut')
conflicts=('blender')
provides=('blender')
install=$pkgname.install
source=(ftp://download.blender.org/projects/$pkgname/daily-checkouts/$pkgname-$_pkgdate.tgz 
        $pkgname.desktop $pkgname.svg)

build() {
  cd $startdir/src/$pkgname/${pkgname}3
 ##########################################################################
 # tweak sources for gcc compliance
 sed -i 's|static PyMethodDef BP|PyMethodDef BP|' source/blender/python/api2_2x/CurNurb.c
 sed -i 's|static HE_EditTool|HE_EditTool|' source/blender/hemesh/tools/tool_manager.c
 sed -i 's|static void object_panel_hooks|void object_panel_hooks|' source/blender/src/buttons_object.c
 ##########################################################################
 # tweak the makefiles to prepare build for Archlinux
   # disable static binaries
  sed -i "s|^.*(BINTARGETS += blenderstatic)|    # 1|g" source/Makefile
  sed -i "s|^#(.*BINTARGETS += blenderplayer)|1|g" source/Makefile
   # uncommenting build ode engine
  sed -i 's|^(DIRS.*)$|1 ode|' extern/Makefile
   # get rid of buggy openal
  export NAN_NO_OPENAL=true

   # make the nan_makefiles happy
  export NAN_PYTHON_VERSION=2.4
  export WITH_FREETYPE2=true
  export INTERNATIONAL=true
  export NAN_JPEG=/usr
  export NAN_PNG=/usr
   # seems this really stops plugin build, sucky documentation :(
  export NAN_NO_PLUGIN=true
 ###########################################################################
 # build
  make || return 1
 ###########################################################################
 # installing 
   # install internationalization support
  mkdir -p $startdir/pkg/usr/share/
  cp -R bin/.blender/locale $startdir/pkg/usr/share/
  install -D -m644 bin/.blender/.bfont.ttf 
    $startdir/pkg/usr/share/blender/.bfont.ttf
  install -D -m644 bin/.blender/.Blanguages 
    $startdir/pkg/usr/share/blender/.Blanguages

   # install binaries
  cd obj/linux-glibc2*/bin
  install -Dm755 blender $startdir/pkg/usr/bin/blender
  install -Dm755 blenderplayer $startdir/pkg/usr/bin/blenderplayer

  install -Dm644 $startdir/src/$pkgname.desktop 
    $startdir/pkg/usr/share/applications/$pkgname.desktop
  install -D -m644 $startdir/src/$pkgname.svg 
    $startdir/pkg/usr/share/pixmaps/$pkgname.svg
}
# vim: ft=sh ts=2 et

tuhopuu.install

post_install() {
  echo "update desktop mime database..."
  update-desktop-database -q
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  /bin/true
}

post_remove() {
  echo "update desktop mime database..."
  update-desktop-database -q
}

op=$1
shift

$op $*

tuhopuu.desktop

[Desktop Entry]
Encoding=UTF-8
Name=tuhopuu
Comment=The development-tree of blender
Exec=blender
Icon=tuhopuu
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Application;Graphics;3DGraphics;
MimeType=application/blender;application/x-blender;

Offline

#2 2005-04-25 22:03:36

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: tuhopuu - blender on speed (with PKGBUILD)

Pjotr wrote:

Thanks for the package i always wanted to get my hands on the cvs version of blender smile
But one question where is the .svg file?

Infact, I renamed the svg file that is available as blender.svg from "abs"
Also, I discovered that the current bf-blender cvs has more features, probably cuz the next release 2.37 is close.
for the easiness of c'n p...

NOTE: this one is dependent on blender and thus is installed side by side.
It shares the ~/.blender dir and the localisations in /usr/share. The download of the snapshot is 55MB. Be aware of that.

# $Id: PKGBUILD,v 1.13 2005/01/02 18:45:16 tobias Exp $
# Maintainer: tobias <tobias@archlinux.org>

pkgname=bf-blender
_pkgdate=2005-04-25
pkgver=`echo $_pkgdate | sed 's|-||g'`
pkgrel=1
pkgdesc="3D modelling and animation programm -- cvs release"
url="http://blender3d.org"
depends=('libjpeg' 'libpng' 'sdl' 'python>=2.4' 'desktop-file-utils' 'blender')
makedepends=('glut')
install=$pkgname.install
source=(ftp://download.blender.org/projects/$pkgname/daily-checkouts/$pkgname-$_pkgdate.tgz 
        $pkgname.desktop)

build() {
  cd $startdir/src/$pkgname/blender
 ##########################################################################
 # tweak sources
 sed -i 's|static PyMethodDef BP|PyMethodDef BP|' source/blender/python/api2_2x/CurNurb.c
 sed -i 's|static HE_EditTool|HE_EditTool|' source/blender/hemesh/tools/tool_manager.c
 sed -i 's|static void object_panel_hooks|void object_panel_hooks|' source/blender/src/buttons_object.c
 ##########################################################################
 # tweak the makefiles to prepare build for Archlinux
   # disable static binaries
  sed -i "s|^.*(BINTARGETS += blenderstatic)|    # 1|g" source/Makefile
  sed -i "s|^#(.*BINTARGETS += blenderplayer)|1|g" source/Makefile
   # make ode (alternative physics engine)
  sed -i 's|^(DIRS.*)$|1 ode|' extern/Makefile
   # get rid of buggy openal
  export NAN_NO_OPENAL=true
   # make the nan_makefiles happy
  export NAN_PYTHON_VERSION=2.4
  export WITH_FREETYPE2=true
  export INTERNATIONAL=true
  export NAN_JPEG=/usr
  export NAN_PNG=/usr
   # seems this really stops plugin build, sucky documentation :(
  export NAN_NO_PLUGIN=true
 ###########################################################################
 # build
  make || return 1
 ###########################################################################
 # installing 
   # install binaries
  cd obj/linux-glibc2*/bin
  install -Dm755 blender $startdir/pkg/usr/bin/bf-blender
  install -Dm755 blenderplayer $startdir/pkg/usr/bin/bf-blenderplayer

  install -Dm755 $startdir/src/${pkgname} 
    $startdir/pkg/usr/bin/${pkgname}
  install -Dm644 $startdir/src/$pkgname.desktop 
    $startdir/pkg/usr/share/applications/$pkgname.desktop
}
# vim: ft=sh ts=2 et

bf-blender.desktop

[Desktop Entry]
Encoding=UTF-8
Name=bfblender
Comment=a cvs snapshot of blender
Exec=bf-blender
Icon=blender
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Application;Graphics;3DGraphics;
MimeType=application/blender;application/x-blender;

*edit*
just copy the .install from above and rename it to bf-blender.install

Offline

#3 2005-04-27 20:13:59

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: tuhopuu - blender on speed (with PKGBUILD)

Offline

Board footer

Powered by FluxBB