aboutsummaryrefslogtreecommitdiffstats
path: root/games/lmarbles/Makefile
blob: 9b4c81c05b1348dc9e20e05f2f6bf5c530f5a442 (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: verm@drunkmonk.net
# $FreeBSD$

PORTNAME=   lmarbles
PORTVERSION=    1.0.8
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   SF/lgames/${PORTNAME} \
        SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES=  ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
        ${PORTNAME}_icons${EXTRACT_SUFX}:icons

MAINTAINER= ports@FreeBSD.org
COMMENT=    Atomix-like game of moving marbles in puzzles

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

USES=       gmake
USE_SDL=    sdl mixer
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --localstatedir=/var/games/${PORTNAME}

PORTDOCS=   *

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|(datadir)/icons|(datadir)/pixmaps|; \
        s|(datadir)/pixmaps/lmarbles48.gif|(datadir)/pixmaps/lmarbles48.png|' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|-m 666||; \
        s|lmarbles.prfs|lmarbles.prfs.sample|' \
        ${WRKSRC}/src/Makefile.in
    @${REINPLACE_CMD} -e 's|icons/lmarbles48.gif|icons/lmarbles48.png|' \
        ${WRKSRC}/lmarbles.desktop.in

post-install:
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

    cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS ChangeLog README README-SDL.txt" ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/src && ${COPYTREE_SHARE} "manual" ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>