2013-01-13 00:09:01 +01:00
|
|
|
# Created by: Jan Henrik Sylvester <me@janh.de>
|
2011-02-01 10:13:17 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xournal
|
2015-03-05 00:31:24 +01:00
|
|
|
PORTVERSION= 0.4.8
|
2011-02-01 10:13:17 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= SF
|
|
|
|
|
|
|
|
MAINTAINER= me@janh.de
|
2013-12-27 19:22:55 +01:00
|
|
|
COMMENT= Notetaking application that can annotate PDFs
|
2011-02-01 10:13:17 +01:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-27 17:54:21 +01:00
|
|
|
LIB_DEPENDS= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib
|
2013-01-13 00:09:01 +01:00
|
|
|
|
2013-12-27 19:22:55 +01:00
|
|
|
USES= pkgconfig desktop-file-utils shared-mime-info
|
|
|
|
USE_GNOME= libgnomecanvas
|
2011-02-01 10:13:17 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --docdir="${DOCSDIR}"
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
INSTALL_TARGET= install desktop-install
|
|
|
|
|
2014-07-16 01:30:05 +02:00
|
|
|
OPTIONS_DEFINE= GHOSTSCRIPT DOCS
|
2013-01-13 00:09:01 +01:00
|
|
|
GHOSTSCRIPT_DESC= Install ghostscript (PS/PDF as bitmap bg)
|
|
|
|
OPTIONS_DEFAULT= GHOSTSCRIPT
|
2011-02-01 10:13:17 +01:00
|
|
|
|
2015-03-05 00:31:24 +01:00
|
|
|
PORTDOCS_MAIN= AUTHORS \
|
|
|
|
ChangeLog \
|
|
|
|
COPYING \
|
|
|
|
README
|
|
|
|
PORTDOCS= ${PORTDOCS_MAIN} \
|
|
|
|
html-doc/screenshot.png \
|
|
|
|
html-doc/manual.html \
|
|
|
|
html-doc/pixmaps/lightgreen.png \
|
|
|
|
html-doc/pixmaps/medium.png \
|
|
|
|
html-doc/pixmaps/ruler.png \
|
|
|
|
html-doc/pixmaps/green.png \
|
|
|
|
html-doc/pixmaps/magenta.png \
|
|
|
|
html-doc/pixmaps/default-pen.png \
|
|
|
|
html-doc/pixmaps/lasso.png \
|
|
|
|
html-doc/pixmaps/highlighter.png \
|
|
|
|
html-doc/pixmaps/red.png \
|
|
|
|
html-doc/pixmaps/hand.png \
|
|
|
|
html-doc/pixmaps/fullscreen.png \
|
|
|
|
html-doc/pixmaps/white.png \
|
|
|
|
html-doc/pixmaps/xoj.svg \
|
|
|
|
html-doc/pixmaps/pencil.png \
|
|
|
|
html-doc/pixmaps/rect-select.png \
|
|
|
|
html-doc/pixmaps/stretch.png \
|
|
|
|
html-doc/pixmaps/blue.png \
|
|
|
|
html-doc/pixmaps/lightblue.png \
|
|
|
|
html-doc/pixmaps/orange.png \
|
|
|
|
html-doc/pixmaps/yellow.png \
|
|
|
|
html-doc/pixmaps/gray.png \
|
|
|
|
html-doc/pixmaps/xournal.svg \
|
|
|
|
html-doc/pixmaps/xournal.png \
|
|
|
|
html-doc/pixmaps/thin.png \
|
|
|
|
html-doc/pixmaps/thick.png \
|
|
|
|
html-doc/pixmaps/eraser.png \
|
|
|
|
html-doc/pixmaps/recycled.png \
|
|
|
|
html-doc/pixmaps/shapes.png \
|
|
|
|
html-doc/pixmaps/black.png \
|
|
|
|
html-doc/pixmaps/text-tool.png
|
|
|
|
|
2013-01-13 00:09:01 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2011-02-01 10:13:17 +01:00
|
|
|
|
2013-01-13 00:09:01 +01:00
|
|
|
.if ${PORT_OPTIONS:MGHOSTSCRIPT}
|
2011-02-01 10:13:17 +01:00
|
|
|
USE_GHOSTSCRIPT_RUN= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|$$(DESTDIR)/usr/share/|$$(DESTDIR)$$$$desktopdir/|g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
2015-03-05 00:31:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS_MAIN:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html-doc
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} html-doc/ ${STAGEDIR}${DOCSDIR})
|
|
|
|
.endif
|
2011-02-01 10:13:17 +01:00
|
|
|
|
2013-01-13 00:09:01 +01:00
|
|
|
.include <bsd.port.mk>
|