Use system compiler on amd64
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= tvision
|
||||
PORTVERSION= 0.8
|
||||
PORTREVISION= 6
|
||||
PORTREVISION= 7
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
||||
http://www.sigala.it/sergio/tvision/mysource/
|
||||
@@ -21,12 +21,11 @@ USE_GMAKE= yes
|
||||
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
||||
USE_AUTOTOOLS= libtool:15
|
||||
USE_LDCONFIG= yes
|
||||
USE_GCC= 3.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
USE_GCC= 3.4
|
||||
.if ${ARCH} != "amd64"
|
||||
USE_GCC= 3.3
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- lib/TChDirDialog.cc.orig 2008-07-27 18:48:30.000000000 +0200
|
||||
+++ lib/TChDirDialog.cc 2008-07-27 18:49:16.000000000 +0200
|
||||
@@ -103,7 +103,7 @@
|
||||
#ifndef __UNPATCHED
|
||||
//!! Handle directory selection.
|
||||
case cmDirSelection:
|
||||
- chDirButton->makeDefault( Boolean( int(
|
||||
+ chDirButton->makeDefault( Boolean( intptr_t(
|
||||
event.message.infoPtr ) ) );
|
||||
return; // NOTE: THIS IS RETURN NOT BREAK!!
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
--- lib/TWindow.cc.orig 2008-07-27 18:50:18.000000000 +0200
|
||||
+++ lib/TWindow.cc 2008-07-27 18:50:37.000000000 +0200
|
||||
@@ -153,7 +153,7 @@
|
||||
/*
|
||||
* Some non-portable code changed. See `TProgram.cc'.
|
||||
*/
|
||||
- (int)event.message.infoPtr == number &&
|
||||
+ (intptr_t)event.message.infoPtr == number &&
|
||||
(options & ofSelectable) != 0
|
||||
)
|
||||
{
|
||||
@@ -0,0 +1,56 @@
|
||||
--- lib/colorsel.cc.orig 2008-07-27 18:51:10.000000000 +0200
|
||||
+++ lib/colorsel.cc 2008-07-27 18:52:25.000000000 +0200
|
||||
@@ -210,9 +210,9 @@
|
||||
* SS: some non-portable code changed.
|
||||
*/
|
||||
if( selType == csBackground )
|
||||
- color = (int)event.message.infoPtr >> 4;
|
||||
+ color = (intptr_t)event.message.infoPtr >> 4;
|
||||
else
|
||||
- color = (int)event.message.infoPtr & 0x0F;
|
||||
+ color = (intptr_t)event.message.infoPtr & 0x0F;
|
||||
drawView();
|
||||
return ;
|
||||
}
|
||||
@@ -278,7 +278,7 @@
|
||||
/*
|
||||
* SS: some non-portable code changed.
|
||||
*/
|
||||
- value = (int)event.message.infoPtr;
|
||||
+ value = (intptr_t)event.message.infoPtr;
|
||||
drawView();
|
||||
}
|
||||
}
|
||||
@@ -357,12 +357,12 @@
|
||||
/*
|
||||
* SS: some non-portable code changed.
|
||||
*/
|
||||
- *color = (*color & 0x0F) | (((int)event.message.infoPtr << 4) & 0xF0);
|
||||
+ *color = (*color & 0x0F) | (((intptr_t)event.message.infoPtr << 4) & 0xF0);
|
||||
drawView();
|
||||
break;
|
||||
|
||||
case cmColorForegroundChanged:
|
||||
- *color = (*color & 0xF0) | ((int)event.message.infoPtr & 0x0F);
|
||||
+ *color = (*color & 0xF0) | ((intptr_t)event.message.infoPtr & 0x0F);
|
||||
drawView();
|
||||
}
|
||||
}
|
||||
@@ -507,7 +507,7 @@
|
||||
/*
|
||||
* SS: some non-portable code changed.
|
||||
*/
|
||||
- setGroupIndex(focused, (int)ev.message.infoPtr);
|
||||
+ setGroupIndex(focused, (intptr_t)ev.message.infoPtr);
|
||||
}
|
||||
|
||||
void TColorGroupList::setGroupIndex(uchar groupNum, uchar itemNum)
|
||||
@@ -810,7 +810,7 @@
|
||||
/*
|
||||
* SS: some non-portable code changed.
|
||||
*/
|
||||
- display->setColor( (uchar *)&pal->data[(int)event.message.infoPtr] );
|
||||
+ display->setColor( (uchar *)&pal->data[(intptr_t)event.message.infoPtr] );
|
||||
}
|
||||
|
||||
ushort TColorDialog::dataSize()
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user