summaryrefslogtreecommitdiffstats
path: root/mail/ftrack/Makefile
blob: 3410cbd6963a05d7e801d8ff6b66bd28ec51b509 (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
41
42
43
44
45
46
# New ports collection makefile for:    ftrack
# Date created:         Thu Dec 21 14:20:49 MSK 2000
# Whom:                 Sergey Samoyloff <gonza@techline.ru>
#
# $FreeBSD$
#

PORTNAME=	ftrack
PORTVERSION=	3.01
CATEGORIES=	mail
MASTER_SITES=	http://gonza.bizhost.ru/ports/
DISTNAME=	ftr${PORTVERSION:S/.//g}s

MAINTAINER=	gonza@techline.ru

BUILD_DEPENDS=	${LOCALBASE}/lib/libsmapi.a:${PORTSDIR}/mail/smapi

USE_ZIP=	yes
USE_GMAKE=	yes
ALL_TARGET=	ftrack
MAKEFILE=	${WRKSRC}/MakeFiles/FreeBSD/Makefile
EXTRACT_AFTER_ARGS=	-d ${WRKSRC}

pre-patch:
	${PERL} -pi -e "s@-I../../hpp -I../../.. -O3@-Ihpp -I${LOCALBASE}/include ${CFLAGS}@g; \
			s@../../src/@src/@g; s@g\+\+@${CC}@g; \
			s@-L../smapi -lsmapibsd@-L${LOCALBASE}/lib -lsmapi@g" ${WRKSRC}/MakeFiles/FreeBSD/Makefile
.for DIR in MakeFiles/FreeBSD src hpp doc/eng samples/tpl
	${PERL} -pi -e 's!\r!!' ${WRKSRC}/${DIR}/*
.endfor

pre-configure:
	${CP} ${WRKSRC}/MakeFiles/FreeBSD/Makefile ${WRKSRC}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ftrack ${PREFIX}/sbin
	${MKDIR} ${PREFIX}/etc/ftrack
	${INSTALL_DATA} ${WRKSRC}/samples/node.cfg ${PREFIX}/etc/ftrack/ftrack.cfg-dist
	${MKDIR} ${PREFIX}/share/doc/ftrack
	${INSTALL_DATA} ${WRKSRC}/doc/eng/* ${PREFIX}/share/doc/ftrack
	${INSTALL_DATA} ${WRKSRC}/samples/tpl/* ${PREFIX}/etc/ftrack
.for FILE in alt2koi.tbl koi2alt.tbl
	${INSTALL_DATA} ${WRKSRC}/samples/${FILE} ${PREFIX}/etc/ftrack
.endfor

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