2017-11-01 14:03:44 +01:00
|
|
|
# Template file for 'gtkd'
|
|
|
|
pkgname=gtkd
|
2018-03-02 00:27:18 +01:00
|
|
|
version=3.7.5
|
2018-03-27 12:46:30 +02:00
|
|
|
revision=2
|
2017-11-01 14:03:44 +01:00
|
|
|
wrksrc="GtkD-${version}"
|
|
|
|
build_style=gnu-makefile
|
|
|
|
# The compiler used is ldc2 and our LDFLAGS make it fail to compile
|
|
|
|
# so we define LDFLAGS to an empty string
|
|
|
|
make_build_args="LDFLAGS='' DC=ldc2"
|
2018-03-27 12:46:30 +02:00
|
|
|
make_build_target="shared-libs shared-gstreamer shared-vte shared-peas shared-gtkdgl"
|
2017-11-01 14:03:44 +01:00
|
|
|
make_install_args="prefix=/usr"
|
2018-03-27 12:46:30 +02:00
|
|
|
make_install_target="install-shared-gstreamer install-headers-gstreamer
|
|
|
|
install-shared-gtkdgl install-headers-gtkdgl install-shared install-headers
|
|
|
|
install-shared-peas install-headers-peas install-shared-vte install-headers-vte"
|
|
|
|
hostmakedepends="ldc pkg-config"
|
|
|
|
makedepends="gstreamer1-devel gtksourceview-devel libpeas-devel librsvg-devel
|
|
|
|
vte3-devel"
|
2017-11-01 14:03:44 +01:00
|
|
|
short_desc="D bindings for GTK+3 and related libraries"
|
|
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
2018-03-27 12:46:30 +02:00
|
|
|
license="LGPL-3.0-or-later"
|
2017-11-01 14:03:44 +01:00
|
|
|
homepage="http://gtkd.org"
|
|
|
|
distfiles="https://github.com/gtkd-developers/GtkD/archive/v${version}.tar.gz"
|
2018-03-02 00:27:18 +01:00
|
|
|
checksum=9882ebae0ccdca7dc5850842bf547bec2cbdfa6f1b87909f84f20c59ac9da5c1
|
2017-11-01 14:03:44 +01:00
|
|
|
|
2018-03-27 12:46:30 +02:00
|
|
|
do_check() {
|
|
|
|
make DC=ldc2 LDFLAGS='' test
|
|
|
|
}
|
|
|
|
|
|
|
|
libpeasd_package() {
|
|
|
|
short_desc="Peasd library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libpeasd*.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgtkdgl_package() {
|
|
|
|
short_desc="Gtkdgl library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgtkdgl*.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libvted_package() {
|
|
|
|
short_desc="Vted library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libvted*.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgstreamerd_package() {
|
|
|
|
short_desc="Gstreamerd library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgstreamerd*.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgtkdsv_package() {
|
|
|
|
short_desc="Gtkdsv library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgtkdsv*.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-01 14:03:44 +01:00
|
|
|
gtkd-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
2018-03-27 12:46:30 +02:00
|
|
|
depends="gtkd-${version}_${revision} libpeasd-${version}_${revision}
|
|
|
|
libgstreamerd-${version}_${revision} libvted-${version}_${revision}
|
|
|
|
libgtkdsv-${version}_${revision} libgtkdgl-${version}_${revision}"
|
2017-11-01 14:03:44 +01:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/pkgconfig
|
2018-03-27 12:46:30 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2017-11-01 14:03:44 +01:00
|
|
|
}
|
|
|
|
}
|