2001-03-10 18:56:51 +00:00
|
|
|
# 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
|
2005-01-08 15:08:19 +00:00
|
|
|
PORTVERSION= 3.1
|
|
|
|
PORTEPOCH= 1
|
2005-01-10 09:03:18 +00:00
|
|
|
PORTREVISION= 1
|
2001-03-10 18:56:51 +00:00
|
|
|
CATEGORIES= mail
|
2005-02-28 02:11:35 +00:00
|
|
|
MASTER_SITES= http://ufm.kgb.ru/files/ \
|
|
|
|
http://forsite.ibch.ru/ports/
|
2005-01-08 15:08:19 +00:00
|
|
|
DISTNAME= ftr${PORTVERSION:S/.//g}sr
|
2001-03-10 18:56:51 +00:00
|
|
|
|
2005-01-08 15:08:19 +00:00
|
|
|
MAINTAINER= forsite@spamtest.ru
|
2003-02-21 12:51:06 +00:00
|
|
|
COMMENT= FTN Messages tracker
|
2001-03-10 18:56:51 +00:00
|
|
|
|
2003-10-29 08:59:23 +00:00
|
|
|
LIB_DEPENDS= smapi.2:${PORTSDIR}/news/husky-smapi
|
2001-03-10 18:56:51 +00:00
|
|
|
|
|
|
|
USE_ZIP= yes
|
2002-11-04 02:35:01 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-03-10 18:56:51 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
ALL_TARGET= ftrack
|
|
|
|
MAKEFILE= ${WRKSRC}/MakeFiles/FreeBSD/Makefile
|
|
|
|
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
|
2004-09-27 18:17:09 +00:00
|
|
|
USE_GCC= 2.95
|
2005-01-08 15:08:19 +00:00
|
|
|
USE_PERL5= yes
|
2001-03-10 18:56:51 +00:00
|
|
|
|
2004-09-27 18:17:09 +00:00
|
|
|
PORTDOCS= ftrack.faq readme report.err
|
2004-09-18 17:49:31 +00:00
|
|
|
|
2005-07-20 23:50:35 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 504001
|
|
|
|
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
|
|
|
.endif
|
|
|
|
|
2001-03-10 18:56:51 +00:00
|
|
|
pre-patch:
|
2002-11-04 02:35:01 +00:00
|
|
|
${REINPLACE_CMD} -e "s@-I../../hpp -I../../.. -O3@-Ihpp -I${LOCALBASE}/include ${CFLAGS}@g; \
|
2001-03-10 18:56:51 +00:00
|
|
|
s@../../src/@src/@g; s@g\+\+@${CC}@g; \
|
2005-01-08 15:08:19 +00:00
|
|
|
s@-L../../../smapi -lsmapibsd@-L${LOCALBASE}/lib -lsmapi@g" ${WRKSRC}/MakeFiles/FreeBSD/Makefile
|
2005-01-10 09:03:18 +00:00
|
|
|
${REINPLACE_CMD} -e "s@ftrack.cfg@${PREFIX}/etc/ftrack/ftrack.cfg@g" ${WRKSRC}/hpp/constant.hpp
|
2001-03-10 18:56:51 +00:00
|
|
|
.for DIR in MakeFiles/FreeBSD src hpp doc/eng samples/tpl
|
2002-11-05 00:41:28 +00:00
|
|
|
for FILE in ${WRKSRC}/${DIR}/*; do \
|
|
|
|
${TR} -d '\015' < $${FILE} > $${FILE}.new; \
|
|
|
|
${MV} $${FILE}.new $${FILE}; \
|
|
|
|
done
|
2001-03-10 18:56:51 +00:00
|
|
|
.endfor
|
2005-01-08 15:08:19 +00:00
|
|
|
.for DIR in hpp src
|
|
|
|
for FILE in ${WRKSRC}/${DIR}/*; do \
|
|
|
|
${MV} $${FILE} `${ECHO} $${FILE} | ${TR} "[:upper:]" "[:lower:]"`; \
|
|
|
|
done
|
|
|
|
.endfor
|
2001-03-10 18:56:51 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${CP} ${WRKSRC}/MakeFiles/FreeBSD/Makefile ${WRKSRC}
|
|
|
|
|
|
|
|
do-install:
|
2005-01-08 15:08:19 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ftrack ${PREFIX}/bin
|
2001-03-10 18:56:51 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/ftrack
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/node.cfg ${PREFIX}/etc/ftrack/ftrack.cfg-dist
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/tpl/* ${PREFIX}/etc/ftrack
|
|
|
|
.for FILE in alt2koi.tbl koi2alt.tbl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/${FILE} ${PREFIX}/etc/ftrack
|
|
|
|
.endfor
|
2004-09-27 18:17:09 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/eng/* ${DOCSDIR}
|
|
|
|
.endif
|
2001-03-10 18:56:51 +00:00
|
|
|
|
2005-07-20 23:50:35 +00:00
|
|
|
.include <bsd.port.post.mk>
|