Ticket #2843: Portfile.diff

File Portfile.diff, 865 bytes (added by markd@…, 18 years ago)

Portfile diff

  • Portfile

    old new  
    2424}
    2525#use_xmkmf      yes
    2626configure {
    27         system "cd ${worksrcpath} && imake -DUseInstalled -I/usr/X11R6/lib/X11/config -T../../files/Port.tmpl"
     27        system "cd ${worksrcpath} && imake -DUseInstalled -I/usr/X11R6/lib/X11/config -T ${portpath}/${filesdir}/Port.tmpl"
    2828}
    2929pre-destroot {
    3030        # XXX
    3131        # need X11-in-prefix mtree
    32         system "mkdir -p ${destroot}${prefix}/lib/X11/app-defaults"
     32        xinstall -d -m 755 ${destroot}${prefix}/etc/X11/app-defaults
     33
     34        reinplace "s|XAPPLOADDIR = \$(LIBDIR)/app-defaults|XAPPLOADDIR = ${prefix}/etc/X11/app-defaults|g" \
     35                "${worksrcpath}/Makefile"
     36
    3337}
    3438destroot.destdir        DESTDIR=${destroot} prefix=${prefix}
    3539build.args      prefix=${prefix} JPEG_INCLUDES=-I${prefix}/include JPEG_LDFLAGS=-L${prefix}/lib