aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-12-30 15:05:05 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-12-30 15:05:05 +0000
commita194c9df9d53e7eefaab7ade394676abfacd9ba2 (patch)
tree87ebe1a5e22d3b7bdd032ab2bc4f419cb92457f4 /misc
parenta90ca0f0b02c172cd10c0ad33c467880af503233 (diff)
downloadports-a194c9df9d53e7eefaab7ade394676abfacd9ba2.tar.gz
ports-a194c9df9d53e7eefaab7ade394676abfacd9ba2.zip
Notes
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile1
-rw-r--r--misc/sonytv/Makefile35
-rw-r--r--misc/sonytv/distinfo1
-rw-r--r--misc/sonytv/pkg-descr8
-rw-r--r--misc/sonytv/pkg-plist2
-rw-r--r--misc/sonytv/scripts/configure22
6 files changed, 69 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 90bcb75526d7..8cfa91be764a 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -325,6 +325,7 @@
SUBDIR += sls
SUBDIR += smssend
SUBDIR += snowflake
+ SUBDIR += sonytv
SUBDIR += spamcalc
SUBDIR += splitvt
SUBDIR += sshbuddy
diff --git a/misc/sonytv/Makefile b/misc/sonytv/Makefile
new file mode 100644
index 000000000000..7b452ad5d121
--- /dev/null
+++ b/misc/sonytv/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: sonytv
+# Date created: 21 June 2003
+# Whom: Eric P. Scott <eps+sonytv@ana.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sonytv
+PORTVERSION= 1.0
+CATEGORIES= misc tk83
+MASTER_SITES= http://tools.ana.com/demos/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Sony-compatible TV remote
+
+RUN_DEPENDS= wish8.3:${PORTSDIR}/x11-toolkits/tk83
+
+USE_X_PREFIX= yes
+
+NO_BUILD= yes
+
+IS_INTERACTIVE= yes
+NO_PACKAGE= Hardcoded IR device name
+
+SCRIPTS_ENV= CP="${CP}" RM="${RM}" SED="${SED}"
+
+MAN1= sonytv.1
+MLINKS= sonytv.1 sonytv+.1
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/sonytv ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/sonytv+ ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/sonytv.1 ${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/misc/sonytv/distinfo b/misc/sonytv/distinfo
new file mode 100644
index 000000000000..43f37c9fd43f
--- /dev/null
+++ b/misc/sonytv/distinfo
@@ -0,0 +1 @@
+MD5 (sonytv-1.0.tar.gz) = 57cbf9e497c419f0b1fecf6b020c5309
diff --git a/misc/sonytv/pkg-descr b/misc/sonytv/pkg-descr
new file mode 100644
index 000000000000..74c2aaad3c9c
--- /dev/null
+++ b/misc/sonytv/pkg-descr
@@ -0,0 +1,8 @@
+This is a Sony-compatible TV remote control implemented in Tcl/Tk.
+It should work on laptops/notebooks with a built-in serial IR port.
+The range isn't as good as a "real" remote; 2m, if you're lucky.
+
+WWW: http://tools.ana.com/demos/
+
+--Eric
+eps+sonytv@ana.com
diff --git a/misc/sonytv/pkg-plist b/misc/sonytv/pkg-plist
new file mode 100644
index 000000000000..792e44dc6ab1
--- /dev/null
+++ b/misc/sonytv/pkg-plist
@@ -0,0 +1,2 @@
+bin/sonytv
+bin/sonytv+
diff --git a/misc/sonytv/scripts/configure b/misc/sonytv/scripts/configure
new file mode 100644
index 000000000000..4b94f0cf1fa1
--- /dev/null
+++ b/misc/sonytv/scripts/configure
@@ -0,0 +1,22 @@
+#!/bin/sh
+cd ${WRKSRC:?Uh-oh.}||exit 1
+umask 022
+/usr/bin/dialog \
+--title "Where's your IR device?" \
+--radiolist "Select a serial port:" 12 48 4 \
+/dev/cuaa0 "" off \
+/dev/cuaa1 "e.g. Toshiba Libretto" off \
+/dev/cuaa2 "e.g. Sony VAIO F-series" on \
+/dev/cuaa3 "" off \
+2>.portstmp.$$
+case $? in
+0) read device <.portstmp.$$
+ for f in sonytv sonytv+
+ do
+ ${SED} -e "/set device {/s;{.*};{${device}};" $f >.portstmp.$$
+ /usr/bin/cmp -s .portstmp.$$ $f||${CP} .portstmp.$$ $f
+ done
+ ${RM} -f .portstmp.$$ ;;
+*) ${RM} -f .portstmp.$$
+ exit 1 ;;
+esac