summaryrefslogtreecommitdiffstats
path: root/games/exult/Makefile
blob: 0c23025d1eb87910213d79c22c926ac1c22bdb0b (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Created by: Igor Pokrovsky <tiamat@telegraph.spb.ru>
# $FreeBSD$

PORTNAME=	exult
PORTVERSION=	1.5.0.20160514
CATEGORIES=	games

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Ultima VII engine

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

LIB_DEPENDS=	libvorbis.so:audio/libvorbis \
		libpng.so:graphics/png

USE_GITHUB=	yes
GH_TAGNAME=	b15afba

USES=		autoreconf compiler:c++11-lib gmake libtool localbase pkgconfig
USE_XORG=	xext
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-alsa \
		--with-icondir=${PREFIX}/share/pixmaps

SUB_FILES=	pkg-message

OPTIONS_DEFINE=		DOCS FLUIDSYNTH GIMP STUDIO THUMBNAILER
OPTIONS_SINGLE=		SDL
OPTIONS_SINGLE_SDL=	SDL1 SDL2
OPTIONS_DEFAULT=	SDL1 STUDIO
OPTIONS_SUB=		yes

FLUIDSYNTH_LIB_DEPENDS=	libfluidsynth.so:audio/fluidsynth
FLUIDSYNTH_CONFIGURE_ENABLE=\
			fluidsynth
GIMP_DESC=		GIMP plugin support
GIMP_LIB_DEPENDS=	libgimp-2.0.so:graphics/gimp-app
GIMP_CONFIGURE_ENABLE=	gimp-plugin
SDL1_DESC=		Simple Direct Media Layer 1 support
SDL1_USE=		sdl=mixer
SDL1_CONFIGURE_ARGS=	--with-sdl=sdl12
SDL2_DESC=		Simple Direct Media Layer 2 support
SDL2_USE=		sdl=mixer2
SDL2_CONFIGURE_ARGS=	--with-sdl=sdl2
STUDIO_DESC=		Install Exult Studio
STUDIO_CONFIGURE_ENABLE=\
			exult-studio exult-studio-support
STUDIO_USE=		gnome=libglade2
THUMBNAILER_DESC=	Gnome SHP thumbnailer support
THUMBNAILER_USES=	shared-mime-info
THUMBNAILER_USE=	gnome=libgnomeui
THUMBNAILER_CONFIGURE_ENABLE=\
			gnome-shp-thumbnailer

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in FAQ NEWS README
	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud