aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/qslim
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-11-04 03:26:41 +0800
committerkrion <krion@FreeBSD.org>2003-11-04 03:26:41 +0800
commitdb745590d0bfa768013880dc275528df821d66ef (patch)
treed1fa8cdfa5d103b51ba46ae178480921b4f806f8 /graphics/qslim
parent988d23bfeaa6dc26ccc5d57fc573e5973e0f86fe (diff)
downloadfreebsd-ports-gnome-db745590d0bfa768013880dc275528df821d66ef.tar.gz
freebsd-ports-gnome-db745590d0bfa768013880dc275528df821d66ef.tar.zst
freebsd-ports-gnome-db745590d0bfa768013880dc275528df821d66ef.zip
- Fix build on -current
PR: 58877 Submitted by: Ports Fury
Diffstat (limited to 'graphics/qslim')
-rw-r--r--graphics/qslim/Makefile10
-rw-r--r--graphics/qslim/files/patch-mixkit::src::MxAsp.cxx31
2 files changed, 32 insertions, 9 deletions
diff --git a/graphics/qslim/Makefile b/graphics/qslim/Makefile
index d86774640eca..c7357ff843bc 100644
--- a/graphics/qslim/Makefile
+++ b/graphics/qslim/Makefile
@@ -33,15 +33,7 @@ CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include \
-I${X11BASE}/include/X11 ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} > 500034
CFLAGS+= -DMIX_ANSI_IOSTREAMS -fpermissive
-.endif
-
-.if ${OSVERSION} >= 501000
-BROKEN= "Does not compile on FreeBSD ${OSVERSION}"
-.endif
post-extract:
@${RM} -f ${WRKSRC}/mixkit/src/getopt.h
@@ -61,4 +53,4 @@ do-install:
@${MKDIR} ${PREFIX}/include/mixkit
${INSTALL_DATA} ${WRKSRC}/mixkit/src/*.h ${PREFIX}/include/mixkit
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/qslim/files/patch-mixkit::src::MxAsp.cxx b/graphics/qslim/files/patch-mixkit::src::MxAsp.cxx
new file mode 100644
index 000000000000..f2e842142240
--- /dev/null
+++ b/graphics/qslim/files/patch-mixkit::src::MxAsp.cxx
@@ -0,0 +1,31 @@
+--- mixkit/src/MxAsp.cxx.orig Sat Jan 23 06:50:45 1999
++++ mixkit/src/MxAsp.cxx Mon Nov 3 22:09:45 2003
+@@ -53,8 +53,8 @@
+ }
+
+ #define asprint(V)\
+-out<< *as##.##V##_var; \
+-for(i=1; i<size; i++) out << " " << as##.##V##_var[i]
++out<< *as.V##_var; \
++for(i=1; i<size; i++) out << " " << as.V##_var[i]
+
+ ostream& MxAspVar::print(ostream& out) const
+ {
+@@ -79,7 +79,7 @@
+ #define defset(V, T) \
+ bool MxAspVar::set_##V(V val, uint i) \
+ {\
+- if( type==T && i<size ) { as##.##V##_var[i]=val; return true; } \
++ if( type==T && i<size ) { as.V##_var[i]=val; return true; } \
+ else return false; \
+ }
+
+@@ -94,7 +94,7 @@
+ #define defget(V, T) \
+ V *MxAspVar::get_##V(V *out, uint i) \
+ {\
+- if( type==T && i<size ) { *out = as##.##V##_var[i]; return out; } \
++ if( type==T && i<size ) { *out = as.V##_var[i]; return out; } \
+ else return NULL; \
+ }
+