1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Arch Linux Pro Audio <dev@archaudio.org>
3 # Contributor: dmotd <inaudible@simplesuperlativ.es>
4 pkgname=pd-extended-svn
7 pkgdesc="Pure Data Extended SVN version"
8 url="http://puredata.info/"
9 arch=('i686' 'x86_64' 'ppc')
11 depends=('libv4l' 'fftw' 'jack-audio-connection-kit' 'tk' 'freeglut' \
12 'libquicktime' 'libdv' 'gsl' 'imagemagick' \
13 'ftgl' 'libgl' 'dssi')
14 makedepends=('subversion' 'swig' 'automake' 'curl')
15 conflicts=('pd' 'pd-gem' 'pdp' 'zexy')
16 provides=('pd' 'pd-extended' 'pd-gem=0.91.3' 'pdp' 'zexy')
17 replaces=(pd-extended)
19 options=('!makeflags')
25 _svntrunk=https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/
28 _svnpdvanilla=https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/pd/
29 _svnextendedbranch=https://pure-data.svn.sourceforge.net/svnroot/pure-data/branches/pd-extended/0.42/pd/
30 _svnguirewritebranch=https://pure-data.svn.sourceforge.net/svnroot/pure-data/branches/pd-gui-rewrite/0.43/
37 msg "Begin SVN checkout"
39 if [ -d $_svnmod/.svn ]; then
40 (cd $_svnmod && svn up && svn switch $_svnextendedbranch pd)
42 (svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod && \
43 cd $_svnmod && svn switch $_svnextendedbranch pd && cd ..)
46 msg "SVN checkout done or server timeout"
48 msg "Starting make..."
49 cp -r $_svnmod $_svnmod-build
50 cd $startdir/src/$_svnmod-build
52 # hdspm_mixer disabled for now - doesn`t build
53 sed -e "s|gem2pdp hdspm_mixer iem16|gem2pdp iem16|g" \
54 -i externals/Makefile || return 1
55 # build gem with v4l2-support
56 sed -e "s|--disable-NV|--disable-NV --with-v4l2|g" \
57 -i packages/Makefile || return 1
58 # fix tcl version detection in tclpd Makefile
59 sed -e "s|/usr/include/tcl8.|/usr/lib/tcl8.|g" \
60 -i externals/tclpd/Makefile || return 1
63 if [ "$CARCH" = "x86_64" ]; then
64 # fix -fPIC issue in PDP
65 sed -e "s|CFLAGS =|CFLAGS = -fPIC|" \
66 -i externals/pdp/opengl/Makefile.config || return 1
67 # fix -fPIC issue in pddp
68 sed -e "s|DEFINES =|DEFINES = -fPIC|" \
69 -i externals/miXed/Makefile.common || return 1
70 # setting additional variable
76 cd packages/linux_make || return 1
79 -C $srcdir/$_svnmod-build/packages \
80 GEM_EXTRA_CXXFLAGS="$FPIC_FLAG" \
81 BUILDLAYOUT_DIR=$srcdir/$_svnmod-build/packages \
82 cvs_root_dir=$srcdir/$_svnmod-build \
88 cd $srcdir/$_svnmod-build
90 install -Dm644 pd/LICENSE.txt \
91 $pkgdir/usr/share/licenses/pd-extended-svn/LICENSE.txt
93 install -p linux_make/default.pdextended $pkgdir/usr/lib/pd-extended/
95 install -d $pkgdir/usr/share/icons/hicolor/128x128/apps
96 install -p -m0644 linux_make/pd.png \
97 $pkgdir/usr/share/icons/hicolor/128x128/apps/
98 install -d $pkgdir/usr/share/icons/hicolor/48x48/apps
99 install -p -m0644 linux_make/pd-48x48.png \
100 $pkgdir/usr/share/icons/hicolor/48x48/apps/pd.png
101 install -d $pkgdir/usr/share/applications/
102 install -p linux_make/pd-extended.desktop \
103 $pkgdir/usr/share/applications/
105 cd $srcdir/$_svnmod-build/
106 install -d $pkgdir/etc/bash_completion.d/
107 install -p scripts/bash_completion/pd $pkgdir/etc/bash_completion.d
108 # emacs mode for .pd files
109 install -d $pkgdir/usr/share/emacs/site-lisp/
110 install -p scripts/pd-mode.el $pkgdir/usr/share/emacs/site-lisp/
112 install -p scripts/pd-diff $pkgdir/usr/bin/
113 install -p scripts/config-switcher.sh $pkgdir/usr/bin/
115 rm -rf $srcdir/$_svnmod-build