1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add OPTIONS support and fix transparency/shading.

Obtained from:	Björn König <bkoenig(at)cs.tu-berlin.de>
This commit is contained in:
Jimmy Olgeni 2005-07-30 09:57:48 +00:00
parent 4fb1edd33b
commit 5c5ec9a23d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140456
2 changed files with 61 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= eterm
PORTVERSION= 0.9.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES+= x11
MASTER_SITES= http://www.eterm.org/download/
DISTNAME= Eterm-${PORTVERSION}
@ -28,6 +28,7 @@ CONFIGURE_ARGS?=--enable-trans --enable-utmp \
--enable-multi-charset
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
OPTIONS= MMX "With MMX instruction set" off
MAN1= Eterm.1

View File

@ -0,0 +1,59 @@
$FreeBSD$
--- src/pixmap.c.orig
+++ src/pixmap.c
@@ -1634,7 +1634,7 @@
for (x = -(w * 4); x < 0; x += 4) {
int r, g, b;
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
r = (ptr[x + 1] * rm) >> 8;
g = (ptr[x + 2] * gm) >> 8;
b = (ptr[x + 3] * bm) >> 8;
@@ -1657,7 +1657,7 @@
for (x = -(w * 4); x < 0; x += 4) {
int r, g, b;
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
r = (ptr[x + 1] * rm) >> 8;
g = (ptr[x + 2] * gm) >> 8;
b = (ptr[x + 3] * bm) >> 8;
@@ -1669,7 +1669,7 @@
r |= (!(r >> 8) - 1);
g |= (!(g >> 8) - 1);
b |= (!(b >> 8) - 1);
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
ptr[x + 1] = r;
ptr[x + 2] = g;
ptr[x + 3] = b;
@@ -1699,7 +1699,7 @@
for (x = -(w * 3); x < 0; x += 3) {
int r, g, b;
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
r = (ptr[x + 0] * rm) >> 8;
g = (ptr[x + 1] * gm) >> 8;
b = (ptr[x + 2] * bm) >> 8;
@@ -1722,7 +1722,7 @@
for (x = -(w * 3); x < 0; x += 3) {
int r, g, b;
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
r = (ptr[x + 0] * rm) >> 8;
g = (ptr[x + 1] * gm) >> 8;
b = (ptr[x + 2] * bm) >> 8;
@@ -1734,7 +1734,7 @@
r |= (!(r >> 8) - 1);
g |= (!(g >> 8) - 1);
b |= (!(b >> 8) - 1);
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
ptr[x + 0] = r;
ptr[x + 1] = g;
ptr[x + 2] = b;