# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           gitlab 1.0
PortGroup           meson 1.0

name                libfeedback
gitlab.instance     https://source.puri.sm
gitlab.setup        Librem5 feedbackd 0.8.1 v
revision            0
categories          devel
license             GPL-3+
maintainers         nomaintainer

description         Daemon to provide haptic, led and audio feedback \
                    triggered by application events
long_description    {*}${description}.
use_bzip2           yes

checksums           rmd160  ce425941d40c67caacc936e16064465aa14da77f \
                    sha256  54e7d662eef5e344f0583d102f89fb30964094bbff5d41973c0ca48da1f3f574 \
                    size    104920

meson.wrap_mode     nodownload

depends_build-append \
                    path:bin/pkg-config:pkgconfig \
                    path:bin/vala:vala

depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection

compiler.c_standard 2011

configure.args-append \
                    -Ddaemon=false \
                    -Dgtk_doc=false \
                    -Dintrospection=enabled \
                    -Dtests=false \
                    -Dudev=false \
                    -Dvapi=true

platform darwin 8 {
    configure.ldflags-append \
                    -lssp
}
