mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
- Add USES=gl
- Set c++ standard and fix passing c++ flags to the complier, which in turn fixes build on arm and aarch64 - Switch to options helpers
This commit is contained in:
parent
6e17eacc87
commit
e06cc9c05a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=509617
@ -19,11 +19,12 @@ LIB_DEPENDS= libsndfile.so:audio/libsndfile \
|
||||
libpng.so:graphics/png \
|
||||
libfreetype.so:print/freetype2
|
||||
|
||||
USES= gmake jpeg openal:al pkgconfig dos2unix
|
||||
USES= gmake jpeg gl openal:al pkgconfig dos2unix
|
||||
DOS2UNIX_GLOB= Makefile ResourcePtr.inl
|
||||
USE_XORG= x11 xrandr
|
||||
USE_GL= gl glu
|
||||
USE_LDCONFIG= yes
|
||||
USE_CXXSTD= c++98
|
||||
DESTDIRNAME= STAGEDIR
|
||||
|
||||
WRKSRC= ${WRKDIR}/SFML-${PORTVERSION}
|
||||
@ -40,10 +41,12 @@ post-extract:
|
||||
@${FIND} ${WRKSRC}/samples/bin/ -type f -maxdepth 1 -delete
|
||||
|
||||
post-install:
|
||||
${FIND} ${STAGEDIR}${PREFIX}/include/SFML -name "*.hpp" -exec ${REINPLACE_CMD} -i '' -e '/#include/ s|SFML|&1|' {} \;
|
||||
${MV} ${STAGEDIR}${PREFIX}/include/SFML ${STAGEDIR}${PREFIX}/include/SFML${PKGNAMESUFFIX}
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
@${FIND} ${STAGEDIR}${PREFIX}/include/SFML -name "*.hpp" -exec ${REINPLACE_CMD} -i '' -e '/#include/ s|SFML|&1|' {} \;
|
||||
@${MV} ${STAGEDIR}${PREFIX}/include/SFML ${STAGEDIR}${PREFIX}/include/SFML${PKGNAMESUFFIX}
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
$(OBJ): %.o: %.cpp
|
||||
- $(CPP) -o $@ -c $< $(CFLAGS) -I/usr/include/freetype2
|
||||
+ $(CXX) -o $@ -c $< $(CFLAGS) -I/usr/include/freetype2
|
||||
+ $(CXX) -o $@ -c $< $(CXXFLAGS) -I/usr/include/freetype2
|
||||
|
||||
$(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB): %.o: %.c
|
||||
- $(CC) -o $@ -c $< $(CFLAGSEXT) -DSTBI_FAILURE_USERMSG
|
||||
|
Loading…
Reference in New Issue
Block a user