Ticket #21303: Portfile-awesome.diff

File Portfile-awesome.diff, 2.7 KB (added by macports.org@…, 15 years ago)

awesome update to version 3.3.4

  • Portfile

     
    44PortSystem        1.0
    55
    66name              awesome
    7 version           2.0
    8 revision          2
     7version           3.3.4
     8revision          1
    99categories        x11 x11-wm
    1010maintainers       milosh openmaintainer
    1111platforms         darwin
     
    2222    lua integration, no 9P support, no editable tagbars, no limits on its\
    2323    source size, key, script and mouse bindings, etc.
    2424
    25 homepage          http://awesome.naquadah.org/
    26 master_sites      ${homepage}download/
    27 checksums         md5  b3e245bd9b8c05b759cc0acbec9f6a29 \
    28                   sha1 7a3257e7a76f9d77bd59558aa8393f2bed50057f \
    29                   rmd160  3a3a7014a11915f316bfce9ce5a2a606a057363a
     25homepage          http://awesome.naquadah.org
     26master_sites      ${homepage}/download/
     27checksums         md5  b38075c1a2fc6668ed733508f1a4e56e \
     28                  sha1 2038a00cf26d894004acfa533ca0a30401a7cb15 \
     29                  rmd160 bbafb20b14968c563e79e5419f877beb26b36b5e
    3030
    3131depends_build \
    32         port:pkgconfig
     32        port:cairo \
     33        port:cmake \
     34        port:ImageMagick \
     35        port:startup-notification \
     36        port:libxdg-basedir \
     37        port:imlib2 \
     38        port:libev
    3339
    3440depends_lib \
    35         port:xorg-libXext \
    36         port:Xft2 \
    37         port:xorg-libXinerama \
    38         port:xorg-libXrandr \
    39         path:lib/pkgconfig/cairo.pc:cairo \
    40         port:libconfuse
     41        port:lua \
     42        port:glib2 \
     43        port:pango \
     44        port:xcb \
     45        port:xorg-libxcb \
     46        port:xorg-randrproto
    4147
    42 patchfiles        patch-config.mk.diff patch-Makefile.diff
    43 post-patch      {
    44         reinplace "s|/opt/local|${prefix}|" ${worksrcpath}/config.mk
    45         reinplace "s|CFLAGS =|CFLAGS = \$(UNIV_FLAGS)|" ${worksrcpath}/config.mk
    46         reinplace "s|LDFLAGS =|LDFLAGS = \$(UNIV_FLAGS)|" ${worksrcpath}/config.mk
    47 }
     48build.target-append \
     49        CMAKE_ARGS="\
     50        -DCMAKE_INSTALL_PREFIX=${prefix} \
     51        -DPREFIX=${prefix} \
     52        -DAWESOME_DOC_PATH=${prefix}/share/doc/awesome \
     53        -DAWESOME_MAN_PATH=${prefix}/share/man \
     54        -DAWESOME_XSESSION_PATH=${prefix}/share/xsessions \
     55        -DSYSCONFDIR=${prefix}/etc \
     56        -DXDG_CONFIG_HOME=${prefix}/etc/xdg"
    4857
     58patchfiles        patch-CMakeLists.txt.diff
     59
    4960use_configure     no
    5061
    5162variant doc description {Build man pages} {
    52     depends_build     port:asciidoc port:xmlto
    53     destroot.target   install install-man
    54     build.target      all man
     63    depends_build  \
     64        port:asciidoc \
     65        port:xmlto \
     66        port:doxygen
    5567}
    5668
    57 variant universal {
    58         build.target-append UNIV_FLAGS="${configure.universal_cflags}"
    59 }
     69variant x11_xcb description {does nothing in this port, but its presence triggers cairo x11_xcb variant} {}
     70
     71default_variants +x11_xcb
     72