blob: ff65a867a5a4f2cce3f6b563f62f1416c9d4243a (
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
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= jvgs
PORTVERSION= 0.5.1
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:C/\.[0-9]+$//}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Minimalistic platform game
BUILD_DEPENDS= swig3.0:devel/swig30
LIB_DEPENDS= libfreetype.so:print/freetype2
USES= cmake lua:51
USE_SDL= sdl mixer
USE_GL= gl glu
SUB_FILES= ${PORTNAME}
NO_CDROM= contains data under CC-by-NC-SA
PLIST_FILES= bin/${PORTNAME} libexec/${PORTNAME}
PORTDOCS= *
PORTDATA= *
BINARY_ALIAS= swig=swig3.0
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|main.lua|${DATADIR}/&|' ${WRKSRC}/src/main.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/jvgs ${STAGEDIR}${PREFIX}/libexec/
${INSTALL_SCRIPT} ${WRKDIR}/jvgs ${STAGEDIR}${PREFIX}/bin/
${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "resources main.lua" ${STAGEDIR}${DATADIR}/
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|