aboutsummaryrefslogtreecommitdiff
path: root/games/adonthell/Makefile
blob: f9876d203576ca4582d77827d02070cfd14d7463 (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
PORTNAME=	adonthell
PORTVERSION=	0.3.8
PORTREVISION=	3
CATEGORIES=	games
MASTER_SITES=	SAVANNAH
DISTFILES=	${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Role playing game engine
WWW=		https://adonthell.nongnu.org/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfreetype.so:print/freetype2 \
		libogg.so:audio/libogg \
		libvorbis.so:audio/libvorbis

USES=		gettext gmake localbase pkgconfig python sdl
USE_CXXSTD=	c++14
USE_SDL=	mixer2 ttf2

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS=	--disable-py-debug \
		--disable-pyc \
		--with-py-libs="$$(${PYTHON_CMD}-config --ldflags --embed)" \
		--with-python=${PYTHON_CMD}

PLIST_DIRS=	${DATADIR}/games
PLIST_FILES=	bin/adonthell \
		share/man/man6/adonthell.6.gz \
		${DATADIR}/modules/adonthell.py \
		${DATADIR}/modules/dialogue.py

post-patch:
	@${REINPLACE_CMD} 's,adonthell-0.3,adonthell,g' ${WRKSRC}/src/Makefile.in

.include <bsd.port.mk>