aboutsummaryrefslogtreecommitdiff
path: root/games/linux-steam/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/linux-steam/Makefile')
-rw-r--r--games/linux-steam/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/games/linux-steam/Makefile b/games/linux-steam/Makefile
index b58dde3e7969..2dda2bba69d1 100644
--- a/games/linux-steam/Makefile
+++ b/games/linux-steam/Makefile
@@ -18,13 +18,20 @@ IS_INTERACTIVE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_LINUX= yes
+INSTALLDIR?= steam
+
+PLIST_SUB+= INSTALLDIR=${INSTALLDIR}
+
+pre-everything::
+ @ ${ECHO_MSG} "You can use the INSTALLDIR option to change the install dir"
+
do-build:
@ ${CHMOD} +x ${WRKDIR}/hldsupdatetool.bin && cd ${WRKDIR} && ./hldsupdatetool.bin
@ ${CAT} pkg-message | ${SED} 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE}
do-install:
- @ ${MKDIR} ${PREFIX}/${PORTNAME}
- @ ${CP} ${WRKDIR}/${PORTNAME} ${PREFIX}/${PORTNAME}/
+ @ ${MKDIR} ${PREFIX}/${INSTALLDIR}
+ @ ${CP} ${WRKDIR}/${PORTNAME} ${PREFIX}/${INSTALLDIR}/
@ ${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>