summaryrefslogtreecommitdiff
path: root/sysutils/atitvout
diff options
context:
space:
mode:
authormrg <mrg@pkgsrc.org>2003-08-13 05:22:59 +0000
committermrg <mrg@pkgsrc.org>2003-08-13 05:22:59 +0000
commitcde1bddce74d121db97ba6d2c8e5b192701c14d2 (patch)
tree9a145eae6a9cbeb2c922bc4bc208bab09649452b /sysutils/atitvout
parent9dc7bdc3c5654fe34cc7a2124b09828cadd8e816 (diff)
downloadpkgsrc-cde1bddce74d121db97ba6d2c8e5b192701c14d2.tar.gz
initial import of the "atitvout" package that provides tv-out capabilities
for many recent ATI video cards. tested to be able to switch from the lcd to the s-video tv-out with a radeon mobility 9000 (M9), and also known to work on: ATI Technologies Inc Rage Mobility P/M AGP 2x ATI Technologies Inc 3D Rage LT Pro AGP-133 ATI Rage Mobility M3 but to fail on: ATI Technologies Inc Rage Mobility M4 AGP
Diffstat (limited to 'sysutils/atitvout')
-rw-r--r--sysutils/atitvout/DESCR20
-rw-r--r--sysutils/atitvout/MESSAGE8
-rw-r--r--sysutils/atitvout/Makefile33
-rw-r--r--sysutils/atitvout/PLIST5
-rw-r--r--sysutils/atitvout/distinfo5
-rw-r--r--sysutils/atitvout/files/Makefile.bsd14
-rw-r--r--sysutils/atitvout/patches/patch-aa40
7 files changed, 125 insertions, 0 deletions
diff --git a/sysutils/atitvout/DESCR b/sysutils/atitvout/DESCR
new file mode 100644
index 00000000000..fd047ad79d9
--- /dev/null
+++ b/sysutils/atitvout/DESCR
@@ -0,0 +1,20 @@
+This utility program may be used for executing several configuration
+commands for the TV Out connector of ATI Rage Mobility P/M graphics
+boards under GNU/Linux on x86. It is intended primarily to enable TV
+Out support after bootup and for switching the used TV standard from
+NTSC to PAL.
+
+The utility makes use of x86-VESA-BIOS-calls and thus is not portable
+to other architectures like PPC: *No TV-Out on Macs with this tool*.
+
+Compatible Hardware:
+
+ All commands:
+ ATI Technologies Inc Rage Mobility P/M AGP 2x
+ ATI Technologies Inc 3D Rage LT Pro AGP-133
+
+ detect & active:
+ ATI Rage Mobility M3
+
+ Fail:
+ ATI Technologies Inc Rage Mobility M4 AGP
diff --git a/sysutils/atitvout/MESSAGE b/sysutils/atitvout/MESSAGE
new file mode 100644
index 00000000000..f524186989e
--- /dev/null
+++ b/sysutils/atitvout/MESSAGE
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2003/08/13 05:23:00 mrg Exp $
+
+ Try running the ${PREFIX}/share/atitvout/test.sh program to find
+ out if this program works with your video card. It will cycle
+ through all available settings with pauses.
+
+===========================================================================
diff --git a/sysutils/atitvout/Makefile b/sysutils/atitvout/Makefile
new file mode 100644
index 00000000000..013e1d411e9
--- /dev/null
+++ b/sysutils/atitvout/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/08/13 05:23:00 mrg Exp $
+
+DISTNAME= atitvout-0.4
+WRKSRC= ${WRKDIR}/atitvout
+CATEGORIES= sysutils graphics
+MASTER_SITES= http://www.stud.uni-hamburg.de/users/lennart/projects/atitvout/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.stud.uni-hamburg.de/users/lennart/projects/atitvout/
+COMMENT= Allows TV-Out connector support under Linux/NetBSD
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386 # Linux-*-i386 [gnumakefile needs work]
+
+USE_CONFIGURE= YES
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+DEPENDS+= lrmi>=0.8:../../emulators/lrmi
+
+MAKEFILE= Makefile.bsd
+
+do-configure:
+ ${CP} ${FILESDIR}/Makefile.bsd ${WRKSRC}
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/atitvout ${PREFIX}/sbin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/atitvout
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/atitvout
+ ${INSTALL_DATA} ${WRKSRC}/test.sh ${PREFIX}/share/doc/atitvout
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/atitvout/PLIST b/sysutils/atitvout/PLIST
new file mode 100644
index 00000000000..52c936ee1a9
--- /dev/null
+++ b/sysutils/atitvout/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/08/13 05:23:00 mrg Exp $
+sbin/atitvout
+share/doc/atitvout/README
+share/doc/atitvout/test.sh
+@dirrm share/doc/atitvout
diff --git a/sysutils/atitvout/distinfo b/sysutils/atitvout/distinfo
new file mode 100644
index 00000000000..29021ac4870
--- /dev/null
+++ b/sysutils/atitvout/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/08/13 05:22:59 mrg Exp $
+
+SHA1 (atitvout-0.4.tar.gz) = ac0d3f19119fa0c096099f952c9c59ac44ccc840
+Size (atitvout-0.4.tar.gz) = 27163 bytes
+SHA1 (patch-aa) = 4a9dd24f5d1bb5db4cd1093c9c9e5a8d5e74e627
diff --git a/sysutils/atitvout/files/Makefile.bsd b/sysutils/atitvout/files/Makefile.bsd
new file mode 100644
index 00000000000..b5b1c56c82c
--- /dev/null
+++ b/sysutils/atitvout/files/Makefile.bsd
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile.bsd,v 1.1.1.1 2003/08/13 05:23:00 mrg Exp $
+
+VERSION=0.4
+CFLAGS=-Wall -O2 -g -DVERSION=\"$(VERSION)\" -I$(PREFIX)/include
+OBJS=atitvout.o ati.o vbeinfo.o vbecall.o mach64.o radeon.o
+BINARY=atitvout
+LIBS=-llrmi -li386
+
+all: $(BINARY)
+
+$(BINARY): $(OBJS)
+ $(CC) $(LDFLAGS) $(OBJS) -o $(BINARY) $(LIBS)
+
+.PHONY: test install clean strip all
diff --git a/sysutils/atitvout/patches/patch-aa b/sysutils/atitvout/patches/patch-aa
new file mode 100644
index 00000000000..72d0abb5cea
--- /dev/null
+++ b/sysutils/atitvout/patches/patch-aa
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/08/13 05:23:00 mrg Exp $
+
+--- atitvout.c.orig 2002-09-17 05:37:08.000000000 +1000
++++ atitvout.c 2003-08-13 14:58:15.000000000 +1000
+@@ -17,7 +17,13 @@
+ */
+
+ #include <stdio.h>
++#ifdef __linux__
+ #include <sys/io.h>
++#endif
++#ifdef __NetBSD__
++#include <sys/types.h>
++#include <machine/sysarch.h>
++#endif
+ #include <string.h>
+ #include <assert.h>
+
+@@ -98,8 +104,21 @@
+ return 0;
+ }
+
++#ifdef __linux__
+ ioperm(0, 1024, 1);
+ iopl(3);
++#endif
++#ifdef __NetBSD__
++ {
++#define FF 0xFFFFFFFF
++#define FF8 FF, FF, FF, FF, FF, FF, FF, FF
++ u_long map[] = { FF8, FF8, FF8, FF8 };
++#undef FF
++#undef FF8
++ i386_set_ioperm(map);
++ }
++ i386_iopl(3);
++#endif
+
+ if (!LRMI_init()) {
+ fprintf(stderr, "Could not initialise LRMI.\n");