blob: 40333d93a41794b7f3f13a6b7f70cb25c32fa4cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Created by: Zsolt Udvari <udvzsolt@gmail.com>
# $FreeBSD$
PORTNAME= zathura-pdf-mupdf
DISTVERSION= 0.3.4
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= https://pwmt.org/projects/zathura-pdf-mupdf/download/ \
http://www.madpilot.net/~mad/pwmt.org/
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
USE_LDCONFIG= yes
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>
|