| 1 | # $Id: Portfile 35535 2008-03-29 21:14:45Z gui_dos@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name poppler |
|---|
| 6 | version 0.8.0 |
|---|
| 7 | maintainers nomaintainer |
|---|
| 8 | categories graphics |
|---|
| 9 | platforms darwin |
|---|
| 10 | homepage http://${name}.freedesktop.org/ |
|---|
| 11 | |
|---|
| 12 | description Poppler is a PDF rendering library based on the xpdf-3.0 code base. |
|---|
| 13 | long_description \ |
|---|
| 14 | ${description} |
|---|
| 15 | |
|---|
| 16 | master_sites ${homepage} |
|---|
| 17 | checksums md5 1a3ea3000d3446a97366c37b876979f4 |
|---|
| 18 | depends_lib port:cairo port:gtk2 port:poppler-data |
|---|
| 19 | |
|---|
| 20 | post-patch { |
|---|
| 21 | reinplace "s|-flat_namespace -undefined suppress||g" \ |
|---|
| 22 | ${worksrcpath}/configure |
|---|
| 23 | reinplace "s|\$includedir|${prefix}/include|g" \ |
|---|
| 24 | ${worksrcpath}/configure |
|---|
| 25 | reinplace "s|tests||" \ |
|---|
| 26 | ${worksrcpath}/qt4/Makefile.in |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | configure.args --enable-xpdf-headers --enable-zlib --disable-poppler-qt4 --mandir=${prefix}/share/man |
|---|
| 30 | |
|---|
| 31 | variant quartz { |
|---|
| 32 | configure.args-append --disable-gtk-test --without-x |
|---|
| 33 | } |
|---|
| 34 | |
|---|