aboutsummaryrefslogtreecommitdiffstats
path: root/games/popstar/Makefile
blob: 344838dc6251271d1f9ef0a86004e3b4f9d5728f (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
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$

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

MAINTAINER= ports@FreeBSD.org
COMMENT=    Simple puzzle game involving floating stars

LICENSE=    GPLv2 CCbyNCSA3
LICENSE_COMB=   dual
LICENSE_NAME_CCbyNCSA3=Attribution-NonCommercial-ShareAlike 3.0 Unported
LICENSE_FILE_CCbyNCSA3=${WRKSRC}/docs/COPYING-CC-Attrib30.txt
LICENSE_PERMS_CCbyNCSA3=dist-mirror pkg-mirror auto-accept

USES=       gmake
USE_SDL=    image mixer sdl

PORTDOCS=   AUTHORS.txt CHANGES.txt README.txt
OPTIONS_DEFINE= DOCS

DESKTOP_ENTRIES="Pop Star" "" "${PORTNAME}" \
        "${PORTNAME}" "Game;ArcadeGame;" ""

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/

.for d in images music sounds
    @(cd ${WRKSRC}/data && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor

    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

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

.include <bsd.port.mk>