Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

20
sysutils/atitvout/DESCR Normal file
View File

@@ -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

View File

@@ -0,0 +1,8 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2004/12/18 13:18:13 xtraeme Exp $
Try running the ${PREFIX}/share/doc/atitvout/test.sh program to find
out if this program works with your video card. It will cycle
through all available settings with pauses.
===========================================================================

View File

@@ -0,0 +1,45 @@
# $NetBSD: Makefile,v 1.14 2012/10/23 19:50:51 asau Exp $
DISTNAME= atitvout-0.4
PKGREVISION= 1
CATEGORIES= sysutils graphics
MASTER_SITES= http://0pointer.de/lennart/projects/atitvout/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://0pointer.de/lennart/projects/atitvout/
COMMENT= Allows TV-Out connector support under Linux/NetBSD
ONLY_FOR_PLATFORM= NetBSD-*-i386 # Linux-*-i386 [gnumakefile needs work]
WRKSRC= ${WRKDIR}/atitvout
USE_CONFIGURE= YES
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
.include "../../emulators/lrmi/buildlink3.mk"
MAKE_FILE= Makefile.bsd
do-configure:
${CP} ${FILESDIR}/Makefile.bsd ${WRKSRC}
.endif
REPLACE_INTERPRETER+= bash
REPLACE.bash.old= /bin/bash
REPLACE.bash.new= ${SH}
REPLACE_FILES.bash= test.sh
SUBST_CLASSES+= sh
SUBST_STAGE.sh= pre-configure
SUBST_FILES.sh= test.sh
SUBST_SED.sh= -e "s,@PREFIX@,${PREFIX},"
INSTALLATION_DIRS= sbin share/doc/atitvout
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/atitvout ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/atitvout
${INSTALL_DATA} ${WRKSRC}/test.sh ${DESTDIR}${PREFIX}/share/doc/atitvout
.include "../../mk/bsd.pkg.mk"

4
sysutils/atitvout/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:16:01 joerg Exp $
sbin/atitvout
share/doc/atitvout/README
share/doc/atitvout/test.sh

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2006/03/09 11:28:00 ghen Exp $
SHA1 (atitvout-0.4.tar.gz) = ac0d3f19119fa0c096099f952c9c59ac44ccc840
RMD160 (atitvout-0.4.tar.gz) = 594fbc3a20362275a2d9b4ca13ae0b7ae761bcf3
Size (atitvout-0.4.tar.gz) = 27163 bytes
SHA1 (patch-aa) = 68e79e289b1aadbba3aa1dbf3137fdf90c486afa
SHA1 (patch-ab) = e6b0e4fe8ba6427c3c9d2d99d3c0fbb43493f667

View File

@@ -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

View File

@@ -0,0 +1,49 @@
$NetBSD: patch-aa,v 1.2 2003/08/13 13:58:57 mrg Exp $
--- atitvout.c.orig 2002-09-17 05:37:08.000000000 +1000
+++ atitvout.c 2003-08-13 23:53:57.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");
@@ -118,6 +137,8 @@
} else {
if (strncmp(oem, "ATI MACH64", 10) == 0)
radeon = 0;
+ else if (strcmp(oem, "ATI MOBILITY RADEON 9000") == 0)
+ radeon = 0;
else if (strncmp(oem, "ATI RAGE128", 11) == 0)
radeon = 1;
/* Note: Also it's possible to have here 'RG6' for first radeons */

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.2 2006/03/09 11:28:00 ghen Exp $
--- test.sh.orig 2006-03-09 12:24:22.000000000 +0100
+++ test.sh
@@ -2,7 +2,7 @@
testit () {
echo "TEST: Running 'atitvout $FLAG $1' ..."
- ./atitvout $FLAG $1
+ @PREFIX@/sbin/atitvout $FLAG $1
echo "TEST: ... finished. Return value is $?. Please wait 3 seconds."
echo
sleep 3