From 050af2cc0837ba9cbab4ae763020f6fa7108e9f5 Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Sun, 9 Nov 2003 16:35:23 +0000 Subject: [PATCH] Fix ordering: inclusion of definitions of variables; inclusion of bsd.port.pre.mk; inclusion of things that depend on both. While here, pacify portlint a bit. PR: ports/57502 (partial). --- x11-toolkits/viewklass/Makefile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/x11-toolkits/viewklass/Makefile b/x11-toolkits/viewklass/Makefile index 6e6aa6d9e403..9abbcd507843 100644 --- a/x11-toolkits/viewklass/Makefile +++ b/x11-toolkits/viewklass/Makefile @@ -16,23 +16,22 @@ DISTNAME= ViewKlass-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= C++ Framework for Motif -.include - -BUILD_DEPENDS= xmkmf:${PORTSDIR}/devel/imake -.if ${XFREE86_VERSION} == 3 -BUILD_DEPENDS= xmkmf:${PORTSDIR}/devel/imake -.else -BUILD_DEPENDS= xmkmf:${PORTSDIR}/devel/imake-4 -.endif - USE_X_PREFIX= yes USE_MOTIF= yes USE_REINPLACE= yes GNU_CONFIGURE= yes +.include + +.if ${XFREE86_VERSION} == 3 +BUILD_DEPENDS+= xmkmf:${PORTSDIR}/devel/imake +.else +BUILD_DEPENDS+= xmkmf:${PORTSDIR}/devel/imake-4 +.endif + post-patch: @${REINPLACE_CMD} -e 's/^CFLAGS=/CFLAGS+=/g ; \ - s/^CXXFLAGS=/CXXFLAGS+=/g ; \ - s/-g -Wall//g' ${WRKSRC}/Makefile.in + s/^CXXFLAGS=/CXXFLAGS+=/g ; \ + s/-g -Wall//g' ${WRKSRC}/Makefile.in .include