Add port for MGA Powerdesk. A X11 configurator / helper app for Matrox cards.
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
SUBDIR += libsx
|
||||
SUBDIR += login.app
|
||||
SUBDIR += lupe
|
||||
SUBDIR += mgapdesk
|
||||
SUBDIR += offix-clipboard
|
||||
SUBDIR += offix-execute
|
||||
SUBDIR += p5-X11-Protocol
|
||||
|
||||
33
x11/mgapdesk/Makefile
Normal file
33
x11/mgapdesk/Makefile
Normal file
@@ -0,0 +1,33 @@
|
||||
# New ports collection makefile for: mgapdesk
|
||||
# Date created: 2001/06/02
|
||||
# Whom: Nick Sayer
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mgapdesk
|
||||
PORTVERSION= 1.0.5
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= ftp://ftp.matrox.com/pub/mga/archive/linux/2001/powerdesk_1_3_0/
|
||||
DISTNAME= ${PORTNAME}-1_00-5beta
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= nsayer@freebsd.org
|
||||
|
||||
BUILD_DEPENDS= XFree86:${PORTSDIR}/x11/XFree86-4
|
||||
|
||||
USE_X_PREFIX= YES
|
||||
USE_GTK= YES
|
||||
|
||||
USE_GMAKE= YES
|
||||
|
||||
USE_AUTOCONF= YES
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-extract:
|
||||
@${RM} -f ${WRKSRC}/config.cache
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
1
x11/mgapdesk/distinfo
Normal file
1
x11/mgapdesk/distinfo
Normal file
@@ -0,0 +1 @@
|
||||
MD5 (mgapdesk-1_00-5beta.tgz) = 3aede298403b6cd3a5e08df6084d9d9e
|
||||
19
x11/mgapdesk/files/patch-aa
Normal file
19
x11/mgapdesk/files/patch-aa
Normal file
@@ -0,0 +1,19 @@
|
||||
--- src/io.h.orig Sat Jun 2 12:57:44 2001
|
||||
+++ src/io.h Sat Jun 2 12:59:56 2001
|
||||
@@ -10,11 +10,16 @@
|
||||
* Last modified : March 2001.
|
||||
*********************************************************/
|
||||
|
||||
+#include <sys/param.h> /* for BSD */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
+#ifdef BSD
|
||||
+#include <machine/cpufunc.h>
|
||||
+#else
|
||||
#include <sys/io.h>
|
||||
+#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
46
x11/mgapdesk/files/patch-ab
Normal file
46
x11/mgapdesk/files/patch-ab
Normal file
@@ -0,0 +1,46 @@
|
||||
--- src/io.c.orig Thu May 31 04:10:39 2001
|
||||
+++ src/io.c Sat Jun 2 13:21:25 2001
|
||||
@@ -14,18 +14,40 @@
|
||||
|
||||
#include "global.h"
|
||||
#include "io.h"
|
||||
+#ifdef BSD
|
||||
+/*
|
||||
+ * Make a phony iopl call. Opening /dev/io in BSD permits all I/O access.
|
||||
+ * There is no granularity.
|
||||
+ */
|
||||
+#include <stdio.h>
|
||||
+int iopl(int on) {
|
||||
+ static FILE *f=NULL;
|
||||
+
|
||||
+ if (on) {
|
||||
+ if (f!=NULL)
|
||||
+ return 0; /* already on */
|
||||
+ f=fopen("/dev/io","r+");
|
||||
+ return (f==NULL);
|
||||
+ } else {
|
||||
+ fclose(f);
|
||||
+ f=NULL;
|
||||
+ return 0;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+#endif
|
||||
|
||||
static int int_pci_conf1_read_config_dword(unsigned char bus, unsigned char device_fn, unsigned char where, unsigned int *value)
|
||||
{
|
||||
- outl(CONFIG_CMD(bus,device_fn,where), 0xCF8 );
|
||||
+ outl(0xCF8, CONFIG_CMD(bus,device_fn,where));
|
||||
*value = inl(0xCFC);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int int_pci_conf1_write_config_dword(unsigned char bus, unsigned char device_fn, unsigned char where, unsigned int value)
|
||||
{
|
||||
- outl(CONFIG_CMD(bus,device_fn,where), 0xCF8 );
|
||||
- outl(value, ((0xCFC + (where & 3))));
|
||||
+ outl(0xCF8, CONFIG_CMD(bus,device_fn,where));
|
||||
+ outl(((0xCFC + (where & 3))), value);
|
||||
return 1;
|
||||
}
|
||||
|
||||
1
x11/mgapdesk/pkg-comment
Normal file
1
x11/mgapdesk/pkg-comment
Normal file
@@ -0,0 +1 @@
|
||||
Matrox Powerdesk for *nix
|
||||
4
x11/mgapdesk/pkg-descr
Normal file
4
x11/mgapdesk/pkg-descr
Normal file
@@ -0,0 +1,4 @@
|
||||
Matrox powerdesk allows you to configure Matrox video cards running under
|
||||
XFree86-4 for dual head, TV out and other refinements.
|
||||
|
||||
WWW: http://www.matrox.com/mga/
|
||||
22
x11/mgapdesk/pkg-plist
Normal file
22
x11/mgapdesk/pkg-plist
Normal file
@@ -0,0 +1,22 @@
|
||||
bin/mgapdesk
|
||||
share/mgapdesk/pixmaps/ArrowDown.xpm
|
||||
share/mgapdesk/pixmaps/ArrowExpandH.xpm
|
||||
share/mgapdesk/pixmaps/ArrowExpandV.xpm
|
||||
share/mgapdesk/pixmaps/ArrowLeft.xpm
|
||||
share/mgapdesk/pixmaps/ArrowRight.xpm
|
||||
share/mgapdesk/pixmaps/ArrowShrinkH.xpm
|
||||
share/mgapdesk/pixmaps/ArrowShrinkV.xpm
|
||||
share/mgapdesk/pixmaps/ArrowUp.xpm
|
||||
share/mgapdesk/pixmaps/BoardWGear.xpm
|
||||
share/mgapdesk/pixmaps/DHClone.xpm
|
||||
share/mgapdesk/pixmaps/DHMultiDisplay.xpm
|
||||
share/mgapdesk/pixmaps/icon.xpm
|
||||
share/mgapdesk/pixmaps/invert.xpm
|
||||
share/mgapdesk/pixmaps/matrox.xpm
|
||||
share/mgapdesk/pixmaps/monitor1small.xpm
|
||||
share/mgapdesk/pixmaps/monitor2small.xpm
|
||||
share/mgapdesk/pixmaps/pdbkgnd.xpm
|
||||
share/mgapdesk/pixmaps/planet.xpm
|
||||
share/mgapdesk/pixmaps/s1.xpm
|
||||
share/mgapdesk/pixmaps/s2.xpm
|
||||
share/mgapdesk/pixmaps/screen.xpm
|
||||
Reference in New Issue
Block a user