blob: 191ead90c38f33f8d6211e32d9855dcf4213bf2c (
plain)
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: Jean-Marc Zucconi <jmz@FreeBSD.org>
# $FreeBSD$
PORTNAME= hfs
DISTVERSION= 0_37
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= LOCAL/jmz
DISTNAME= ${PORTNAME}${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Read Macintosh HFS floppy disks, hard drives, and CD-ROMs
LICENSE= GPLv2
CONFLICTS= hfsutils-[0-9]*
DEPRECATED= No upstream, no public distfiles; consider using 'sysutils/hfsutils'
USE_GMAKE= yes
MAKE_ARGS= CCPLUSPLUS="${CXX} -c" LD="${CXX}" DEBUG="${CFLAGS}" \
INSTALLPATH="${PREFIX}" MANINSTALLDIR="${MANPREFIX}/man/man1"
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README
OPTIONS_DEFINE= ALIASES DOCS
ALIASES_DESC= Install subcommand symbolic links
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MALIASES}
ALIASES= bin/hcat bin/hcd bin/hdir bin/hls bin/hpwd bin/hread
PLIST_FILES+= ${ALIASES}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/.* ||' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|Volume::Enumerate|Enumerate|' \
${WRKSRC}/volume.h
post-install:
.if ${PORT_OPTIONS:MALIASES}
. for l in ${ALIASES}
${LN} -sf ${PORTNAME} ${PREFIX}/${l}
. endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|