Ticket #12436: Portfile.3

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

forgot some code before...

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
45variant lite description { Use the lightweight IceWM } {
46        configure.args-append  --enable-lite \
47                               --disable-xinerama --disable-xrandr
48}
49
50variant xpm conflicts imlib description { Use Xpm for images } {
51        configure.args-delete  --with-imlib
52#        configure.args-append  --with-xpm
53        depends_lib-append     port:xpm
54}
55
56variant imlib conflicts xpm description { Use Imlib for images (does not work yet) } {
57        configure.args-delete  --with-xpm
58        configure.args-append  --with-imlib
59        depends_lib-append     port:imlib
60}
61
62variant nls description { Use internationalized messages (does not work correct yet) } {
63    configure.args-delete  --disable-i18n --disable-nls
64#    configure.args-append  --enable-i18n --enable-nls
65        depends_lib-append     port:gettext port:libiconv
66}
67
68variant debug description { Use this option if you want to debug IceWM } {
69        configure.args-delete  --disable-debug
70        configure.args-append  --enable-debug
71}
72
73# not tested: can't install esound, help2man
74variant esound description { Use sound support (untested) } {
75        configure.args-delete  --without-icesound
76        configure.args-append  --with-icesound=esound --enable-guievents
77        depends_lib-append     port:audiofile port:esound
78}
79
80# not tested, can't install gnome
81variant gnome1 conflicts gnome2 description { Use the GNOME menus with IceWM } {
82        configure.args-append  --enable-menus-gnome1
83}
84
85variant gnome2 conflicts gnome1 description { Use the KDE/GNOME2 menus with IceWM } {
86        configure.args-append  --enable-menus-gnome2
87}
88