freebsd-ports/graphics/dilay/Makefile
Piotr Kubaj c5d58a8706 graphics/dilay: fix build with GCC-based architectures
GCC needs -Wno-narrowing:
src/isosurface-extraction/grid.cpp:309:53: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]

While here also add USES=gl.

PR:		239312
Approved by:	yuri (maintainer), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D21143
2019-08-06 19:48:39 +00:00

34 lines
874 B
Makefile

# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= dilay
DISTVERSION= 1.9.0
PORTREVISION= 3
CATEGORIES= graphics
MAINTAINER= yuri@FreeBSD.org
COMMENT= 3D sculpting application
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm
USES= compiler:c++14-lang gl gmake qmake qt:5
USE_GITHUB= yes
GH_ACCOUNT= abau
USE_CXXSTD= c++14
USE_GL= gl
USE_QT= core gui opengl widgets xml buildtools_build
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_gcc= -Wno-narrowing
MAKE_JOBS_UNSAFE= yes # Workaround for: https://github.com/abau/dilay/issues/19 parallel build fails (still a problem despite having been closed)
PLIST_FILES= bin/dilay \
share/applications/dilay.desktop
.for sz in 16 32 48 256
PLIST_FILES+= share/icons/hicolor/${sz}x${sz}/apps/dilay.png
.endfor
.include <bsd.port.mk>