aboutsummaryrefslogtreecommitdiff
path: root/games/jvgs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/jvgs/Makefile')
-rw-r--r--games/jvgs/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/games/jvgs/Makefile b/games/jvgs/Makefile
new file mode 100644
index 000000000000..c9b825575d32
--- /dev/null
+++ b/games/jvgs/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: jvgs
+# Date created: 15 Jan 2010
+# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jvgs
+PORTVERSION= 0.4
+CATEGORIES= games
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= A minimalistic platform game
+
+BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
+
+USE_CMAKE= yes
+USE_SDL= sdl mixer
+USE_GL= gl glu
+USE_LUA= 5.1+
+MAKE_JOBS_SAFE= yes
+
+SUB_FILES= ${PORTNAME}
+
+NO_CDROM= contains data under CC-by-NC-SA
+
+PORTDOCS= AUTHORS
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|main.lua|${DATADIR}/&|' ${WRKSRC}/src/main.cpp
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/jvgs ${PREFIX}/libexec/
+ ${INSTALL_SCRIPT} ${WRKDIR}/jvgs ${PREFIX}/bin/
+ ${MKDIR} ${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "resources main.lua" ${DATADIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>