aboutsummaryrefslogtreecommitdiffstats
path: root/games/hattrickorganizer/Makefile
blob: 6cbabb830ce15ae6db816fd52bd5bb764d4629ea (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
# New ports collection makefile for:    hattrickorganizer
# Date Created:     17 Jan 2005
# Whom:         Lars Engels <lars.engels@0x20.net>
#
# $FreeBSD$
#

PORTNAME=   hattrickorganizer
PORTVERSION=    1.381
CATEGORIES= games java
MASTER_SITES=   http://www.wow-auctions.net/ho/download/ \
        http://www.bsd-geek.de/FreeBSD/distfiles/
DISTNAME=   ho_${PORTVERSION:S/.//g}

MAINTAINER= lars.engels@0x20.net
COMMENT=    A management tool for Hattrick.org written in Java

EXTRACT_AFTER_ARGS= -d ${WRKSRC}

USE_ZIP=      yes
NO_BUILD=     yes
USE_JAVA=     yes
JAVA_VERSION=     1.4+
USE_REINPLACE=    yes

SUB_FILES=    hattrickorganizer.sh

do-install:
    cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \;
    cd ${WRKSRC} && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
    ${REINPLACE_CMD} -e 's|HODIR=`pwd`|HODIR=${DATADIR}|'  ${WRKSRC}/HO.sh
    ${REINPLACE_CMD} 's|^HOHOME=.*|HOHOME=~/\.hattrickorganizer|' ${WRKSRC}/HO.sh
    ${INSTALL_SCRIPT} ${WRKSRC}/HO.sh ${PREFIX}/bin/hattrickorganizer

.include <bsd.port.mk>