summaryrefslogtreecommitdiff
path: root/games/slade/Makefile
blob: 19b353aad9375e1b541d8034291a21a291209162 (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=	slade
PORTVERSION=	3.1.1.1
CATEGORIES=	games

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Modern editor for Doom-engine based games and source ports

LICENSE=	GPLv2

BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS=	libsfml-system.so:${PORTSDIR}/devel/sfml \
		libftgl.so:${PORTSDIR}/graphics/ftgl \
		libfreeimage.so:${PORTSDIR}/graphics/freeimage

USE_GITHUB=	yes
GH_ACCOUNT=	sirjuddington
GH_PROJECT=	${PORTNAME:tu}

USES=		cmake compiler:c++11-lib pkgconfig
USE_WX=		3.0+
USE_CXXSTD=	c++11

PLIST_FILES=	bin/slade share/slade3/slade.pk3

OPTIONS_DEFINE=	FLUIDSYNTH
OPTIONS_DEFAULT=	FLUIDSYNTH

FLUIDSYNTH_LIB_DEPENDS=	libfluidsynth.so:${PORTSDIR}/audio/fluidsynth
FLUIDSYNTH_CMAKE_OFF=	-DNO_FLUIDSYNTH:BOOL=ON

post-patch:
	@${REINPLACE_CMD} -e 's,"alsa","oss",' \
		${WRKSRC}/src/Audio/MIDIPlayer.cpp

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/${PORTNAME}3
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.pk3 \
		${STAGEDIR}${PREFIX}/share/${PORTNAME}3

.include <bsd.port.mk>