Ticket #12436: Portfile

File Portfile, 3.0 KB (added by lutz_mader@…, 17 years ago)

Portfile for icewm-1.2.31

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