mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Unbreak the build against new Clang version 6.0.0: struct FavoritesEntry
defines its member `fov' of type `double'; comparing it to NULL is bogus and wrong, no wonder this upsets strict compilers. PR: 224989
This commit is contained in:
parent
3d5e6f0084
commit
95462c3ccd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459176
@ -75,6 +75,9 @@ PORTDOCS= AUTHORS ChangeLog README
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E '/fav(->|\.)fov/s|NULL|0.0|' \
|
||||
${WRKSRC}/src/celestia/celestiacore.cpp \
|
||||
${WRKSRC}/src/celestia/favorites.cpp
|
||||
# Fix Lua discovery pkg-config(1) calls
|
||||
@${REINPLACE_CMD} -E 's|lua5\.?|lua-5.|' ${WRKSRC}/configure
|
||||
# Remove controversial compiler options (respect our C[XX]FLAGS)
|
||||
|
Loading…
Reference in New Issue
Block a user