summaryrefslogtreecommitdiff
path: root/print/cups/Makefile
blob: 5bc140aacaedda9d5b932885d4fd923475201330 (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
38
39
# $NetBSD: Makefile,v 1.3 2000/02/09 20:20:57 tron Exp $
#

DISTNAME=	cups-1.0.2-source
PKGNAME=	${DISTNAME:S/-source//}
VERS=		${PKGNAME:S/cups-//}
WRKSRC=		${WRKDIR}/${PKGNAME}
CATEGORIES=	print
MASTER_SITES=	ftp://ftp.easysw.com/pub/cups/${VERS}/ \
		ftp://ftp2.easysw.com/pub/cups/${VERS}/ \
		ftp://ftp.northamerica.net/pub/ESP/cups/${VERS}/ \
		ftp://ftp.funet.fi/mirrors/ftp.easysw.com/pub/cups/${VERS}/ \
		ftp://ftp.fisek.com.tr/pub/cups/${VERS}/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	jlam@netbsd.org
HOMEPAGE=	http://www.cups.org/

DEPENDS+=	jpeg-6b:../../graphics/jpeg
DEPENDS+=	png>=1.0.3:../../graphics/png
DEPENDS+=	tiff-*:../../graphics/tiff

USE_LIBTOOL=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}"

CPPFLAGS+=	-I${LOCALBASE}/include

post-install:
.for DIR in interfaces logs ppd requests
	${TOUCH} /var/cups/${DIR}/.directory
.endfor
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cups
	cd ${WRKSRC}/conf; ${INSTALL_DATA} classes.conf cupsd.conf \
		cupsd.conf-personal cupsd.conf-professional mime.convs \
		mime.types printcap printers.conf \
		${PREFIX}/share/examples/cups

.include "../../mk/bsd.pkg.mk"