summaryrefslogtreecommitdiff
path: root/games/onscripter/Makefile
blob: ce20bacaaa1e4df1e4832cc58e11eb2c375e1ec0 (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
# $NetBSD: Makefile,v 1.39 2015/04/25 14:23:01 tnn Exp $
#

DISTNAME=		onscripter-20150208
PKGREVISION=		1
CATEGORIES=		games
MASTER_SITES=		http://onscripter.sourceforge.jp/

MAINTAINER=		tsutsui@NetBSD.org
HOMEPAGE=		http://onscripter.sourceforge.jp/onscripter.html
COMMENT=		Interpreter to execute a script for NScripter
LICENSE=		gnu-gpl-v2

USE_LANGUAGES=	c++

INSTALLATION_DIRS=	bin \
			share/doc/onscripter

MAKE_FILE=	Makefile.Linux
BUILD_TARGET=	ALL

USE_TOOLS+=	pkg-config

.include "options.mk"

SUBST_CLASSES+=		fix
SUBST_STAGE.fix=	pre-configure
SUBST_FILES.fix=	${MAKE_FILE}
SUBST_SED.fix=		-e 's!@RM@!${RM}!g'
SUBST_SED.fix+=		-e 's!@CXX@!${CXX:Q}!g'
SUBST_SED.fix+=		-e 's!@LD@!${LD:Q}!g'
SUBST_SED.fix+=		-e 's!@CXXFLAGS@!${CXXFLAGS:Q}!g'
SUBST_SED.fix+=		-e 's!@PDA_DEFS@!${PDA_DEFS:Q}!g'

do-install:
.for f in nsaconv nsadec onscripter sarconv sardec
	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/bin
.endfor
.for f in ogapee.css onscripter.html
	${INSTALL_DATA} ${WRKSRC}/www/${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.endfor
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}

.include "../../archivers/bzip2/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../multimedia/smpeg/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"