Support CXX/CXXFLAGS properly
PR: 44348 Submitted by: Ports Fury
This commit is contained in:
parent
529cb4a7ea
commit
5e457c68d7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68572
@ -14,12 +14,21 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= wx_gtk-2.2:${PORTSDIR}/x11-toolkits/wxgtk
|
||||
LIB_DEPENDS= wx_gtk-2.2.2:${PORTSDIR}/x11-toolkits/wxgtk
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USE_BZIP2= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
USE_REINPLACE= yes
|
||||
USE_GMAKE= yes
|
||||
ALL_TARGET= # empty
|
||||
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
||||
ALL_TARGET= default
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|g++|\$$\(CXX)|g ; \
|
||||
s|-O2 -g -Wall -W|\$$\(CXXFLAGS\)|g ; \
|
||||
s|[(]CC[)]|\(CXX\)|g ; \
|
||||
s|gcc|\$$\(CXX\)|g' ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/multivideo ${PREFIX}/bin
|
||||
|
Loading…
Reference in New Issue
Block a user