# $OpenBSD: Makefile,v 1.21 2021/02/23 19:39:36 sthen Exp $

COMMENT =		stylish PDF presentation generator

MODPY_EGG_VERSION =	0.11.1
DISTNAME =		Impressive-${MODPY_EGG_VERSION}
PKGNAME =		impressive-${MODPY_EGG_VERSION}
REVISION =		1

CATEGORIES =		productivity
HOMEPAGE =		http://impressive.sourceforge.net/
MASTER_SITES =		${MASTER_SITE_SOURCEFORGE:=impressive/}

# GPLv2 only
PERMIT_PACKAGE =	Yes

MODULES =		lang/python
MODPY_VERSION =	${MODPY_DEFAULT_VERSION_2}
NO_BUILD =		Yes
NO_TEST =		Yes

RUN_DEPENDS =		devel/pygame \
			devel/xdg-utils \
			graphics/py2-Pillow \
			graphics/py-opengl \
			print/poppler,-utils \
			textproc/pdftk

MODPY_ADJ_FILES =	impressive.py

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/impressive.py ${PREFIX}/bin/impressive
	${INSTALL_MAN} ${WRKSRC}/impressive.1 ${PREFIX}/man/man1/impressive.1
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/impressive
	${INSTALL_DATA} ${WRKSRC}/demo.pdf ${PREFIX}/share/examples/impressive/

.include <bsd.port.mk>
