summaryrefslogtreecommitdiffstats
path: root/comms/smstools/Makefile
blob: ec419afe7bec4130e44c0aede602f17ebb73e374 (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
40
# New ports collection makefile for:   	smstools
# Date created:                        	06-11-2004
# Whom:                                	Benny Kjaergaard <bennyk@wax.dk>
#
# $FreeBSD$
#

PORTNAME=	smstools
PORTVERSION=	1.14.11
CATEGORIES=	comms
MASTER_SITES=	http://mirrors.catpipe.net/smstools/

MAINTAINER=	bennyk@wax.dk
COMMENT=	Tools to handle Short Message Service

LIB_DEPENDS=	mm:${PORTSDIR}/devel/mm

WRKSRC=		${WRKDIR}/smstools
USE_GMAKE=	yes
USE_REINPLACE=	yes

post-patch:
	echo "${EXAMPLESDIR}"
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
		${WRKSRC}/src/smsd_cfg.c \
		${WRKSRC}/install.sub \
		${WRKSRC}/Makefile \
		${WRKSRC}/examples/smsd.conf.easy \
		${WRKSRC}/examples/smsd.conf.full \
		${WRKSRC}/bin/sms
	@${REINPLACE_CMD} -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \
		${WRKSRC}/install.sub

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${CP} -Rfv ${WRKSRC}/doc/* ${DOCSDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud