summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>2001-06-02 20:36:28 +0000
committernsayer <nsayer@FreeBSD.org>2001-06-02 20:36:28 +0000
commit39521b00b262f2c60561881673a437e4399f011b (patch)
tree719c6bb486a44a65c4ef9ad08d3cc1adb0b8b990 /x11
parent89294e90738a6b31579ca82769fa0c7b36e6c1dc (diff)
downloadFreeBSD-ports-39521b00b262f2c60561881673a437e4399f011b.zip
FreeBSD-ports-39521b00b262f2c60561881673a437e4399f011b.tar.gz
Add port for MGA Powerdesk. A X11 configurator / helper app for Matrox cards.
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/mgapdesk/Makefile33
-rw-r--r--x11/mgapdesk/distinfo1
-rw-r--r--x11/mgapdesk/files/patch-aa19
-rw-r--r--x11/mgapdesk/files/patch-ab46
-rw-r--r--x11/mgapdesk/pkg-comment1
-rw-r--r--x11/mgapdesk/pkg-descr4
-rw-r--r--x11/mgapdesk/pkg-plist22
8 files changed, 127 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index d004fde..182e8df 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -55,6 +55,7 @@
SUBDIR += libsx
SUBDIR += login.app
SUBDIR += lupe
+ SUBDIR += mgapdesk
SUBDIR += offix-clipboard
SUBDIR += offix-execute
SUBDIR += p5-X11-Protocol
diff --git a/x11/mgapdesk/Makefile b/x11/mgapdesk/Makefile
new file mode 100644
index 0000000..7a8073f
--- /dev/null
+++ b/x11/mgapdesk/Makefile
@@ -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>
diff --git a/x11/mgapdesk/distinfo b/x11/mgapdesk/distinfo
new file mode 100644
index 0000000..df346ff
--- /dev/null
+++ b/x11/mgapdesk/distinfo
@@ -0,0 +1 @@
+MD5 (mgapdesk-1_00-5beta.tgz) = 3aede298403b6cd3a5e08df6084d9d9e
diff --git a/x11/mgapdesk/files/patch-aa b/x11/mgapdesk/files/patch-aa
new file mode 100644
index 0000000..0ce011d
--- /dev/null
+++ b/x11/mgapdesk/files/patch-aa
@@ -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>
diff --git a/x11/mgapdesk/files/patch-ab b/x11/mgapdesk/files/patch-ab
new file mode 100644
index 0000000..60e5ad5
--- /dev/null
+++ b/x11/mgapdesk/files/patch-ab
@@ -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;
+ }
+
diff --git a/x11/mgapdesk/pkg-comment b/x11/mgapdesk/pkg-comment
new file mode 100644
index 0000000..b36d3bf
--- /dev/null
+++ b/x11/mgapdesk/pkg-comment
@@ -0,0 +1 @@
+Matrox Powerdesk for *nix
diff --git a/x11/mgapdesk/pkg-descr b/x11/mgapdesk/pkg-descr
new file mode 100644
index 0000000..23863387
--- /dev/null
+++ b/x11/mgapdesk/pkg-descr
@@ -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/
diff --git a/x11/mgapdesk/pkg-plist b/x11/mgapdesk/pkg-plist
new file mode 100644
index 0000000..3389e86
--- /dev/null
+++ b/x11/mgapdesk/pkg-plist
@@ -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
OpenPOWER on IntegriCloud