blob: 3fde4bc43d983a632b911536a073cd24c9d95c3c (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Created by: Quentin Stievenart <acieroid@awesom.eu>
# $FreeBSD$
PORTNAME= zathura
PORTVERSION= 0.3.6
PORTREVISION= 2
CATEGORIES= graphics print
MASTER_SITES= http://pwmt.org/projects/zathura/download/
MAINTAINER= quentin.stievenart@gmail.com
COMMENT= Customizable lightweight pdf viewer
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcairo.so:graphics/cairo \
libgirara-gtk3.so:x11-toolkits/girara \
libsynctex.so:devel/tex-synctex
BUILD_DEPENDS+= rst2html:textproc/py-docutils
USE_GNOME= glib20 gtk30 gdkpixbuf2
USES= compiler:c11 gmake pkgconfig
MAKE_ENV= SFLAGS="${STRIP}" \
RSTTOMAN=${LOCALBASE}/bin/rst2man \
ZLIB_INC= \
ZLIB_LIB=-lz \
WITH_SYNCTEX=1
CPPFLAGS+= -DWITH_SYNCTEX
OPTIONS_DEFINE= NLS SQLITE
OPTIONS_SUB= yes
SQLITE_LIB_DEPENDS= libsqlite3.so:databases/sqlite3
SQLITE_MAKE_ENV= WITH_SQLITE=1
SQLITE_MAKE_ENV_OFF= WITH_SQLITE=0
NLS_USES= gettext
post-patch: .SILENT
${REINPLACE_CMD} -e 's|man[15]|man/&|g' \
-e 's|$${LIBDIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|g'\
${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's|PLUGINDIR ?= .*$$|PLUGINDIR ?= ${PREFIX}/lib/zathura|'\
${WRKSRC}/config.mk
${REINPLACE_CMD} -e '/^CC /d'\
${WRKSRC}/colors.mk
${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \
-e 's/-lc//' \
-e 's/DL_LIB /#&/' \
${WRKSRC}/config.mk
${REINPLACE_CMD} -e 's|/etc|${PREFIX}&|g' \
${WRKSRC}/zathura/config.h \
${WRKSRC}/doc/man/zathurarc.5.rst
(cd ${WRKSRC}; ${RM} zathura.1 zathurarc.5)
post-patch-NLS-off: .SILENT
${REINPLACE_CMD} -e '/-C po/d'\
${WRKSRC}/Makefile
.include <bsd.port.mk>
|