aboutsummaryrefslogtreecommitdiffstats
path: root/polish/sms/Makefile
blob: a6842d3bdb1d84a00ae5d434b51614e59eb31f19 (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
47
48
# Ports collection makefile for: sms
# Date created:     23 dec 2001
# Whom:         Michal Pasternak <doc@lublin.t1.pl>
#
# $FreeBSD$
#

PORTNAME=   sms
PORTVERSION=    1.9.2m
CATEGORIES= polish
MASTER_SITES=   http://www.ceti.pl/~miki/komputery/download/sms/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Send SMS to cellular phones in Poland (Idea, ERA, Plus)

WRKSRC= ${WRKDIR}/sms
USE_GMAKE=  yes
USE_REINPLACE=  yes
REINPLACE_ARGS= -i ""
MAKE_ARGS=  CXX="${CXX}"

.if defined(NOPORTDOCS)
MAKE_ARGS+= NOPORTDOCS=1
.endif

.if defined(WITHOUT_ADDRESSBOOK)
EXTRA_PATCHES+= ${FILESDIR}/noaddressbook.patch
.else
LIB_DEPENDS+=   gdbm.3:${PORTSDIR}/databases/gdbm
.endif

MAN1=       sms.1 smsaddr.1
MAN5=       smsrc.5

post-extract:
    @${FIND} ${WRKSRC} -name CVS | ${XARGS} -n 1 ${RM} -r

post-patch:
    @${REINPLACE_CMD} -e 's,/etc/smsrc,${PREFIX}/etc/smsrc,' \
        ${WRKSRC}/sms.h \
        ${WRKSRC}/README.smsrc
    @${REINPLACE_CMD} -e 's,bash,sh,' \
        ${WRKSRC}/contrib/sms-conf

post-install:
         ${STRIP_CMD} ${PREFIX}/bin/sms

.include <bsd.port.mk>