aboutsummaryrefslogtreecommitdiffstats
path: root/astro/mkgmap-splitter/Makefile
blob: df692ba57acd910c0bef30ce3ecb36de9fb6904c (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
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   splitter
PORTVERSION=    r304
CATEGORIES= astro converters java
MASTER_SITES=   http://www.mkgmap.org.uk/download/ \
        http://mirror.amdmi3.ru/distfiles/
PKGNAMEPREFIX=  mkgmap-

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Tile splitter for mkgmap

NO_STAGE=   yes
NO_BUILD=   yes

USE_JAVA=   yes
JAVA_VERSION=   1.6+

SUB_FILES=  ${PORTNAME}.sh

PORTDOCS=   *

DATADIR=    ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}

.include <bsd.port.options.mk>

do-install:
    ${MKDIR} ${DATADIR}/lib
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${DATADIR}/
    ${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${DATADIR}/lib/
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PKGNAMEPREFIX}${PORTNAME}
.if ${PORT_OPTIONS:MDOCS}
post-install:
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/intro.txt ${DOCSDIR}/
.endif

.include <bsd.port.mk>