summaryrefslogblamecommitdiff
path: root/sysutils/tm/Makefile
blob: 181d27f4d681e3aa6683d802fa5a3f303df5a6f0 (plain) (tree)



































                                                                            
# New ports collection makefile for:	tm
# Date created:		18 December 2007
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

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

MAINTAINER=	infofarmer@FreeBSD.org
COMMENT=	Terminal mixer

PLIST_FILES=	bin/${PORTNAME}
PORTDOCS=	ChangeLog DOCS index.html
MAKE_ENV=	LINUX_LIBS=-lutil

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

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
.ifndef NOPORTDOCS
	@${INSTALL} -d ${DOCSDIR}/
	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

.include <bsd.port.mk>