summaryrefslogtreecommitdiff
path: root/sysutils/hfsexplorer/Makefile
blob: 35d28538f2b267150d69625f27b47f14505f5523 (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
51
52
53
54
# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
# $FreeBSD$

PORTNAME=	hfsexplorer
PORTVERSION=	0.21
PORTREVISION=	1
CATEGORIES=	sysutils java
MASTER_SITES=	SF/catacombae/HFSExplorer/${PORTVERSION}/
DISTNAME=	${PORTNAME}-0_21-src

MAINTAINER=	vg@FreeBSD.org
COMMENT=	HFSExplorer read Mac-formatted harddisks and disk images

BUILD_DEPENDS=	ant:${PORTSDIR}/devel/apache-ant

LICENSE=	GPLv3

DESKTOP_ENTRIES="hfsexplorer" "reader Mac-formatted harddisk" \
		"${DATADIR}/res/icon.png" "${PORTNAME}" \
		"System;Utility;Java;" false

USE_ZIP=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.6

WRKSRC=		${WRKDIR}

NO_STAGE=	yes
do-configure:
	@cd ${WRKSRC}/dist && ${REINPLACE_CMD} -e 's|lib/|${DATADIR}/lib/|g' \
		hfsx.sh resview.sh unhfs.sh
	@${REINPLACE_CMD} -e 's|lib|${DATADIR}/lib|g' \
		${WRKSRC}/dist/runfsb.sh

do-build:
	@cd ${WRKSRC} && ${SH} buildall.sh

do-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC}/dist/doc && ${COPYTREE_SHARE} html ${DOCSDIR}/
.endif

post-install:
	@${MKDIR} ${DATADIR}/lib
	@${MKDIR} ${DATADIR}/res
.for f in hfsx.sh resview.sh unhfs.sh
	@cd ${WRKSRC} && ${INSTALL_SCRIPT} dist/${f} ${PREFIX}/bin
.endfor
	@cd ${WRKSRC} && ${INSTALL_SCRIPT} dist/runfsb.sh ${PREFIX}/bin/${PORTNAME}
	@cd ${WRKSRC} && ${INSTALL_DATA} dist/lib/*.jar ${DATADIR}/lib
	@cd ${WRKSRC} && ${INSTALL_DATA} dist/res/icon.png ${DATADIR}/res

.include <bsd.port.mk>