aboutsummaryrefslogtreecommitdiffstats
path: root/net/smbfs/Makefile
blob: 9766e1a48ca6ff9a5633678bf8cf71abc4e40907 (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:    smbfs
# Date created:             2th Dec 2000
# Whom:                 Jaedoc Lee <tokky@fdns.org>
#
# $FreeBSD$
#

PORTNAME=   smbfs
PORTVERSION=    1.3.3
CATEGORIES= net
MASTER_SITES=   ftp://ftp.butya.kz/pub/smbfs/

MAINTAINER= tokky@fdns.org

.if defined(WITH_ICONV)
pre-fetch:
    @${ECHO}
    @${ECHO} "Using iconv library"
    @${ECHO}

LIB_DEPENDS= iconv.2:${PORTSDIR}/converters/iconv

post-configure:
    @${SED} -e 's/# USE_ICONV=yes/USE_ICONV=yes/g' < ${WRKSRC}/config.mk.in > ${WRKSRC}/config.mk
.else
pre-fetch:
    @${ECHO}
    @${ECHO} "Not Using iconv library"
    @${ECHO}
    @${ECHO} "You may set iconv library (make WITH_ICONV=yes)"
    @${ECHO} "to compile smbfs with the supplied iconv."
    @${ECHO}

post-configure:
    @${CP} ${WRKSRC}/config.mk.in ${WRKSRC}/config.mk
.endif

post-install:
    cd ${WRKSRC} && make makedev
    @${INSTALL_DATA} ${WRKSRC}/examples/dot.nsmbrc ${LOCALBASE}/etc/nsmb.conf.sample
    @${INSTALL_SCRIPT} ${WRKSRC}/examples/smbfs.sh.sample ${LOCALBASE}/etc/rc.d/smbfs.sh.sample

.include <bsd.port.mk>