diff options
author | danfe <danfe@FreeBSD.org> | 2018-01-16 22:31:17 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2018-01-16 22:31:17 +0800 |
commit | 641994819f59ec08a4499283e62292bf7c3df832 (patch) | |
tree | 17b4f7bdacf5d7db30d9e1dab68a5c5f27519587 /astro | |
parent | 218e26c97fdfb5be0cec03365c422956e3485982 (diff) | |
download | freebsd-ports-gnome-641994819f59ec08a4499283e62292bf7c3df832.tar.gz freebsd-ports-gnome-641994819f59ec08a4499283e62292bf7c3df832.tar.zst freebsd-ports-gnome-641994819f59ec08a4499283e62292bf7c3df832.zip |
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
Diffstat (limited to 'astro')
-rw-r--r-- | astro/celestia/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/astro/celestia/Makefile b/astro/celestia/Makefile index 3145eb33fd8a..776bfb9c8e84 100644 --- a/astro/celestia/Makefile +++ b/astro/celestia/Makefile @@ -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) |