mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/fltk: split -dev and fluid subpackages, use system libs
This commit is contained in:
parent
7133d61f19
commit
f182f901a2
@ -1,17 +1,17 @@
|
||||
# Contributor: ScrumpyJack <scrumpyjack@me.com>
|
||||
# Maintainer:
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=fltk
|
||||
pkgver=1.3.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A cross-platform C++ GUI toolkit"
|
||||
url="http://fltk.org"
|
||||
arch="all"
|
||||
license="GPL"
|
||||
depends=""
|
||||
depends_dev="libx11-dev"
|
||||
makedepends="$depends_dev"
|
||||
depends_dev="libx11-dev libxext-dev libxft-dev"
|
||||
makedepends="$depends_dev libpng-dev libjpeg-turbo-dev"
|
||||
install=""
|
||||
subpackages="$pkgname-doc"
|
||||
subpackages="$pkgname-doc $pkgname-dev $pkgname-fluid"
|
||||
source="http://fltk.org/pub/fltk/$pkgver/$pkgname-$pkgver-source.tar.gz"
|
||||
|
||||
_builddir=$srcdir/${pkgname}-${pkgver}
|
||||
@ -27,13 +27,30 @@ prepare() {
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--enable-shared \
|
||||
--enable-threads \
|
||||
--with-optim="$CXXFLAGS" \
|
||||
|| return 1
|
||||
make V=1
|
||||
}
|
||||
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
# remove static libs
|
||||
rm "$pkgdir"/usr/lib/*.a || return 1
|
||||
}
|
||||
|
||||
fluid() {
|
||||
pkgdesc="Fast Light User Interface Designer"
|
||||
depends=
|
||||
mkdir -p "$subpkgdir"/usr/
|
||||
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
|
||||
}
|
||||
|
||||
md5sums="9f7e707d4fb7a5a76f0f9b73ff70623d fltk-1.3.2-source.tar.gz"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user