summaryrefslogtreecommitdiff
path: root/games/golly/Makefile
blob: 517838521caf32f6d06fa8f40df6b0f5eb230ef0 (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
44
# $FreeBSD$

PORTNAME=	golly
PORTVERSION=	3.2
PORTREVISION=	4
DISTVERSIONSUFFIX=	-src
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=		compiler:c++11-lib python:2.7
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}
CXXFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

DESKTOP_ENTRIES=	"Golly" \
			"${COMMENT}" \
			"${PREFIX}/share/pixmaps/golly.xpm" \
			"${PREFIX}/bin/golly" \
			"Education;" \
			""
WRKSRC_SUBDIR=	gui-wx/configure

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>