1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/graphics/zathura/Makefile
Tobias Kortkamp bea407b12e graphics/zathura: Update to 0.3.8
PR:		224712
Submitted by:	Zsolt Udvari <uzsolt@uzsolt.hu>
Approved by:	quentin.stievenart@gmail.com (maintainer)
2018-01-11 14:20:08 +00:00

61 lines
1.6 KiB
Makefile

# Created by: Quentin Stievenart <acieroid@awesom.eu>
# $FreeBSD$
PORTNAME= zathura
PORTVERSION= 0.3.8
CATEGORIES= graphics print
MASTER_SITES= https://pwmt.org/projects/zathura/download/ \
http://www.madpilot.net/~mad/pwmt.org/
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
USES= compiler:c11 gmake pathfix pkgconfig
USE_GNOME= glib20 gtk30 gdkpixbuf2
PATHFIX_MAKEFILEIN= Makefile
MAKE_ENV= SFLAGS="${STRIP}" \
RSTTOMAN=${LOCALBASE}/bin/rst2man \
WITH_SYNCTEX=1
MAKE_ARGS+= APPDATAPREFIX=${LOCALBASE}/share/appdata
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' \
${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's|PLUGINDIR ?= .*$$|PLUGINDIR ?= ${PREFIX}/lib/zathura|'\
${WRKSRC}/config.mk
${REINPLACE_CMD} -e '/^TPUT_AVAILABLE/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>