summaryrefslogtreecommitdiff
path: root/games/golly/Makefile
blob: 17fa4a44ae3d56d5e855822f4d1490aa0a24da4f (plain)
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
37
38
39
40
41
42
43

PORTNAME=	golly
PORTVERSION=	3.3
DISTVERSIONSUFFIX=	-src
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Conway's Game of Life and other cellular automata

LICENSE=	GPLv2+

USES=		autoreconf compiler:c++11-lib gl localbase xorg
USE_GL=		gl glu
USE_WX=		3.0+

GNU_CONFIGURE=	yes
# Pretend objdump is available even if it is not e.g. on aarch64.
# The Python shared library name is already looked up via
# distutils.sysconfig.get_config_var("LDLIBRARY") which is unlikely
# to fail; objdump is never actually used.
CONFIGURE_ARGS=	ac_cv_prog_OBJDUMP=/usr/bin/false \
		--with-wx-config=${WX_CONFIG:T}

DESKTOP_ENTRIES=	"Golly" \
			"${COMMENT}" \
			"${PREFIX}/share/pixmaps/golly.xpm" \
			"${PREFIX}/bin/golly" \
			"Education;" \
			""

WRKSRC_SUBDIR=	gui-wx/configure
PATCH_WRKSRC=	${WRKSRC}/../..

OPTIONS_DEFINE=	DOCS

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
	${INSTALL_DATA} ${WRKSRC}/../icons/appicon.xpm \
		${STAGEDIR}${PREFIX}/share/pixmaps/golly.xpm

.include <bsd.port.mk>