aboutsummaryrefslogtreecommitdiffstats
path: root/games/secretmaryochronicles-music/Makefile
blob: 471e5ac309e422646b455496b182970994474bc2 (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
47
# New ports collection makefile for:    secretmaryochronicles-music
# Date created:     5 Aug 2008
# Whom:         Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   secretmaryochronicles-music
PORTVERSION=    5.0
CATEGORIES= games
MASTER_SITES=   SF/smclone/Addon%20-%20Music/${PORTVERSION}
DISTNAME=   SMC_Music_${PORTVERSION}_high

MAINTAINER= adamw@FreeBSD.org
COMMENT=    Background music for Secret Maryo Chronicles

RUN_DEPENDS=    smc:${PORTSDIR}/games/secretmaryochronicles

USE_ZIP=    yes

WRKSRC=     ${WRKDIR}
DATADIR=    ${PREFIX}/share/smc
NO_BUILD=   yes

PORTDOCS=   Addon_-_Music_Readme.txt

.include <bsd.port.options.mk>

post-patch:
# The pointyhat build system doesn't like spaces in $PORTDOCS,
# so this makes it happier
    ${MV} ${WRKSRC}/docs/Addon\ -\ Music\ Readme.txt \
        ${WRKSRC}/docs/Addon_-_Music_Readme.txt

do-install:
    cd ${WRKSRC}/data && \
        ${FIND} music | ${CPIO} -pdmvu ${DATADIR}

post-install:
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>