1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name icewm |
---|
6 | version 1.2.31 |
---|
7 | categories x11 x11-wm |
---|
8 | maintainers nomaintainer@macports.org |
---|
9 | platforms darwin |
---|
10 | |
---|
11 | description Lightweight window manager with a Windows or OS/2 look and feel |
---|
12 | long_description Nice and fast window manager with the look and feel \ |
---|
13 | from Windows (95, 98) or OS/2 (Warp 3, Warp 4). |
---|
14 | |
---|
15 | homepage http://www.icewm.org |
---|
16 | master_sites http://downloads.sourceforge.net/icewm |
---|
17 | checksums md5 aef471135eb0c6d69a30ef971c2f7412 |
---|
18 | |
---|
19 | depends_lib lib:libX11.6:XFree86 lib:libXext.6:XFree86 lib:libXpm.4:xpm \ |
---|
20 | lib:libSM.6:sm \ |
---|
21 | port:gettext port:freetype port:xft2 |
---|
22 | |
---|
23 | configure.args --mandir=${prefix}/share/man \ |
---|
24 | --with-cfgdir=${prefix}/etc/icewm \ |
---|
25 | --with-xpm --without-icesound \ |
---|
26 | --disable-i18n --disable-nls \ |
---|
27 | --disable-debug |
---|
28 | |
---|
29 | destroot { |
---|
30 | system "cd ${worksrcpath} && make install-docs DESTDIR=${destroot}" |
---|
31 | system "cd ${worksrcpath} && make install-man DESTDIR=${destroot}" |
---|
32 | if {[variant_isset gnome1] || [variant_isset gnome2]} { |
---|
33 | system "cd ${worksrcpath} && make install-gnome DESTDIR=${destroot}" |
---|
34 | } |
---|
35 | system "cd ${worksrcpath} && make install DESTDIR=${destroot}" |
---|
36 | } |
---|
37 | |
---|
38 | post-destroot { |
---|
39 | ui_msg "" |
---|
40 | ui_msg "To start icewm put \"exec icewm-session\" in your \".xinitrc\" file." |
---|
41 | ui_msg "Don't forget to add the MacPorts Environment to the X Environment too!" |
---|
42 | ui_msg "" |
---|
43 | } |
---|
44 | |
---|
45 | if {[variant_isset gnome1]} { |
---|
46 | variant_unset gnome2 |
---|
47 | } |
---|
48 | if {[variant_isset gnome2]} { |
---|
49 | variant_unset gnome1 |
---|
50 | } |
---|
51 | |
---|
52 | variant lite description { Use the lightweight IceWM } { |
---|
53 | configure.args-append --enable-lite \ |
---|
54 | --disable-xinerama --disable-xrandr |
---|
55 | } |
---|
56 | |
---|
57 | variant xpm conflicts imlib description { Use Xpm for images } { |
---|
58 | configure.args-delete --with-imlib |
---|
59 | # configure.args-append --with-xpm |
---|
60 | depends_lib-append port:xpm |
---|
61 | } |
---|
62 | |
---|
63 | variant imlib conflicts xpm description { Use Imlib for images (does not work yet) } { |
---|
64 | configure.args-delete --with-xpm |
---|
65 | configure.args-append --with-imlib |
---|
66 | depends_lib-append port:imlib |
---|
67 | } |
---|
68 | |
---|
69 | variant nls description { Use internationalized messages (does not work correct yet) } { |
---|
70 | configure.args-delete --disable-i18n --disable-nls |
---|
71 | # configure.args-append --enable-i18n --enable-nls |
---|
72 | depends_lib-append port:gettext port:libiconv |
---|
73 | } |
---|
74 | |
---|
75 | variant debug description { Use this option if you want to debug IceWM } { |
---|
76 | configure.args-delete --disable-debug |
---|
77 | configure.args-append --enable-debug |
---|
78 | } |
---|
79 | |
---|
80 | # not tested: can't install esound, help2man |
---|
81 | variant esound description { Use sound support (untested) } { |
---|
82 | configure.args-delete --without-icesound |
---|
83 | configure.args-append --with-icesound=esound --enable-guievents |
---|
84 | depends_lib-append port:audiofile port:esound |
---|
85 | } |
---|
86 | |
---|
87 | # not tested, can't install gnome |
---|
88 | variant gnome1 conflicts gnome2 description { Use the GNOME menus with IceWM } { |
---|
89 | configure.args-append --enable-menus-gnome1 |
---|
90 | } |
---|
91 | |
---|
92 | variant gnome2 conflicts gnome1 description { Use the KDE/GNOME2 menus with IceWM } { |
---|
93 | configure.args-append --enable-menus-gnome2 |
---|
94 | } |
---|
95 | |
---|