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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup muniversal 1.0 |
---|
5 | |
---|
6 | name feh |
---|
7 | version 3.2.1 |
---|
8 | revision 3 |
---|
9 | categories graphics |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | license MIT |
---|
13 | |
---|
14 | description Fast lightweight image viewer |
---|
15 | |
---|
16 | long_description Simple and fast image viewer using imlib2 with file list \ |
---|
17 | and recursive file opening. |
---|
18 | |
---|
19 | homepage https://feh.finalrewind.org/ |
---|
20 | master_sites ${homepage} |
---|
21 | use_bzip2 yes |
---|
22 | |
---|
23 | checksums rmd160 af6c251ea98cdd53d9fa4dd603e795b1e4a27259 \ |
---|
24 | sha256 8f9741399b4b184ba28698c0fd7722638e79abac8e6c27eb526cc52b11ee0a1c \ |
---|
25 | size 2112281 |
---|
26 | |
---|
27 | depends_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 |
---|
37 | post-extract { |
---|
38 | system "chmod -R 755 ${worksrcpath}" |
---|
39 | } |
---|
40 | |
---|
41 | use_configure no |
---|
42 | |
---|
43 | # exif=1 - enable auto-rotate |
---|
44 | # verscmp=0 - disable strverscmp |
---|
45 | build.args PREFIX=${prefix} \ |
---|
46 | 'exif=1' \ |
---|
47 | 'verscmp=0' |
---|
48 | |
---|
49 | if {![info exists universal_possible]} { |
---|
50 | set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}] |
---|
51 | } |
---|
52 | if {${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 | |
---|
67 | destroot.args PREFIX=${prefix} |
---|
68 | |
---|
69 | livecheck.type regex |
---|
70 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|