Ticket #32949: Portfile.patch

File Portfile.patch, 1.4 KB (added by neverpanic (Clemens Lang), 13 years ago)

Patch against the Portfile

  • Portfile

     
    3333    port:fontconfig \
    3434    port:freetype \
    3535    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    36     port:gtk2 \
    3736    port:libgsf \
    3837    port:libxml2 \
    3938    path:lib/pkgconfig/pango.pc:pango
     
    5352    lib/libpango-1.0.dylib \
    5453    lib/libxml2.dylib
    5554
     55configure.args \
     56    --disable-gtk-theme \
     57    --disable-gtk-doc
     58
     59# If we disable the gtk variant by default we can make this a dependency of
     60# gtk2, which is a good thing, because gtk2 requires librsvg to render svg
     61# icons.
     62variant gtk description {Build GTK+ theme engine and rsvg-view} {
     63    depends_lib-append \
     64        port:gtk2
     65    configure.args-delete \
     66        --disable-gtk-theme
     67    configure.args-append \
     68        --enable-gtk-theme
     69}
     70
     71# This allows us to build the documentation independently of gtk2. Remember it
     72# probably doesn't hurt you to enable this, if you're building with +gtk anyway,
     73# because you will have gtk-doc already installed.
     74variant doc description {Build HTML documentation with gtk-doc} {
     75    depends_build-append \
     76        port:gtk-doc
     77    configure.args-delete \
     78        --disable-gtk-doc
     79    configure.args-append \
     80        --enable-gtk-doc \
     81        --enable-gtk-doc-html
     82}
     83
    5684set buildpath   ${worksrcpath}/macports
    5785post-build {
    5886    xinstall -d ${buildpath}