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

PortSystem          1.0

name                desklaunch
version             1.1.8
checksums           rmd160  9521264d20864b996f7aa2899f80e9b75fa76856 \
                    sha256  8cb14b959f80ab119d9a420494c36d6fa80108d3a5febd98cdd76713a1b73dd3 \
                    size    14258

categories          x11
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         DeskLaunch is a small utility for creating desktop icons.

long_description    DeskLaunch is a small utility for creating desktop icons \
                    using pixmaps. A simple click will launch the desired \
                    application. DeskLaunch itself runs under X11 and uses a \
                    small configuration file to decide which icons to create. \
                    It is meant to supplement the Oroborus \"minimalistic \
                    window manager\".

homepage            https://www.oroborus.org/
master_sites        debian:d/desklaunch
distname            ${name}_${version}

depends_lib         port:xorg-libX11 \
                    port:xorg-libXext \
                    port:xpm

worksrcdir          ${name}-${version}

patchfiles          desklaunch.1.patch \
                    Makefile.patch

use_configure       no
universal_variant   yes

build.args          CC="${configure.cc}" \
                    INCLUDES="${configure.cppflags}" \
                    PREFIX="${prefix}"

pre-build {
    build.args-append \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                    LDPATH="${configure.ldflags} [get_canonical_archflags ld]"
}

destroot.args       {*}${build.args}
