blob: f230d779e9473de9cf8d55c68303645e692a1bca (
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
47
|
PORTNAME= kyra
PORTVERSION= 2.1.3
PORTREVISION= 6
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}2/${PORTVERSION}
DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/./_/g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple Sprite engine written in C++
WWW= https://www.grinninglizard.com/kyra/
LICENSE= GPLv2
LIB_DEPENDS= libpng.so:graphics/png \
libtiff.so:graphics/tiff
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= compiler gl gmake jpeg sdl zip
USE_GL= gl
USE_SDL= image sdl
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
MAKEFILE= MakefileKyra
MAKE_ENV= MAKE_KYRA=RELEASE KYRA_OPENGL=YES
MAKE_ARGS= CC="${CC}" CXX="${CXX}" LD="${CXX}" \
RELEASE_CFLAGS="${CFLAGS}" RELEASE_CXXFLAGS="${CXXFLAGS}"
do-install:
.for i in encoder spriteed
(cd ${WRKSRC}/${i} && ${INSTALL_PROGRAM} kr${i} ${STAGEDIR}${PREFIX}/bin)
.endfor
(cd ${WRKSRC}/engine && ${INSTALL_DATA} libkyra.a ${STAGEDIR}${PREFIX}/lib)
@${MKDIR} ${STAGEDIR}${PREFIX}/include/Kyra
(cd ${WRKSRC} && ${INSTALL_DATA} kyra.h ${STAGEDIR}${PREFIX}/include/Kyra)
.for i in engine gui guiExtended util
@${MKDIR} ${STAGEDIR}${PREFIX}/include/Kyra/${i}
(cd ${WRKSRC}/${i} && ${INSTALL_DATA} *.h \
${STAGEDIR}${PREFIX}/include/Kyra/${i})
.endfor
@${MKDIR} ${STAGEDIR}${PREFIX}/include/Kyra/tinyxml
(cd ${WRKSRC}/../tinyxml && ${INSTALL_DATA} *.h \
${STAGEDIR}${PREFIX}/include/Kyra/tinyxml)
.include <bsd.port.mk>
|