aboutsummaryrefslogtreecommitdiff
path: root/print/cupsddk/Makefile
blob: 54c2b464902597505d6c687113cde4417bf859cf (plain) (blame)
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
38
39
40
41
42
43
# New ports collection makefile for:	cupsddk
# Date created:		2007-07-04
# Whom:			Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#    $MCom: ports-stable/print/cupsddk/Makefile,v 1.1 2007/12/02 18:35:31 ahze Exp $

PORTNAME=	cupsddk
PORTVERSION=	1.2.3
PORTREVISION=	2
CATEGORIES=	print devel
MASTER_SITES=	EASYSW
MASTER_SITE_SUBDIR=	${PORTNAME}/${DISTVERSION}
DISTNAME=	${PORTNAME}-${DISTVERSION}-source

MAINTAINER=	ahze@FreeBSD.org
COMMENT=	CUPS Driver Development Kit

LIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk \
		cupsimage.2:${PORTSDIR}/print/cups-image

WRKSRC=	${WRKDIR}/${PORTNAME}-${DISTVERSION}
GNU_CONFIGURE=	yes
USE_GMAKE=	yes

MAN1=	commandtoescpx.1 commandtopclx.1 cupsprofile.1 ppdc.1 ppdhtml.1 \
	ppdi.1 ppdmerge.1 ppdpo.1 rastertoescpx.1 rastertopclx.1
MAN5=	ppdcfile.5

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-debug
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|/cupsprofile.ppm|${DATADIR:S,${PREFIX}/share,,}/cupsprofile.ppm|' \
		${WRKSRC}/cups/cupsprofile.c
	@${REINPLACE_CMD} -e 's|ln -s|${LN} -sf|' \
		${WRKSRC}/Makedefs.in

post-install:
	@${INSTALL_DATA} ${WRKSRC}/cups/cupsprofile.ppm ${DATADIR}

.include <bsd.port.mk>