summaryrefslogtreecommitdiffstats
path: root/print/pdfcolorsplit/Makefile
blob: 27f85a1b1e06fd8504b504d7d55bc26a0937c17a (plain)
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
# Created by: Aldis Berjoza <aldis@bsdroot.lv>
# $FreeBSD$

PORTNAME=	pdfcolorsplit
PORTVERSION=	2011.08.26
PORTREVISION=	2
CATEGORIES=	print python
MASTER_SITES=	http://files.bsdroot.lv/my/FreeBSD/distfiles/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	graudeejs@gmail.com
COMMENT=	Split your pdf into 2 pdf, color and bw, for printing

LICENSE=	GPLv2

RUN_DEPENDS=	pdftk:${PORTSDIR}/print/pdftk \
		${LOCALBASE}/libexec/xpdf/pdftoppm:${PORTSDIR}/graphics/xpdf

USE_GHOSTSCRIPT_RUN=	yes
USE_PYTHON=	yes
USE_XZ=		yes

PLIST_FILES=	bin/${PORTNAME}

NO_BUILD=	yes
NO_WRKSUBDIR=	yes

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e '/os\.system/s|pdftoppm|${LOCALBASE}/libexec/xpdf/pdftoppm|g' ${WRKSRC}/${PORTNAME}

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud