aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/tty-clock/Makefile39
-rw-r--r--sysutils/tty-clock/distinfo2
-rw-r--r--sysutils/tty-clock/pkg-descr3
4 files changed, 45 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 44c3ae9e3001..56c4a5cf9aaa 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -888,6 +888,7 @@
SUBDIR += tren
SUBDIR += ts
SUBDIR += tss
+ SUBDIR += tty-clock
SUBDIR += ttyload
SUBDIR += tw_cli
SUBDIR += ua
diff --git a/sysutils/tty-clock/Makefile b/sysutils/tty-clock/Makefile
new file mode 100644
index 000000000000..d4397753b1fe
--- /dev/null
+++ b/sysutils/tty-clock/Makefile
@@ -0,0 +1,39 @@
+# Ports collection makefile for: tty-clock
+# Date created: 15 July 2010
+# Whom: Eric Freeman <freebsdports@chillibear.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tty-clock
+PORTVERSION= 2.0.0
+CATEGORIES= sysutils
+MASTER_SITES= http://github.com/xorg62/${PORTNAME}/tarball/
+DISTNAME= a82fd71
+EXTRACT_SUFX= # none
+
+MAINTAINER= freebsdports@chillibear.com
+COMMENT= Terminal based clock
+
+FETCH_ARGS= -pRr
+WRKSRC= "${WRKDIR}/xorg62-${PORTNAME}-${DISTNAME}"
+PLIST_FILES= bin/tty-clock
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}/|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS \+=|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|LDFLAGS =|LDFLAGS \+=|' ${WRKSRC}/Makefile
+
+do-build:
+ cd ${WRKSRC} && ${MAKE}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tty-clock ${PREFIX}/bin
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 900007
+BROKEN= Core dumps on FreeBSD 9+
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/tty-clock/distinfo b/sysutils/tty-clock/distinfo
new file mode 100644
index 000000000000..9b6e9b353968
--- /dev/null
+++ b/sysutils/tty-clock/distinfo
@@ -0,0 +1,2 @@
+SHA256 (a82fd71) = 80fb9df9d257c73669c9363bc84823d9c42033e39f499d52abd74a698a4e5866
+SIZE (a82fd71) = 5033
diff --git a/sysutils/tty-clock/pkg-descr b/sysutils/tty-clock/pkg-descr
new file mode 100644
index 000000000000..68e387b000ef
--- /dev/null
+++ b/sysutils/tty-clock/pkg-descr
@@ -0,0 +1,3 @@
+Terminal based clock using ncurses.
+
+WWW: http://github.com/xorg62/tty-clock/