summaryrefslogtreecommitdiff
path: root/print/photoprint/Makefile
blob: 27f23c73efe7f4ac950944dd18e85e42e2a09c9b (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
36
37
# $FreeBSD$

PORTNAME=	photoprint
DISTVERSION=	0.4.2-pre2
PORTREVISION=	8
CATEGORIES=	print graphics
MASTER_SITES=	http://www.blackfiveimaging.co.uk/photoprint/

MAINTAINER=	bsam@FreeBSD.org
COMMENT=	Utility to print multiple images per sheet

LICENSE=	GPLv2

LIB_DEPENDS=	libcups.so:print/cups \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libgutenprint.so:print/gutenprint \
		liblcms.so:graphics/lcms \
		libnetpbm.so:graphics/netpbm \
		libpng.so:graphics/png \
		libtiff.so:graphics/tiff

GNU_CONFIGURE=	yes
USES=		compiler:c++11-lang desktop-file-utils gettext jpeg libtool localbase pkgconfig
USE_GNOME=	cairo gdkpixbuf2 gtk20
USE_XORG=	x11
USE_CXXSTD=	gnu++98
LIBS+=		-lX11
INSTALLS_ICONS=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|glib/gstrfuncs.h|glib.h|g' \
		${WRKSRC}/gp_cppsupport/gprinter.cpp
	@${REINPLACE_CMD} -e 's|cups/cups.h|cups/ppd.h|g' \
		${WRKSRC}/stp_support/printerqueues_unix.c

.include <bsd.port.mk>