diff options
Diffstat (limited to 'graphics/djvulibre/Makefile')
-rw-r--r-- | graphics/djvulibre/Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/graphics/djvulibre/Makefile b/graphics/djvulibre/Makefile index 3e7548ea0263..4d2a06cd5b6f 100644 --- a/graphics/djvulibre/Makefile +++ b/graphics/djvulibre/Makefile @@ -3,6 +3,7 @@ PORTNAME= djvulibre PORTVERSION= 3.5.27 +PORTREVISION= 1 CATEGORIES= graphics www MASTER_SITES= SF/djvu/DjVuLibre/${PORTVERSION} @@ -12,7 +13,6 @@ COMMENT= DjVu base libraries and utilities LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= rsvg-convert:graphics/librsvg2 LIB_DEPENDS= libtiff.so:graphics/tiff INSTALL_TARGET= install-strip @@ -23,19 +23,23 @@ CONFIGURE_ENV= JPEG_CFLAGS="-I${LOCALBASE}/include" \ TIFF_CFLAGS="-I${LOCALBASE}/include" \ TIFF_LIBS="-L${LOCALBASE}/lib -ltiff" LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} -USES= cpe gmake iconv jpeg libtool shared-mime-info +USES= cpe gmake iconv jpeg libtool CPE_VENDOR= djvulibre_project USE_LDCONFIG= yes -INSTALLS_ICONS= yes CONFLICTS= djvulibre-nox11-3* PORTDOCS= *.djvu *.pdf *.txt -OPTIONS_DEFINE= DOCS ANY2DJVU +OPTIONS_DEFINE= DESKTOPFILES DOCS ANY2DJVU +OPTIONS_DEFAULT= DESKTOPFILES OPTIONS_SUB= yes ANY2DJVU_DESC= Install any2djvu script (requires curl) ANY2DJVU_RUN_DEPENDS= curl:ftp/curl +DESKTOPFILES_DESC= Install icons and mime types +DESKTOPFILES_CONFIGURE_ENABLE= desktopfiles +DESKTOPFILES_USES= shared-mime-info +DESKTOPFILES_VARS= INSTALLS_ICONS=yes post-patch: # Remove custom optimization compiler flags @@ -52,6 +56,11 @@ post-patch-ANY2DJVU-off: @${REINPLACE_CMD} -e 's/any2djvu // ; s/any2djvu\.1 //' \ ${WRKSRC}/tools/Makefile.in +post-patch-DESKTOPFILES-on: +# Use prebuilt icons, without using conversion tool + @${SED} -i.c.bak -e 's/conversion_tool=[[:alpha:]]*/conversion_tool=no/' \ + ${WRKSRC}/configure + post-install-DOCS-on: (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) |