aboutsummaryrefslogtreecommitdiffstats
path: root/games/gti/Makefile
blob: a2c5640c52845e248ab305add59194628c89e45b (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
# Created by: TAKATSU Tomonari <tota@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gti
PORTVERSION=    1.2.0
CATEGORIES= games

MAINTAINER= tota@FreeBSD.org
COMMENT=    Just a silly git launcher, basically. Inspired by sl

LICENSE=    GTI
LICENSE_NAME=   MIT-like license
LICENSE_FILE=   ${WRKSRC}/README.md
LICENSE_PERMS=  dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

USE_GITHUB= yes
GH_ACCOUNT= rwos
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT=  97639f3

PLIST_FILES=    bin/${PORTNAME} man/man6/${PORTNAME}.6.gz

GTI_SPEED?= 50
CFLAGS+=    -DGTI_SPEED=${GTI_SPEED}

pre-everything::
    @${ECHO_MSG}
    @${ECHO_MSG} " You can change the speed of the car at compile time."
    @${ECHO_MSG} " For example: \"make GTI_SPEED=100\" # default is 50"
    @${ECHO_MSG}

do-build:
    @${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MANPREFIX}/man/man6

.include <bsd.port.mk>