summaryrefslogtreecommitdiff
path: root/print/cups-samba/Makefile
blob: 4acbb478e998072cb9c4ecf9ea620d34e371234f (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
# Created by: John Merryweather Cooper <coop9211@uidaho.edu>
# $FreeBSD$

PORTNAME=	cups-samba
PORTVERSION=	6.0
PORTREVISION=	7
CATEGORIES=	print net
MASTER_SITES=	${MASTER_SITE_EASYSW}
MASTER_SITE_SUBDIR=cups/windows
DISTNAME=	cups-windows-${PORTVERSION}-source

MAINTAINER=	mwisnicki+freebsd@gmail.com
COMMENT=	The Common UNIX Printing System:  MS Windows client drivers

RUN_DEPENDS=	smbspool:${PORTSDIR}/${SAMBA_PORT} \
		${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base

SAMBA_PORT?=	net/samba36

NO_BUILD=	yes
NO_WRKSUBDIR=	yes

DATADIR=	${PREFIX}/share/cups
DRIVER_FILES=	cups6.inf cups6.ini cupsps6.dll cupsui6.dll

SUB_FILES=	pkg-message

NO_STAGE=	yes
pre-install:
	${MKDIR} ${DATADIR}/drivers

do-install:
	cd ${WRKSRC} && \
	for DRVFILE in ${DRIVER_FILES}; do \
		${INSTALL_DATA} ${WRKSRC}/cups-windows-${PORTVERSION}/i386/$${DRVFILE} ${DATADIR}/drivers; \
	done

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>