diff options
author | pav <pav@FreeBSD.org> | 2003-12-30 23:05:05 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2003-12-30 23:05:05 +0800 |
commit | bb5726f503c56ed26f7b94e2a733f2aa4c5200dc (patch) | |
tree | 1718c87b06fc82222436462901958b31da9a1e82 /misc/sonytv | |
parent | 4655d580f6a20c29f0bd015b37271868756caaf3 (diff) | |
download | freebsd-ports-gnome-bb5726f503c56ed26f7b94e2a733f2aa4c5200dc.tar.gz freebsd-ports-gnome-bb5726f503c56ed26f7b94e2a733f2aa4c5200dc.tar.zst freebsd-ports-gnome-bb5726f503c56ed26f7b94e2a733f2aa4c5200dc.zip |
Add sonytv, an infrared remote control for SONY TV sets, written in Tk.
PR: ports/58263
Submitted by: Eric P. Scott <eps+psub0306@ana.com>
Diffstat (limited to 'misc/sonytv')
-rw-r--r-- | misc/sonytv/Makefile | 35 | ||||
-rw-r--r-- | misc/sonytv/distinfo | 1 | ||||
-rw-r--r-- | misc/sonytv/pkg-descr | 8 | ||||
-rw-r--r-- | misc/sonytv/pkg-plist | 2 | ||||
-rw-r--r-- | misc/sonytv/scripts/configure | 22 |
5 files changed, 68 insertions, 0 deletions
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 |