aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/wiimms/Makefile
blob: 9f7e2bd45c29a3b114dc7f88b5983d9aac265454 (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
48
49
50
# New ports collection makefile for:    wiimms
# Date created:     4 august 2011
# Whom:         Olivier Cochard-Labbe <olivier@cochard.me>
#
# $FreeBSD$
#

PORTNAME=   wiimms
PORTVERSION=    2.00
CATEGORIES= sysutils
MASTER_SITES=   http://gugus69.free.fr/wiimms/ \
        LOCAL/martymac
DISTNAME=   wit-${PORTVERSION}

MAINTAINER= olivier@cochard.me
COMMENT=    Wiimms ISO Tools

LICENSE=    GPLv2

BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash

USE_GMAKE=  yes

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|g' \
        ${WRKSRC}/*.sh \
        ${WRKSRC}/scripts/*.sh \
        ${WRKSRC}/setup/*.sh \
        ${WRKSRC}/Makefile

pre-configure:
    @${CHMOD} +x ${WRKSRC}/setup.sh

do-configure:
    @cd ${WRKSRC} && ./setup.sh

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/wit ${PREFIX}/bin
    @${INSTALL_PROGRAM} ${WRKSRC}/wwt ${PREFIX}/bin
    @${INSTALL_PROGRAM} ${WRKSRC}/wdf ${PREFIX}/bin
    @${LN} -sf wdf ${PREFIX}/bin/wdf-cat
    @${LN} -sf wdf ${PREFIX}/bin/wdf-dump
    @${MKDIR} ${DATADIR}
    @${INSTALL_DATA} ${WRKSRC}/share/* ${DATADIR}
    @${INSTALL_SCRIPT} ${WRKSRC}/load-titles.sh ${DATADIR}

.include <bsd.port.post.mk>