source: trunk/dports/x11/rxvt-unicode/Portfile

Last change on this file was 150637, checked in by ryandesign@…, 14 months ago

rxvt-unicode: update to 9.22 (#51903; maintainer)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
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# $Id: Portfile 150637 2016-07-25 18:17:01Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       compiler_blacklist_versions 1.0
6
7name            rxvt-unicode
8version         9.22
9categories      x11
10license         GPL-2+
11maintainers     gmail.com:emanuele.giaquinta openmaintainer
12description     Unicode-aware rxvt clone.
13long_description \
14                rxvt-unicode is a clone of the well-known terminal \
15                emulator rxvt. Some of its main features over rxvt are \
16                use of UCS-2 or UCS-4 to store text internally, \
17                locale-correct in- and output, stability, \
18                completely flicker-free \
19                display, support for Xft and core fonts in any \
20                combination, etc.
21platforms       darwin
22homepage        http://software.schmorp.de/pkg/rxvt-unicode.html
23master_sites    http://dist.schmorp.de/rxvt-unicode/ \
24                http://dist.schmorp.de/rxvt-unicode/Attic/
25use_bzip2       yes
26
27checksums       rmd160  83e315f513500c2bf1f31cd4fd3854b508bc8d22 \
28                sha256  e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd
29depends_build \
30        port:pkgconfig
31
32# urxvt also depends on xorg-libX11, xrender and fontconfig but all these ports are in the dependency tree of Xft2
33depends_lib \
34        port:Xft2 \
35        port:startup-notification \
36        port:xorg-libXmu \
37        port:ncurses \
38        path:bin/perl:perl5
39
40# clang++ 3.0 produces unstable urxvt binary which sometimes causes errors like:
41#        "terminate called throwing an exceptionAbort trap: 6"
42compiler.blacklist {clang < 318}
43
44configure.perl  ${prefix}/bin/perl
45
46patchfiles      patch-Makefile.in.diff
47
48if {[string match *clang* ${configure.cxx}]} {
49    configure.ldflags-append -stdlib=${configure.cxx_stdlib}
50}
51
52configure.args  --enable-everything \
53                --enable-256-color \
54                --with-term=rxvt-unicode-256color \
55                --disable-utmp \
56                --disable-pixbuf \
57                --mandir=${prefix}/share/man
58
59use_parallel_build  yes
60
61variant pixbuf description {gdk-pixbuf support} {
62    configure.args-append   --enable-pixbuf
63    depends_lib-append      port:gdk-pixbuf2
64}
65
66variant lite description {lightweight build options} {
67    depends_lib-delete      port:Xft2 \
68                            port:startup-notification \
69                            path:bin/perl:perl5
70    depends_lib-append      port:xorg-libX11
71    configure.args-delete   --enable-everything
72    configure.args-append   --disable-everything \
73                            --enable-combining \
74                            --enable-resources \
75                            --enable-frills \
76                            --enable-font-styles \
77                            --enable-selectionscrolling \
78                            --enable-mousewheel \
79                            --enable-pointer-blank
80}
81
82destroot.env    TERMINFO=${destroot}${prefix}/share/terminfo
83pre-destroot {
84    xinstall -m 755 -d ${destroot}${prefix}/share/terminfo
85}
86post-destroot {
87    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/etc
88    xinstall -m 644 -W ${worksrcpath} COPYING Changes INSTALL README.FAQ README.configure ${destroot}${prefix}/share/doc/${name}
89    xinstall -m 644 -W ${worksrcpath}/doc/etc rxvt-unicode.termcap rxvt-unicode.terminfo ${destroot}${prefix}/share/doc/${name}/etc
90}
91
92livecheck.type  regex
93livecheck.url   [lindex ${master_sites} 0]
94livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.