1 | # $Id: Portfile 97300 2012-09-03 03:05:48Z rmstonecipher@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name windowmaker |
---|
6 | version 0.92.0 |
---|
7 | revision 6 |
---|
8 | license GPL-2+ |
---|
9 | maintainers nomaintainer |
---|
10 | categories x11 x11-wm |
---|
11 | platforms darwin freebsd |
---|
12 | homepage http://www.windowmaker.info/ |
---|
13 | description Window Maker is a X11 window manager supporting GNUstep |
---|
14 | long_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 | |
---|
23 | master_sites \ |
---|
24 | ftp://ftp.windowmaker.info/pub/source/release/ \ |
---|
25 | ftp://ftp.goldweb.com.au/pub/WindowMaker/source/release/ \ |
---|
26 | ftp://ftp.kddlabs.co.jp/X11/window_managers/windowmaker/source/release/ \ |
---|
27 | ftp://ftp.ameth.org/pub/mirrors/ftp.windowmaker.org/source/release/ \ |
---|
28 | ftp://ftp.minet.net/pub/windowmaker/source/release/ \ |
---|
29 | ftp://gd.tuwien.ac.at/hci/windowmaker/source/release/ \ |
---|
30 | ftp://ftp.dti.ad.jp/pub/X/WindowMaker/source/release/ \ |
---|
31 | ftp://ftp.chg.ru/pub/X11/windowmanagers/windowmaker/source/release/ |
---|
32 | |
---|
33 | distname WindowMaker-${version} |
---|
34 | checksums md5 aaac5421b686ed2d3e6ab65229c98097 |
---|
35 | use_bzip2 yes |
---|
36 | universal_variant no |
---|
37 | destroot.violate_mtree yes |
---|
38 | |
---|
39 | depends_build \ |
---|
40 | port:pkgconfig |
---|
41 | depends_lib \ |
---|
42 | port:xorg-libsm \ |
---|
43 | port:xorg-libXext \ |
---|
44 | port:Xft2 \ |
---|
45 | port:xpm \ |
---|
46 | port:libpng \ |
---|
47 | port:gettext \ |
---|
48 | path:include/gif_lib.h:giflib \ |
---|
49 | port:tiff |
---|
50 | |
---|
51 | patchfiles patch-wrlib_png.c.diff |
---|
52 | |
---|
53 | post-patch { |
---|
54 | set fl [glob -directory ${worksrcpath} WindowMaker/*menu*] |
---|
55 | lappend fl ${worksrcpath}/WindowMaker/Defaults/WindowMaker.in \ |
---|
56 | ${worksrcpath}/WPrefs.app/Menu.c ${worksrcpath}/WPrefs.app/Paths.c |
---|
57 | foreach i $fl { |
---|
58 | reinplace "s|/usr/X11R6/share|${prefix}/share|g" $i |
---|
59 | reinplace "s|/usr/share|${prefix}/share|g" $i |
---|
60 | reinplace "s|/usr/local/share|${prefix}/share|g" $i |
---|
61 | reinplace "s|/opt/share|${prefix}/share|g" $i |
---|
62 | reinplace "s|/opt/kde2/share|${prefix}/share|g" $i |
---|
63 | } |
---|
64 | } |
---|
65 | |
---|
66 | configure.env LINGUAS="bg cs da de el es et fi fr gl hr hu it ja \ |
---|
67 | ko ms nl no pl pt ro ru sk sv tr zh_CN" \ |
---|
68 | LIBS="-L${prefix}/lib -lintl -lX11" |
---|
69 | configure.args --disable-debug --enable-gnome \ |
---|
70 | --mandir=${prefix}/share/man \ |
---|
71 | --with-nlsdir=${prefix}/share/locale \ |
---|
72 | --with-gnustepdir=${prefix}/GNUstep/Local |
---|
73 | |
---|
74 | variant candy description "Enable various eye-candy options" { |
---|
75 | post-configure { |
---|
76 | reinplace "s|undef OPTIMIZE_SHAPE|define OPTIMIZE_SHAPE|" \ |
---|
77 | ${worksrcpath}/src/wconfig.h |
---|
78 | reinplace "s|undef ICON_KABOOM_EXTRA|define ICON_KABOOM_EXTRA|" \ |
---|
79 | ${worksrcpath}/src/wconfig.h |
---|
80 | reinplace "s|undef WINDOW_BIRTH_ZOOM2|define WINDOW_BIRTH_ZOOM2|" \ |
---|
81 | ${worksrcpath}/src/wconfig.h |
---|
82 | } |
---|
83 | } |
---|
84 | |
---|
85 | platform darwin i386 { |
---|
86 | post-patch { |
---|
87 | reinplace "s|#define ASM_X86 1||g" ${worksrcpath}/configure |
---|
88 | reinplace "s|#define ASM_X86_MMX 1||g" ${worksrcpath}/configure |
---|
89 | reinplace "s|asm_support=yes|asm_support=no|g" ${worksrcpath}/configure |
---|
90 | reinplace "s|mmx_support=yes|mmx_support=no|g" ${worksrcpath}/configure |
---|
91 | } |
---|
92 | } |
---|