From d4214dde4d29e180885e8c4d6dc8549c2a13d882 Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Thu, 1 Apr 2004 09:54:13 +0000 Subject: [PATCH] - Respect CXX and CXXFLAGS PR: ports/65017 Submitted by: maintainer --- multimedia/y4mscaler/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/multimedia/y4mscaler/Makefile b/multimedia/y4mscaler/Makefile index aa0eb1854783..1b92f82c9215 100644 --- a/multimedia/y4mscaler/Makefile +++ b/multimedia/y4mscaler/Makefile @@ -25,16 +25,17 @@ WRKSRC= ${WRKDIR}/${PKGNAME} PORTDOCS= COPYING ChangeLog INSTALL README TODO MAN1= y4mscaler.1 PLIST_FILES= bin/y4mscaler +MAKE_ENV= CXX="${CXX}" .include post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's|-march=i686 -mcpu=i686|${CFLAGS}|' \ - ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|COPT = -O2|#|' \ ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|CXXFLAGS =|CXXFLAGS = ${CXXFLAGS} |' \ + ${WRKSRC}/Makefile .if ${OSVERSION} < 500000 @${REINPLACE_CMD} -e 's|#define HAVE_STDINT_H 1|#undef HAVE_STDINT_H 1|' \ ${WRKSRC}/y4m-config.h