You are not logged in.

#1 2012-11-16 21:14:12

markhadman
Member
Registered: 2010-10-09
Posts: 39

Is SuperCollider (cmake) respecting my C(XX)FLAGS?

Hi all,

I'm rebuilding SuperCollider in order to claw back some recent performance losses on my atom-based netbooks (eee 901).

I have set up my CFLAGS and CXXFLAGS to use -march=native in /etc/makepkg.conf. Normally when I rebuild a package I can see that those flags are being respected, but in the case of Supercollider the gcc invocations just aren't echoed to the terminal during building.

I'm hoping that somebody who understands the relationship between cmake, make and makepkg can tell me if the following PKGBUILD would result in a package built with my preferred flags from makepkg.conf, and if not point me in the right direction to make this happen. I've done about an hour of searching and can't find any documentation on cmake that speaks to my level of knowledge.

# $Id$
# Maintainer : speps <speps at aur dot archlinux dot org>
# Contributor:  <farid at archlinux-br.org>

_name=SuperCollider
pkgname=supercollider
pkgver=3.5.6
pkgrel=1
pkgdesc="An environment and programming language for real time audio synthesis and algorithmic composition"
arch=('i686' 'x86_64')
url="http://supercollider.sourceforge.net/"
license=('GPL3')
depends=('jack' 'fftw' 'icu' 'cwiid' 'curl' 'qtwebkit')
makedepends=('cmake' 'ruby' 'vim' 'emacs')
optdepends=('emacs: emacs interface'
            'gedit: gedit interface'
            'vim: vim interface'
            'ruby: vim support')
install="$pkgname.install"
source=("http://download.sourceforge.net/project/$pkgname/Source/$pkgver/$_name-$pkgver-Source-linux.tar.bz2")
md5sums=('d76b61fad8d0a1242905c5efb46e23b6')

build() {
  cd "$srcdir/$_name-Source"

  ## glibc 2.16 + boost 1.49 fix
  #  https://svn.boost.org/trac/boost/ticket/6940
  sed -i "s/TIME_UTC/&_/" `grep -rl TIME_UTC .`

  [ -d bld ] || mkdir bld && cd bld
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
           -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "$srcdir/$_name-Source/bld"
  make DESTDIR="$pkgdir/" install
}

Offline

Board footer

Powered by FluxBB