aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-06-15 00:26:47 +0800
committerbsam <bsam@FreeBSD.org>2013-06-15 00:26:47 +0800
commit2dc695ced7b6b6ece82effe719272f21f64e4266 (patch)
tree490dbc9552b0393aea34021c4a48e2ebdd310f10 /sysutils
parentc38bbb2f18c8823a9d24e069e1e3df47c2253e5f (diff)
downloadfreebsd-ports-gnome-2dc695ced7b6b6ece82effe719272f21f64e4266.tar.gz
freebsd-ports-gnome-2dc695ced7b6b6ece82effe719272f21f64e4266.tar.zst
freebsd-ports-gnome-2dc695ced7b6b6ece82effe719272f21f64e4266.zip
. add LICENSE=GPLv2;
. bump PORTREVISION; . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . trim Makefile headers.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/tm/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/sysutils/tm/Makefile b/sysutils/tm/Makefile
index 3aea2c63c913..72703c0f3d9d 100644
--- a/sysutils/tm/Makefile
+++ b/sysutils/tm/Makefile
@@ -1,22 +1,23 @@
-# New ports collection makefile for: tm
-# Date created: 18 December 2007
-# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
-#
+# 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
+
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= ChangeLog DOCS index.html
MAKE_ENV= LINUX_LIBS=-lutil
+OPTIONS_DEFINE= DOCS
+
post-extract:
@${MV} ${WRKSRC}/web/index.html ${WRKSRC}/
@@ -26,11 +27,13 @@ post-patch:
@${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} ${PREFIX}/bin/
-.ifndef NOPORTDOCS
- @${INSTALL} -d ${DOCSDIR}/
- @cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>