1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/print/photoprint/Makefile
Boris Samorodov 5792844491 print/photoprint: Fix crashes with recent cups.
1. Finally I've found some spare time to diagnose and fix crashes:
include cups/ppd.h, not cups/cups.h at
stp_support/printerqueues_unix.c file.

2. While here: pet portlint,  add some dependencies.

Happy photoprinting!
2017-10-26 22:56:54 +00:00

39 lines
973 B
Makefile

# $FreeBSD$
PORTNAME= photoprint
DISTVERSION= 0.4.2-pre2
PORTREVISION= 7
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= desktop-file-utils gettext jpeg libtool pkgconfig
USE_GNOME= cairo gdkpixbuf2 gtk20
USE_XORG= x11
INSTALLS_ICONS= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lX11
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>