66 lines
2.1 KiB
Bash
66 lines
2.1 KiB
Bash
# Template file for 'ocaml-lablgtk2'
|
|
pkgname=ocaml-lablgtk2
|
|
version=2.18.10
|
|
revision=4
|
|
wrksrc="lablgtk-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--without-glade --without-gnomeui --without-gtksourceview"
|
|
make_build_args="world opt"
|
|
hostmakedepends="ocaml ocaml-findlib m4 pkg-config"
|
|
makedepends="gtk+-devel gtksourceview2-devel libgnomecanvas-devel gtkspell-devel"
|
|
short_desc="OCaml interface to GTK2"
|
|
maintainer="Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>"
|
|
license="LGPL-2.0-or-later"
|
|
homepage="http://lablgtk.forge.ocamlcore.org/"
|
|
distfiles="https://github.com/garrigue/lablgtk/archive/${version}.tar.gz"
|
|
checksum=6f00f6b3114b468eb9e743d27511a6063936f6798f890e44b494f71a5cf95470
|
|
nocross=yes
|
|
nopie=yes
|
|
disable_parallel_build=yes
|
|
|
|
post_configure() {
|
|
vsed -i src/Makefile -e "s;CFLAGS = ;& -fcommon ;"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
ocaml-lablgtk2-gnomecanvas_package() {
|
|
depends="ocaml-lablgtk2 libgnomecanvas"
|
|
short_desc+=" - gnomecanvas bindings"
|
|
pkg_install() {
|
|
vmove "usr/lib/ocaml/lablgtk2/gnoCanvas.*"
|
|
vmove "usr/lib/ocaml/lablgtk2/gnomeCanvas.*"
|
|
vmove "usr/lib/ocaml/lablgtk2/lablgnomecanvas.*"
|
|
vmove usr/lib/ocaml/lablgtk2/liblablgnomecanvas.a
|
|
vmove usr/lib/ocaml/lablgtk2/dlllablgnomecanvas.so
|
|
}
|
|
}
|
|
|
|
ocaml-lablgtk2-gtksourceview2_package() {
|
|
depends="ocaml-lablgtk2 gtksourceview2"
|
|
short_desc+=" - gtksourceview2 bindings"
|
|
pkg_install() {
|
|
vmove "usr/lib/ocaml/lablgtk2/gSourceView2.*"
|
|
vmove "usr/lib/ocaml/lablgtk2/gtkSourceView2.*"
|
|
vmove "usr/lib/ocaml/lablgtk2/gtkSourceView2_types.*"
|
|
vmove "usr/lib/ocaml/lablgtk2/lablgtksourceview2.*"
|
|
vmove "usr/lib/ocaml/lablgtk2/sourceView2Enums.*"
|
|
vmove usr/lib/ocaml/lablgtk2/liblablgtksourceview2.a
|
|
vmove usr/lib/ocaml/lablgtk2/dlllablgtksourceview2.so
|
|
vmove usr/lib/ocaml/lablgtk2/sourceView2_tags.h
|
|
}
|
|
}
|
|
|
|
ocaml-lablgtk2-gtkspell_package() {
|
|
depends="ocaml-lablgtk2 gtkspell"
|
|
short_desc+=" - gtkspell bindings"
|
|
pkg_install() {
|
|
vmove "usr/lib/ocaml/lablgtk2/gtkSpell.*"
|
|
vmove "usr/lib/ocaml/lablgtk2/lablgtkspell.*"
|
|
vmove usr/lib/ocaml/lablgtk2/liblablgtkspell.a
|
|
vmove usr/lib/ocaml/lablgtk2/dlllablgtkspell.so
|
|
}
|
|
}
|