Ticket #59701: Portfile

File Portfile, 2.4 KB (added by johnrosshunt, 2 years ago)
Line 
1# -*- 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
2
3PortSystem          1.0
4PortGroup           muniversal 1.0
5
6name                feh
7version             3.2.1
8revision            3 
9categories          graphics
10platforms           darwin
11maintainers         nomaintainer
12license             MIT
13
14description         Fast lightweight image viewer
15
16long_description    Simple and fast image viewer using imlib2 with file list \
17                    and recursive file opening.
18
19homepage            https://feh.finalrewind.org/
20master_sites        ${homepage}
21use_bzip2           yes
22
23checksums           rmd160  af6c251ea98cdd53d9fa4dd603e795b1e4a27259 \
24                    sha256  8f9741399b4b184ba28698c0fd7722638e79abac8e6c27eb526cc52b11ee0a1c \
25                    size    2112281
26
27depends_lib-append  port:curl \
28                    port:imlib2 \
29                    path:include/turbojpeg.h:libjpeg-turbo \
30                    port:libexif \
31                    port:libpng \
32                    port:xorg-libXinerama \
33                    port:xorg-libXt \
34                    port:zlib
35
36# Correct permissions
37post-extract {
38    system "chmod -R 755 ${worksrcpath}"
39}
40
41use_configure       no
42
43# exif=1 - enable auto-rotate
44# verscmp=0 - disable strverscmp
45build.args          PREFIX=${prefix} \
46                    'exif=1' \
47                    'verscmp=0'
48
49if {![info exists universal_possible]} {
50    set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}]
51}
52if {${universal_possible} && [variant_isset universal]} {
53    foreach arch ${universal_archs_supported} {
54        lappend merger_build_env(${arch}) \
55                    CC=${configure.cc} \
56                    "CFLAGS=${configure.cflags} [muniversal_get_arch_flag ${arch}]" \
57                    CPPFLAGS=${configure.cppflags} \
58                    "LDFLAGS=${configure.ldflags} [muniversal_get_arch_flag ${arch}]"
59    }
60} else {
61    build.env       CC=${configure.cc} \
62                    "CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
63                    CPPFLAGS=${configure.cppflags} \
64                    "LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
65}
66
67destroot.args       PREFIX=${prefix}
68
69livecheck.type      regex
70livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}