summaryrefslogtreecommitdiff
path: root/extra/fltk/PKGBUILD
blob: f5335f613987d87785999b020486030dcc6a512f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 71291 2010-03-06 01:40:12Z pierre $

pkgname=fltk
pkgver=1.1.10
pkgrel=1
pkgdesc="Graphical user interface toolkit for X"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.fltk.org/"
depends=('libjpeg' 'libpng' 'gcc-libs' 'libxft' 'libxext')
makedepends=('mesa')
source=("http://ftp.easysw.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.bz2")
md5sums=('a1765594bc427ff892e36089fe1fa672')

build() {
  cd $srcdir/$pkgname-$pkgver
  export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
  export LDFLAGS="${LDFLAGS//,--as-needed}"
  ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared
  make || return 1
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
}