- Fix build with clang 6

- Clarify GL dependency
- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2018-06-22 13:00:04 +00:00
parent bd93b4a2fe
commit d976851ec3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473037

View File

@ -18,10 +18,12 @@ LIB_DEPENDS= libvorbis.so:audio/libvorbis
USES= tar:bzip2 gmake openal:al,alut
USE_SDL= sdl
USE_GL= yes
USE_GL= gl glu
MAKE_ARGS= CC="${CC}" CXX="${CXX}"
CXXFLAGS+= -Wno-c++11-narrowing
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/blackshades
@ -40,8 +42,10 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objs/blackshades ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC} && ${COPYTREE_SHARE} Data ${STAGEDIR}${DATADIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} Data ${STAGEDIR}${DATADIR}/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor