aboutsummaryrefslogtreecommitdiffstats
path: root/print/cups-samba/Makefile
blob: 11c191e993dfa11c121b80408b491199bda27349 (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
44
45
46
# ex:ts=8   -*-mode: makefile-*-
#
# New ports collection makefile for:    cups-samba
# Date created:     2004-02-10
# Whom:         John Merryweather Cooper <coop9211@uidaho.edu>
#
# $FreeBSD$
#

PORTNAME=   cups-samba
PORTVERSION=    5.0.r3
CATEGORIES= print net
MASTER_SITES=   ftp://ftp.easysw.com/pub/cups/windows/ \
        ftp://ftp2.easysw.com/pub/cups/windows/ \
        ftp://ftp3.easysw.com/pub/cups/windows/
DISTNAME=   ${PORTNAME}-5.0rc3

MAINTAINER= ports@FreeBSD.org
COMMENT=    The Common UNIX Printing System:  MS Windows client drivers

BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash2 \
        tardy:${PORTSDIR}/archivers/tardy \
        ${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base \
        smbspool:${PORTSDIR}/net/samba
RUN_DEPENDS=    smbspool:${PORTSDIR}/net/samba \
        ${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base \
        espgs:${PORTSDIR}/print/cups-pstoraster

NO_BUILD=   yes
NO_WRKSUBDIR=   yes
SH=     ${LOCALBASE}/bin/bash

post-patch:
    @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
        -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
        -e 's|%%TARDY%%|${LOCALBASE}/bin/tardy|g' \
        ${WRKSRC}/cups-samba.install \
        ${WRKSRC}/cups-samba.remove

do-install:
    cd ${WRKSRC} && ${SH} ${WRKSRC}/cups-samba.install now

post-install:
    @${CAT} ${PKGMESSAGE} | ${SED} 's|%%PREFIX%%|${PREFIX}|g'

.include <bsd.port.mk>