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