aboutsummaryrefslogtreecommitdiffstats
path: root/astro/osmosis/Makefile
blob: aa2d2103abb37fc25559c4d7b5d460330facb1ad (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
# Created by: Gleb Smirnoff <glebius@FreeBSD.org>
# $FreeBSD$

PORTNAME=   osmosis
PORTVERSION=    0.43.1
CATEGORIES= astro java
MASTER_SITES=   http://bretth.dev.openstreetmap.org/osmosis-build/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Command line Java app for processing OpenStreetMap data

USES=       tar:tgz
NO_BUILD=   yes
NO_ARCH=    yes
WRKSRC=     ${WRKDIR}

USE_JAVA=   yes
JAVA_VERSION=   1.6+

PLIST_FILES=    bin/${PORTNAME}
PORTDATA=   *

post-patch:
    @${REINPLACE_CMD} -e 's|^\(MYAPP_HOME=\).*|\1${DATADIR}|' ${WRKSRC}/bin/osmosis

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    cd ${WRKSRC} && ${COPYTREE_SHARE} "script config lib" ${STAGEDIR}${DATADIR}/
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/osmosis ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>