1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Make x11/accessx compile under -current again.

Noticed on: bento
This commit is contained in:
Edwin Groothuis 2002-12-17 04:39:46 +00:00
parent d2311efbfd
commit fb16006cf6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71682
4 changed files with 37 additions and 5 deletions

View File

@ -17,10 +17,12 @@ MAINTAINER= stephen@math.missouri.edu
RUN_DEPENDS= wish8.2:${PORTSDIR}/x11-toolkits/tk82
WRKSRC= ${WRKDIR}/accessx
USE_REINPLACE= yes
USE_X_PREFIX= yes
pre-build:
${PERL} -pi.orig -e "s@g\+\+@${CXX} ${CXXFLAGS} -I${X11BASE}/include@g" ${WRKSRC}/Makefile
${PERL} -pi.orig -e "s@wish -f@wish8.2 -f@g" ${WRKSRC}/accessx
${REINPLACE_CMD} -e "s@g\+\+@${CXX} ${CXXFLAGS} -I${X11BASE}/include@g" ${WRKSRC}/Makefile
${REINPLACE_CMD} -e "s@wish -f@wish8.2 -f@g" ${WRKSRC}/accessx
post-install:
strip ${PREFIX}/bin/ax

View File

@ -0,0 +1,11 @@
--- Access.C.orig Mon Dec 16 20:35:51 2002
+++ Access.C Mon Dec 16 20:36:29 2002
@@ -21,6 +21,8 @@
#include <X11/XKBlib.h>
#include "Access.h"
+using namespace std;
+
//
// Access()
//

View File

@ -1,6 +1,14 @@
--- ax.C-orig Tue Mar 13 23:42:10 2001
+++ ax.C Sun Nov 17 19:26:06 2002
@@ -713,7 +713,7 @@
--- ax.C.orig Tue Mar 13 21:42:10 2001
+++ ax.C Mon Dec 16 20:37:56 2002
@@ -18,6 +18,7 @@
#include "ax.h"
+using namespace std;
///////////////////////////////////////////////////////////////////////////////
//
@@ -713,7 +714,7 @@
///////////////////////////////////////////////////////////////////////////////

View File

@ -0,0 +1,11 @@
--- ax.h.orig Mon Dec 16 20:36:59 2002
+++ ax.h Mon Dec 16 20:37:06 2002
@@ -22,7 +22,7 @@
// Include Files
-#include <iostream.h>
+#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>