freebsd-ports/graphics/zathura-pdf-mupdf/Makefile
2021-04-06 16:31:07 +02:00

43 lines
1.3 KiB
Makefile

# Created by: Zsolt Udvari <udvzsolt@gmail.com>
PORTNAME= zathura-pdf-mupdf
DISTVERSION= 0.3.5
PORTREVISION= 12
CATEGORIES= graphics
MASTER_SITES= https://git.pwmt.org/pwmt/${PORTNAME}/-/archive/${DISTVERSION}/ \
http://freebsd.uzsolt.hu/src/
MAINTAINER= uzsolt@uzsolt.hu
COMMENT= MuPDF render PDF plugin for Zathura PDF viewer
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= zathura:graphics/zathura
RUN_DEPENDS= zathura:graphics/zathura
LIB_DEPENDS= libjbig2dec.so:graphics/jbig2dec \
libfreetype.so:print/freetype2 \
libgirara-gtk3.so:x11-toolkits/girara \
libharfbuzz.so:print/harfbuzz \
libmupdf.so:graphics/mupdf \
libopenjp2.so:graphics/openjpeg
USES= compiler:c11 desktop-file-utils gnome jpeg \
meson pkgconfig tar:xz
USE_GNOME= cairo gdkpixbuf2 glib20 gtk30
MESON_ARGS= -Dlink-external=true
PLIST_FILES= lib/zathura/libpdf-mupdf.so \
share/applications/org.pwmt.zathura-pdf-mupdf.desktop \
share/metainfo/org.pwmt.zathura-pdf-mupdf.metainfo.xml
CONFLICTS_INSTALL= zathura-pdf-poppler-[0-9]*
post-patch:
${REINPLACE_CMD} "s@\(cc.find_library(.*\))@\1,dirs:'${PREFIX}/lib')@" \
${WRKSRC}/meson.build
${REINPLACE_CMD} "s@join_paths(datadir, \
'metainfo')@join_paths(datadir, 'appdata')@" ${WRKSRC}/meson.build
.include <bsd.port.mk>