aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/tm/Makefile
blob: afd14b43efb3d89cc5fbec13b5ee33a08252418f (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
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=   tm
PORTVERSION=    0.4.1
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://vicerveza.homeunix.net/~viric/soft/tm/ CENKES

MAINTAINER= ports@FreeBSD.org
COMMENT=    Terminal mixer

LICENSE=    GPLv2

DOCS=       ChangeLog DOCS index.html
MAKE_ENV=   LINUX_LIBS=-lutil

OPTIONS_DEFINE= DOCS

post-extract:
    @${MV} ${WRKSRC}/web/index.html ${WRKSRC}/

post-patch:
    @${REINPLACE_CMD} -e 's|$$^|$${.ALLSRC}|;/^GLIBCFLAGS/d;/^CFLAGS/d;\
        /^CC/d;/^ifeq/,/^endif/d' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|pty.h|libutil.h|' ${WRKSRC}/app_term.c
    @${ECHO_CMD} '#include <string.h>' >> ${WRKSRC}/main.h

.include <bsd.port.options.mk>

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>