aboutsummaryrefslogtreecommitdiff
path: root/www/asterisk-gui/Makefile
blob: c058e0c6caee8848ef2ef210aa05586de3ad640e (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
# New ports collection makefile for:   asterisk-gui
# Date created:        31 Dec 2006
# Whom:                pneumann@gmail.com
#
# $FreeBSD$
#

PORTNAME=	asterisk-gui
PORTVERSION=	2.0.4
CATEGORIES=	www
MASTER_SITES=	http://downloads.digium.com/pub/telephony/asterisk-gui/releases/

MAINTAINER=	pneumann@gmail.com
COMMENT=	An asterisk ajax web manager

RUN_DEPENDS=	asterisk:${PORTSDIR}/net/asterisk \
		wget:${PORTSDIR}/ftp/wget

PROJECTHOST=	asterisk-bsd
USE_AUTOTOOLS=	autoconf:262 automake:19
USE_GMAKE=	yes
SUB_FILES=	pkg-message

post-patch:
	@${GREP} -Rl '/var/lib' ${WRKSRC} | \
		${XARGS} ${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g'
	@${GREP} -Rl '/etc' ${WRKSRC} | \
		${XARGS} ${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g'
	@${GREP} -Rl '/bin/grep' ${WRKSRC} | \
		${XARGS} ${REINPLACE_CMD} -e 's|/bin/grep|grep|g'
	@${GREP} -Rl 'bash' ${WRKSRC} | \
		${XARGS} ${REINPLACE_CMD} -e 's|bash|sh|g'

	@${FIND} ${WRKSRC} -name "*.orig" -o -name "*.bak" | ${XARGS} ${RM}

run-autotools:
	@(cd ${WRKSRC} && ./bootstrap.sh)

checkconfig:
	@cd ${WRKSRC} && ${GMAKE} checkconfig

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

.include <bsd.port.mk>