aboutsummaryrefslogtreecommitdiff
path: root/games/hex-a-hop/Makefile
blob: 17e71716c2c601074960097d177bed4dc7f5d3a5 (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
37
38
39
40
41
42
43
44
45
46
# Created by: jamie

PORTNAME=	hex-a-hop
PORTVERSION=	1.1.0
PORTREVISION=	6
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME:S/-//g}/${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Puzzle game based on hexagonal tiles

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

USES=		iconv localbase sdl
USE_SDL=	sdl
USE_CXXSTD=	c++98
GNU_CONFIGURE=	yes

OPTIONS_DEFINE=	PANGO SOUND NLS DEBUG
OPTIONS_DEFAULT=	SOUND

DEBUG_CONFIGURE_ENABLE=	debug

NLS_USES=		gettext
NLS_CONFIGURE_ENV=	ac_cv_header_libintl_h=yes
NLS_CONFIGURE_ENV_OFF=	ac_cv_header_libintl_h=no
NLS_LDFLAGS=		-lintl

PANGO_DESC=	Use SDL_Pango instead of SDL_ttf
PANGO_USE=	SDL=pango
PANGO_USE_OFF=	SDL=ttf
PANGO_CONFIGURE_ON=	--disable-sdlttf

SOUND_DESC=	Sound support
SOUND_USE=	SDL=mixer
SOUND_CONFIGURE_ENABLE=	sound

DESKTOP_ENTRIES="Hex-a-Hop" "${COMMENT}" \
		"${DATADIR}/icon.bmp" \
		"hex-a-hop" "LogicGame;Game;" false

post-patch:
	@${REINPLACE_CMD} -E '/CFLAGS|CXXFLAGS/s/-g//' ${WRKSRC}/configure

.include <bsd.port.mk>