aboutsummaryrefslogtreecommitdiff
path: root/graphics/goxel/Makefile
blob: d01dc3a16bf68651040efc57f6316aa0eb849923 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PORTNAME=	goxel
PORTVERSION=	0.12.0
DISTVERSIONPREFIX=	v
PORTREVISION=	1
CATEGORIES=	graphics

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Free and open-source 3D voxel editor
WWW=		https://goxel.xyz/

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libglfw.so:graphics/glfw \
		libpng.so:graphics/png

USES=		compiler:c++17-lang gl gnome pkgconfig scons
USE_GITHUB=	yes
GH_ACCOUNT=	guillaumechereau
USE_GL=		gl
USE_GNOME=	cairo gdkpixbuf2 gtk30

MAKE_ARGS=	mode=release werror=false

DESKTOP_ENTRIES="Goxel" "${COMMENT}" "${PORTNAME}" \
	"${PORTNAME}" "Graphics;3DGraphics;" false

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for n in 16 32 64 128 512 256 1024
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${n}x${n}/apps
	${INSTALL_DATA} ${WRKSRC}/osx/goxel/goxel/Assets.xcassets/AppIcon.appiconset/${n}.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${n}x${n}/apps/goxel.png
.endfor

.include <bsd.port.mk>