aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/echat/Makefile
blob: bbaeaa7cdd7221d6a1f9c82314859c4f47361ccf (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
# Created by: SeaD
# $FreeBSD$

PORTNAME=   echat
DISTVERSION=    0.04beta1
CATEGORIES= net-im
MASTER_SITES=   http://echat.deep.perm.ru/files/

MAINTAINER= ports@FreeBSD.org
COMMENT=    LAN chat program over the TCP/IP networks

USES=       ncurses
MAKE_ARGS=  LIBS="${LDFLAGS} -lncurses"
SUB_FILES=  pkg-message

post-patch:
    @${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|g ; \
        s|PREFIX=|PREFIX?=|g ; s|CC=|CC?=|g; \
        \|^CFLAGS| { s|-g||; s|-O2||; } ; \
        \|CC|s|@||; \|install|s|-s|${STRIP}|; \
        s|PREFIX)|DESTDIR)$$(&|' ${WRKSRC}/Makefile

post-install:
    ${INSTALL_DATA} ${WRKSRC}/doc/.echatrc.sample \
        ${STAGEDIR}${PREFIX}/etc/echatrc.sample

.include <bsd.port.mk>