aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2005-01-24 18:31:59 +0800
committerdanfe <danfe@FreeBSD.org>2005-01-24 18:31:59 +0800
commitcdb1b4c090b5df6ba88f8eea882fa0ed267f7a7e (patch)
tree2a0beafa8248e751f828d36836878572a8e58a38
parentbc5e5b3c224779e530b5554f1b6ac41abeb3d52c (diff)
downloadfreebsd-ports-gnome-cdb1b4c090b5df6ba88f8eea882fa0ed267f7a7e.tar.gz
freebsd-ports-gnome-cdb1b4c090b5df6ba88f8eea882fa0ed267f7a7e.tar.zst
freebsd-ports-gnome-cdb1b4c090b5df6ba88f8eea882fa0ed267f7a7e.zip
- Fix bad C++ code to unbreak with recent GCC
- Reindent Makefile (to make portlint(1) happy)
-rw-r--r--x11-toolkits/viewkit/Makefile33
1 files changed, 15 insertions, 18 deletions
diff --git a/x11-toolkits/viewkit/Makefile b/x11-toolkits/viewkit/Makefile
index 75ef65d79342..8fa8160593b4 100644
--- a/x11-toolkits/viewkit/Makefile
+++ b/x11-toolkits/viewkit/Makefile
@@ -1,38 +1,35 @@
-#
-# ports collection makefile for: Viewkit from Hungry Programming.
-# Date created: Aug 2000
-# Whom: peterho@ned.dem.csiro.au
+# New ports collection makefile for: Viewkit from Hungry Programming
+# Date created: Aug 2000
+# Whom: peterho@ned.dem.csiro.au
#
# $FreeBSD$
#
-#
-#
-PORTNAME= viewkit
-PORTVERSION= 0.00
+PORTNAME= viewkit
+PORTVERSION= 0.00
CATEGORIES= x11-toolkits
MASTER_SITES= ftp://ftp.hungry.com/pub/hungry/viewkit/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= fenner
-DISTNAME= libvk-Apr19-2243
+DISTNAME= libvk-Apr19-2243
MAINTAINER= ports@FreeBSD.org
COMMENT= ViewKit workalike from Hungry Programmers
WANT_AUTOCONF_VER= 253
-MOTIFPACKAGE?= open-motif
-USE_X_PREFIX= yes
-USE_MOTIF = yes
+MOTIFPACKAGE?= open-motif
+USE_X_PREFIX= yes
+USE_MOTIF= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-${MOTIFPACKAGE}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
-.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's/^friend/friend class/' ${WRKSRC}/Vk/VkAction.h \
+ ${WRKSRC}/Vk/VkApp.h ${WRKSRC}/Vk/VkMenu.h
+ @${REINPLACE_CMD} -E 's/\((VkPipe::handleInput)\)/\1/' ${WRKSRC}/VkPipe.C
pre-configure:
@cd ${WRKSRC}; ${CHMOD} +w configure; ${AUTOCONF}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>