freebsd-ports/astro/wmsolar/Makefile
Tobias Kortkamp 470444e802 astro/wmsolar: Fix build with Clang 6
In file included from wmSolar.c:15:
./wmSolar_mask.xbm:6:12: error: constant expression evaluates to 240 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
 0x00,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0xff,0x0f,0xf0,0xff,0xff,0xff,0xff,
           ^~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479076_s338486/logs/errors/wmsolar-1.1.log

In file included from wmSolar.c:18:
./Lunar.h:66:23: error: in-class initializer for static data member of type
      'const double' requires 'constexpr' specifier [-Wstatic-float-init]
  static const double SYNODIC_MONTH = 29.530588861;
                      ^

PR:		230880
Approved by:	tkuiper@inxsoft.net (maintainer timeout, 2 weeks)
2018-09-09 07:04:54 +00:00

28 lines
571 B
Makefile

# Created by: Patrick Li <pat@FreeBSD.org>
# $FreeBSD$
PORTNAME= wmsolar
PORTVERSION= 1.1
CATEGORIES= astro windowmaker
MAINTAINER= tkuiper@inxsoft.net
COMMENT= Dockapp that displays the Solar System viewed from the top
LICENSE= GPLv2
USE_GITHUB= yes
GH_ACCOUNT= engerim42
PLIST_FILES= bin/wmSolar
USE_XORG= x11 xext xpm
USES= dos2unix gmake
USE_CXXSTD= gnu++98
pre-patch:
@${REINPLACE_CMD} -e 's|values.h|float.h|; s|MAXDOUBLE|DBL_MAX|g' \
${WRKSRC}/wmSolar.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wmSolar ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>