Ticket #12436: Portfile.2

File Portfile.2, 3.0 KB (added by raimue (Rainer Müller), 17 years ago)

Updated, changed your comments to variant descriptions. Changed variant_isset code to normal conflicts

Line 
1# $Id$
2
3PortSystem  1.0
4
5name        icewm
6version     1.2.31
7categories  x11 x11-wm
8maintainers nomaintainer@macports.org
9platforms   darwin
10
11description Lightweight window manager with a Windows or OS/2 look and feel
12long_description    Nice and fast window manager with the look and feel \
13            from Windows (95, 98) or OS/2 (Warp 3, Warp 4).
14
15homepage    http://www.icewm.org
16master_sites    http://downloads.sourceforge.net/icewm
17checksums   md5 aef471135eb0c6d69a30ef971c2f7412
18
19depends_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
23configure.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
29destroot {
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
38post-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
45if {[variant_isset gnome1]} {
46    variant_unset gnome2
47}
48if {[variant_isset gnome2]} {
49    variant_unset gnome1
50}
51
52variant lite description { Use the lightweight IceWM } {
53        configure.args-append  --enable-lite \
54                               --disable-xinerama --disable-xrandr
55}
56
57variant 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
63variant 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
69variant 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
75variant 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
81variant 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
88variant gnome1 conflicts gnome2 description { Use the GNOME menus with IceWM } {
89        configure.args-append  --enable-menus-gnome1
90}
91
92variant gnome2 conflicts gnome1 description { Use the KDE/GNOME2 menus with IceWM } {
93        configure.args-append  --enable-menus-gnome2
94}
95