aboutsummaryrefslogtreecommitdiffstats
path: root/games/ttt/Makefile
blob: d359e2d026279a6730bffa77b8f9af51166f952f (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
41
42
43
44
45
46
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$

PORTNAME=   ttt
PORTVERSION=    2011.04
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   ftp://ftp.tuxpaint.org/unix/x/ttt/ \
        SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES=  ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
        ${PORTNAME}.png:icons
EXTRACT_ONLY=   ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Simple one or two player Tic Tac Toe game

LICENSE=    GPLv2 # or later
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       autoreconf
USE_SDL=    mixer sdl
GNU_CONFIGURE=  yes
ALL_TARGET= ${PORTNAME}

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PORTDOCS=   README
OPTIONS_DEFINE= DOCS

SUB_FILES=  ${PORTNAME}

DESKTOP_ENTRIES="Tic-Tac-Toe" "" "${PORTNAME}" \
        "${PORTNAME}" "Game;LogicGame;" ""

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} "images sounds" ${STAGEDIR}${DATADIR})
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>