Ticket #3516: Portfile.diff

File Portfile.diff, 1.3 KB (added by yves@…, 19 years ago)

Portfile rev 1 diff

  • Portfile

    old new  
    22PortSystem 1.0
    33name            windowmaker
    44version         0.91.0
     5revision        1
    56description     Window Maker is a X11 window manager supporting GNUstep
    67long_description        Window Maker is an X11 window manager originally \
    78                        designed to provide integration support for the \
     
    2829depends_lib     lib:libX11.6:XFree86 lib:libjpeg.62:jpeg lib:libpng.3:libpng \
    2930                lib:libtiff.3:tiff lib:libXft.2.1.2:Xft2
    3031use_bzip2       yes
    31 configure.args  --disable-locale --disable-debug --mandir=${prefix}/share/man
    32 
    33 post-destroot   { file delete -force ${destroot}${prefix}/share/WindowMaker/Icons/defaultAppIcon.tiff }
    3432
     33post-patch {
     34        cd ${worksrcpath}
     35        set fl [glob WindowMaker/*menu*]
     36        lappend fl WindowMaker/Defaults/WindowMaker.in WPrefs.app/Menu.c WPrefs.app/Paths.c
     37        foreach i $fl {
     38                reinplace "s|/usr/X11R6/share|${prefix}/share|g" $i
     39                reinplace "s|/usr/share|${prefix}/share|g" $i
     40                reinplace "s|/usr/local/share|${prefix}/share|g" $i
     41                reinplace "s|/opt/share|${prefix}/share|g" $i
     42                reinplace "s|/opt/kde2/share|${prefix}/share|g" $i
     43        }
     44}
     45configure.args  --disable-locale --disable-debug --mandir=${prefix}/share/man
    3546
    3647variant full {
    3748    depends_lib-append  lib:libungif.4:libungif