diff options
author | Niclas Zeising <zeising@FreeBSD.org> | 2019-08-18 14:41:20 +0000 |
---|---|---|
committer | Niclas Zeising <zeising@FreeBSD.org> | 2019-08-18 14:41:20 +0000 |
commit | f694b1f9b20b736030c1f4e14dfca50ed95eb517 (patch) | |
tree | 07517fab6d1f9df7cb63aabd7d7a285c2ba8a973 | |
parent | d55ab965af7173fd7498e587c1f711621e842b0a (diff) | |
download | freebsd-ports-f694b1f9b20b736030c1f4e14dfca50ed95eb517.zip |
x11-drivers/xf86-video-s3: Update to 0.7.0
Update x11-drivers/xf86-video-s3 to 0.7.0
Remove patches that are incorporated in this release.
Add license information
This version has not been tested with actual hardware.
This is a maintenance release
Changelog:
https://lists.x.org/archives/xorg-announce/2019-July/003015.html
Obtained from: FreeBSD Graphics Team development repo
https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorglibs
-rw-r--r-- | x11-drivers/xf86-video-s3/Makefile | 6 | ||||
-rw-r--r-- | x11-drivers/xf86-video-s3/distinfo | 5 | ||||
-rw-r--r-- | x11-drivers/xf86-video-s3/files/patch-git_01_92d10d5 | 29 | ||||
-rw-r--r-- | x11-drivers/xf86-video-s3/files/patch-git_02_ed0fbfd | 33 | ||||
-rw-r--r-- | x11-drivers/xf86-video-s3/files/patch-git_03_7b45358 | 35 | ||||
-rw-r--r-- | x11-drivers/xf86-video-s3/files/patch-git_04_82bd67a | 92 | ||||
-rw-r--r-- | x11-drivers/xf86-video-s3/files/patch-src_s3__driver.c | 13 |
7 files changed, 7 insertions, 206 deletions
diff --git a/x11-drivers/xf86-video-s3/Makefile b/x11-drivers/xf86-video-s3/Makefile index 303641aa5c8c..04ac219d47c9 100644 --- a/x11-drivers/xf86-video-s3/Makefile +++ b/x11-drivers/xf86-video-s3/Makefile @@ -1,13 +1,15 @@ # $FreeBSD$ PORTNAME= xf86-video-s3 -PORTVERSION= 0.6.5 -PORTREVISION= 10 +PORTVERSION= 0.7.0 CATEGORIES= x11-drivers MAINTAINER= x11@FreeBSD.org COMMENT= X.Org s3 display driver +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + XORG_CAT= driver .include <bsd.port.mk> diff --git a/x11-drivers/xf86-video-s3/distinfo b/x11-drivers/xf86-video-s3/distinfo index 1dd127d18fe9..d804d03db506 100644 --- a/x11-drivers/xf86-video-s3/distinfo +++ b/x11-drivers/xf86-video-s3/distinfo @@ -1,2 +1,3 @@ -SHA256 (xorg/driver/xf86-video-s3-0.6.5.tar.bz2) = 4778cd4f1d61490c3562f9be03664576f065fa3acf22fe0d0689212d7ea3ad39 -SIZE (xorg/driver/xf86-video-s3-0.6.5.tar.bz2) = 325582 +TIMESTAMP = 1566063488 +SHA256 (xorg/driver/xf86-video-s3-0.7.0.tar.bz2) = cf12541557d88107364895273e384f97836b428eeb1e54ed66511d69639562c8 +SIZE (xorg/driver/xf86-video-s3-0.7.0.tar.bz2) = 348923 diff --git a/x11-drivers/xf86-video-s3/files/patch-git_01_92d10d5 b/x11-drivers/xf86-video-s3/files/patch-git_01_92d10d5 deleted file mode 100644 index 3f931107069c..000000000000 --- a/x11-drivers/xf86-video-s3/files/patch-git_01_92d10d5 +++ /dev/null @@ -1,29 +0,0 @@ -From 92d10d5d6882c3db6695a8fff83c88fbaaa27a33 Mon Sep 17 00:00:00 2001 -From: "Eric S. Raymond" <esr@thyrsus.com> -Date: Thu, 23 Aug 2012 12:46:03 -0400 -Subject: Fix malformed list syntax. - -TP without a body shouldn't really be used for an item list. Fixing this -makes structural translation to DocBook possible. - -Signed-off-by: Eric S. Raymond <esr@thyrsus.com> - -diff --git a/man/s3.man b/man/s3.man -index 9109c2a..732e4f3 100644 ---- man/s3.man -+++ man/s3.man -@@ -50,9 +50,9 @@ driver supports PCI video cards based on the following S3 chips: - - .PP - Also driver supports the following RAMDACs: --.TP 12 -+.IP 12 - .B IBM 524, IBM 524A, IBM 526, IBM 526DB --.TP 12 -+.IP 12 - .B TI ViewPoint 3025 - - .SH DESCRIPTION --- -cgit v0.10.2 - diff --git a/x11-drivers/xf86-video-s3/files/patch-git_02_ed0fbfd b/x11-drivers/xf86-video-s3/files/patch-git_02_ed0fbfd deleted file mode 100644 index d78d61b19c1e..000000000000 --- a/x11-drivers/xf86-video-s3/files/patch-git_02_ed0fbfd +++ /dev/null @@ -1,33 +0,0 @@ -From ed0fbfd27609e897c42d7ab316481a9504746233 Mon Sep 17 00:00:00 2001 -From: Gaetan Nadon <memsize@videotron.ca> -Date: Tue, 7 Jan 2014 16:28:58 -0500 -Subject: Remove mibstore.h - -As it was done in numerous other drivers. Fixes compile error. - -Tested-by: Trevor Woerner <trevor.woerner@linaro.org> -Signed-off-by: Gaetan Nadon <memsize@videotron.ca> - -diff --git a/src/s3_driver.c b/src/s3_driver.c -index 61242ad..85763ba 100644 ---- src/s3_driver.c -+++ src/s3_driver.c -@@ -52,7 +52,6 @@ - #include "compiler.h" - #include "mipointer.h" - #include "micmap.h" --#include "mibstore.h" - #include "fb.h" - #include "inputstr.h" - #include "shadowfb.h" -@@ -822,7 +821,6 @@ static Bool S3ScreenInit(SCREEN_INIT_ARGS_DECL) - fbPictureInit (pScreen, 0, 0); - S3DGAInit(pScreen); - -- miInitializeBackingStore(pScreen); - xf86SetBackingStore(pScreen); - - /* framebuffer manager setup */ --- -cgit v0.10.2 - diff --git a/x11-drivers/xf86-video-s3/files/patch-git_03_7b45358 b/x11-drivers/xf86-video-s3/files/patch-git_03_7b45358 deleted file mode 100644 index d19f0b2a5baf..000000000000 --- a/x11-drivers/xf86-video-s3/files/patch-git_03_7b45358 +++ /dev/null @@ -1,35 +0,0 @@ -From 7b454358082fc07985878fc92b902d7534144cae Mon Sep 17 00:00:00 2001 -From: Alan Coopersmith <alan.coopersmith@oracle.com> -Date: Sat, 12 Mar 2016 10:54:22 -0800 -Subject: When checking malloc for success, it helps to use == NULL, instead of - = - -Fixes gcc 5.3 compiler warning: -s3_bios.c: In function 'find_bios_string': -s3_bios.c:49:2: warning: suggest parentheses around assignment used as - truth value [-Wparentheses] - if (bios = NULL) - ^ - -[Tested by compiling only, as I have no S3 hardware, but clearly no one - else has tested this code since commit c41a1188ce53 in 2009, as it would - be segfaulting if run.] - -Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> - -diff --git a/src/s3_bios.c b/src/s3_bios.c -index 323e2ce..1c7c5fe 100644 ---- src/s3_bios.c -+++ src/s3_bios.c -@@ -46,7 +46,7 @@ static unsigned char *find_bios_string(ScrnInfoPtr pScrn, int BIOSbase, - S3Ptr pS3 = S3PTR(pScrn); - - bios = malloc(BIOS_BSIZE); -- if (bios = NULL) -+ if (bios == NULL) - return NULL; - - if (!init) { --- -cgit v0.10.2 - diff --git a/x11-drivers/xf86-video-s3/files/patch-git_04_82bd67a b/x11-drivers/xf86-video-s3/files/patch-git_04_82bd67a deleted file mode 100644 index a3bf331e64c3..000000000000 --- a/x11-drivers/xf86-video-s3/files/patch-git_04_82bd67a +++ /dev/null @@ -1,92 +0,0 @@ -From 82bd67a255fb45847d8a10811641bc0b203ba864 Mon Sep 17 00:00:00 2001 -From: Alan Coopersmith <alan.coopersmith@oracle.com> -Date: Thu, 17 Mar 2016 10:27:51 -0700 -Subject: s3_bios.c: Simplify code for choosing between 16000 & 16000 for - RefClock - -Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> - -diff --git a/src/s3_bios.c b/src/s3_bios.c -index 1c7c5fe..262d40a 100644 ---- src/s3_bios.c -+++ src/s3_bios.c -@@ -29,75 +29,9 @@ - #include "config.h" - #endif - --#include "xf86.h" --#include "xf86_OSproc.h" --#include "compiler.h" -- - #include "s3.h" - -- --static unsigned char *find_bios_string(ScrnInfoPtr pScrn, int BIOSbase, -- char *match1, char *match2) --{ -- static unsigned char *bios; -- static int init=0; -- int i, j, l1, l2, ret; -- -- S3Ptr pS3 = S3PTR(pScrn); -- -- bios = malloc(BIOS_BSIZE); -- if (bios == NULL) -- return NULL; -- -- if (!init) { -- init = 1; --#ifndef XSERVER_LIBPCIACCESS -- if (xf86ReadDomainMemory(pS3->PciTag, BIOSbase, BIOS_BSIZE, bios) != BIOS_BSIZE) -- goto error; --#else -- ret = pci_device_read_rom(pS3->PciInfo, bios); -- if (ret) { -- xf86DrvMsg(pScrn->scrnIndex, X_WARNING, -- "libpciaccess failed to read video BIOS: %s\n", -- strerror(-ret)); -- goto error; -- } --#endif -- if ((bios[0] != 0x55) || (bios[1] != 0xaa)) -- goto error; -- } -- if (match1 == NULL) -- goto error; -- -- l1 = strlen(match1); -- if (match2 != NULL) -- l2 = strlen(match2); -- else -- l2 = 0; -- -- for (i=0; i<BIOS_BSIZE; i++) -- if (bios[i] == match1[0] && !memcmp(&bios[i], match1, l1)) { -- if (match2 == NULL) -- return &bios[i+l1]; -- else -- for(j=i+l1; (j<BIOS_BSIZE-l2) && bios[j]; j++) -- if (bios[j] == match2[0] && -- !memcmp(&bios[j], match2, l2)) -- return &bios[j+l2]; -- } --error: -- free(bios); -- return NULL; --} -- -- - int S3GetRefClock(ScrnInfoPtr pScrn) - { -- int RefClock = 16000; /* default */ -- -- if (find_bios_string(pScrn, BIOS_BASE, "Number Nine Visual Technology", -- "Motion 771") != NULL) -- RefClock = 16000; -- -- return RefClock; -+ return 16000; - } --- -cgit v0.10.2 - diff --git a/x11-drivers/xf86-video-s3/files/patch-src_s3__driver.c b/x11-drivers/xf86-video-s3/files/patch-src_s3__driver.c deleted file mode 100644 index 604937dac78d..000000000000 --- a/x11-drivers/xf86-video-s3/files/patch-src_s3__driver.c +++ /dev/null @@ -1,13 +0,0 @@ -# Correct a string that should be const -# ---- src/s3_driver.c.orig 2012-07-17 04:50:05 UTC -+++ src/s3_driver.c -@@ -309,7 +308,7 @@ static Bool S3PreInit(ScrnInfoPtr pScrn, - Gamma gzeros = {0.0, 0.0, 0.0}; - int i, vgaCRIndex, vgaCRReg; - unsigned char tmp; -- char *s; -+ const char *s; - - if (flags & PROBE_DETECT) - return FALSE; |