pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk
Module Name: pkgsrc
Committed By: maya
Date: Sun Sep 30 19:22:18 UTC 2018
Added Files:
pkgsrc/mk: love.mk
Log Message:
Add love.mk, helps generate wrappers to execute LOVE2D games
with the correct LOVE version.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mk/love.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/mk/love.mk
diff -u /dev/null pkgsrc/mk/love.mk:1.1
--- /dev/null Sun Sep 30 19:22:18 2018
+++ pkgsrc/mk/love.mk Sun Sep 30 19:22:18 2018
@@ -0,0 +1,23 @@
+# $NetBSD: love.mk,v 1.1 2018/09/30 19:22:18 maya Exp $
+#
+# 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