pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add small wrapper for LOVE2D games.



Module Name:	pkgsrc-wip
Committed By:	coypu <coypu%sdf.org@localhost>
Pushed By:	coypu
Date:		Sun Sep 30 16:31:39 2018 +0300
Changeset:	918965acf72672c42cf8f805f53545a29878b7ec

Added Files:
	mk/love.mk

Log Message:
Add small wrapper for LOVE2D games.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=918965acf72672c42cf8f805f53545a29878b7ec

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mk/love.mk | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diffs:
diff --git a/mk/love.mk b/mk/love.mk
new file mode 100644
index 0000000000..cac73b6a96
--- /dev/null
+++ b/mk/love.mk
@@ -0,0 +1,23 @@
+# $NetBSD$
+#
+# Wrapper for LOVE2D games.
+# Creates launchers for the required version.
+#
+# The following system variables must be defined before:
+#	LOVE_GAME			Name of the executable created
+#	LOVE_DATA			.love filename
+#	LOVE_VERSION			LOVE version to be used. 0.8, 0.9, ..
+
+do-build:
+	${ECHO} '#!/bin/sh' > ${WRKSRC}/${LOVE_GAME}
+	${ECHO} '${PREFIX}/love${LOVE_VERSION}/bin/love ${PREFIX}/share/games/${LOVE_DATA}' \
+		>> ${WRKSRC}/${LOVE_GAME}
+
+LOVE_VERSION_NODOT=${LOVE_VERSION:S/.//}
+
+INSTALLATION_DIRS+=	bin share/games
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/${LOVE_DATA} ${DESTDIR}${PREFIX}/share/games/${LOVE_DATA}
+	${INSTALL_SCRIPT} ${WRKSRC}/${LOVE_GAME} ${DESTDIR}${PREFIX}/bin/${LOVE_GAME}
+
+DEPENDS+=	love${LOVE_VERSION_NODOT}-[0-9]*:../../wip/love${LOVE_VERSION_NODOT}


Home | Main Index | Thread Index | Old Index