source: trunk/dports/x11/windowmaker/Portfile

Last change on this file was 115019, checked in by ryandesign@…, 4 years ago

revbump ports depending on libpng following libpng 1.6.x update (#41842)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 115019 2013-12-22 09:29:46Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            windowmaker
6version         0.95.3
7revision        2
8license         GPL-2+
9maintainers     nomaintainer
10categories      x11 x11-wm
11platforms       darwin freebsd
12homepage        http://windowmaker.org/
13description     Window Maker is a X11 window manager supporting GNUstep
14long_description \
15    Window Maker is an X11 window manager originally designed to provide \
16    integration support for the GNUstep Desktop Environment. \
17    In every way possible, it reproduces the elegant look and feel \
18    of the NEXTSTEP\[tm\] user interface. \
19    It is fast, feature rich, easy to configure, and easy to use. \
20    It is also free software, with contributions being made \
21    by programmers from around the world.
22
23master_sites \
24    http://windowmaker.org/pub/source/release/
25
26distname    WindowMaker-${version}
27checksums       rmd160 320f29bb930b046ebdb796dc0d8b2dfdfa551c1b \
28            sha256 b5eb88eccbf9a196a617594717797aa38f5c38d13d2ee40e914e153d09c9975a
29universal_variant no
30destroot.violate_mtree yes
31
32depends_build \
33        port:pkgconfig
34depends_lib \
35        port:xorg-libXmu \
36        port:Xft2 \
37        port:xpm \
38        port:libpng \
39        port:gettext \
40        port:giflib \
41        port:tiff
42
43post-patch {
44        set fl [glob -directory ${worksrcpath} WindowMaker/*menu*]
45        lappend fl ${worksrcpath}/WindowMaker/Defaults/WindowMaker.in \
46                       ${worksrcpath}/WPrefs.app/Menu.c ${worksrcpath}/WPrefs.app/Paths.c
47        foreach i $fl {
48                reinplace "s|/usr/X11R6/share|${prefix}/share|g" $i
49                reinplace "s|/usr/share|${prefix}/share|g" $i
50                reinplace "s|/usr/local/share|${prefix}/share|g" $i
51                reinplace "s|/opt/share|${prefix}/share|g" $i
52                reinplace "s|/opt/kde2/share|${prefix}/share|g" $i
53        }
54}
55
56configure.env   LINGUAS="bg cs da de el es et fi fr gl hr hu it ja \
57                ko ms nl no pl pt ro ru sk sv tr zh_CN" \
58                LIBS="-L${prefix}/lib -lintl -lX11"
59configure.args  --mandir=${prefix}/share/man \
60                --with-nlsdir=${prefix}/share/locale \
61                --with-gnustepdir=${prefix}/GNUstep/Local
62
63variant candy description "Enable various eye-candy options" {
64    post-configure {
65        reinplace "s|undef OPTIMIZE_SHAPE|define OPTIMIZE_SHAPE|" \
66            ${worksrcpath}/src/wconfig.h
67        reinplace "s|undef ICON_KABOOM_EXTRA|define ICON_KABOOM_EXTRA|" \
68            ${worksrcpath}/src/wconfig.h
69        reinplace "s|undef WINDOW_BIRTH_ZOOM2|define WINDOW_BIRTH_ZOOM2|" \
70            ${worksrcpath}/src/wconfig.h
71    }
72}
73
74platform darwin i386 {
75    post-patch {
76        reinplace "s|#define ASM_X86 1||g" ${worksrcpath}/configure
77        reinplace "s|#define ASM_X86_MMX 1||g" ${worksrcpath}/configure
78        reinplace "s|asm_support=yes|asm_support=no|g" ${worksrcpath}/configure
79        reinplace "s|mmx_support=yes|mmx_support=no|g" ${worksrcpath}/configure
80    }
81}
Note: See TracBrowser for help on using the repository browser.