aboutsummaryrefslogtreecommitdiffstats
path: root/games/linux-steam/Makefile
blob: 4f970630fe47ff9e07b81bc1930a63361367c439 (plain) (blame)
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
# New ports collection makefile for:   hlstats
# Date created:        29 December 2003
# Whom:                hideki
#
# $FreeBSD$
#

PORTNAME=   steam
PORTVERSION=    1.0
PORTREVISOIN=   1
CATEGORIES= games linux
MASTER_SITES=   http://www.coreblack.com/files/
PKGNAMEPREFIX=  linux-

MAINTAINER= hido@coreblack.com
COMMENT=    Half Life dedicated server running on steam

RUN_DEPENDS=    ${LINUXBASE}/usr/X11R6/lib/libX11.so.6:${PORTSDIR}/x11/linux-XFree86-libs

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}/${INSTALLDIR}
    @ ${CP} ${WRKDIR}/${PORTNAME} ${PREFIX}/${INSTALLDIR}/
    @ ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>