1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

- Trim Makefile header per recent agreements

- Define LICENSE (GPLv2), reword COMMENT line
- Install several PORTDOCS (like Gentoo)
- Make Tcl/Tk support optional and default to off
- Fix the build with Tcl 8.6 (obtained from Gentoo)
- Install hfsck(1) utility (sadly, no manpage)
- Cleanup and reformat port description while here

This port (along with similar `emulators/hfs') should probably be moved to
sysutils; `sysutils/hfsexplorer' already lives there.
This commit is contained in:
Alexey Dokuchaev 2013-05-22 09:48:12 +00:00
parent e506b9247c
commit dd7f46bbe0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318760
3 changed files with 58 additions and 28 deletions

View File

@ -1,26 +1,21 @@
# New ports collection makefile for: hfsutils
# Date Created: 7 Sep 1997
# Whom: Vanilla I. Shu <vanilla@MinJe.com.TW>
#
# Created by: Vanilla I. Shu <vanilla@MinJe.com.TW>
# $FreeBSD$
#
PORTNAME= hfsutils
PORTVERSION= 3.2.6
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= emulators tk
MASTER_SITES= ftp://ftp.mars.org/pub/hfs/
MAINTAINER= ports@FreeBSD.org
COMMENT= Yet Another HFS Utility
COMMENT= Utilities for accessing Apple's HFS volumes
LICENSE= GPLv2
CONFLICTS= hfs-[0-9]*
USE_TCL= 84
USE_TK= 84
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} --with-tk=${TK_LIBDIR}
ALL_TARGET= all hfsck/hfsck
MAN1= hattrib.1 \
hcd.1 \
@ -28,8 +23,6 @@ MAN1= hattrib.1 \
hdel.1 \
hdir.1 \
hformat.1 \
hfs.1 \
hfssh.1 \
hfsutils.1 \
hls.1 \
hmkdir.1 \
@ -38,10 +31,47 @@ MAN1= hattrib.1 \
hrename.1 \
hrmdir.1 \
humount.1 \
hvol.1 \
hvol.1
OPTIONS_DEFINE= TCLTK DOCS
TCLTK_DESC= Build tools that require Tcl/Tk support
PORTDOCS= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTCLTK}
USE_TCL= 84+
USE_TK= 84+
CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} --with-tk=${TK_LIBDIR}
CPPFLAGS+= -I${LOCALBASE}/include
MAN1+= hfs.1 \
hfssh.1 \
xhfs.1
PLIST_FILES+= bin/hfs \
bin/hfssh \
bin/xhfs
.else
CONFIGURE_ARGS= --without-tcl --without-tk
.endif
post-patch:
# Unbreak against Tcl 8.6
@${ECHO_CMD} '#define USE_INTERP_RESULT 1' >> ${WRKSRC}/config.h.in
post-install:
${CHMOD} 755 ${PREFIX}/bin/hfs
${INSTALL_PROGRAM} ${WRKSRC}/hfsck/hfsck ${PREFIX}/bin
.if ${PORT_OPTIONS:MTCLTK}
@${CHMOD} 755 ${PREFIX}/bin/hfs
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
. for f in BLURB CHANGES README TODO doc/*.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
. endfor
.endif
.include <bsd.port.mk>

View File

@ -1,14 +1,16 @@
HFS is the "Hierarchical File System" used on modern Macintosh computers.
With this package, you can read and write Macintosh-formatted media such as
floppy disks, CD-ROMs, and SCSI hard disks on most UNIX platforms. You can
also format raw media into an HFS volume.
HFS is the "Hierarchical File System" used on modern Macintosh computers.
With this package, you can read and write Macintosh-formatted media such as
floppy disks, CD-ROMs, and SCSI hard disks on most UNIX platforms. You can
also format raw media into an HFS volume.
This package contains a number of different tools:
This package contains a number of different tools:
* Several command-line programs (hmount, hls, hcopy, et al.)
* A Tk-based front-end for browsing and copying files through a
variety of transfer modes (MacBinary, BinHex, text, etc.)
* A Tcl package and interface for scriptable access to volumes
* A C library for low-level access to volumes
- Several command-line programs (hmount, hls, hcopy, et al.)
- Tk-based front-end for browsing and copying files through a
variety of transfer modes (MacBinary, BinHex, text, etc.)
- Tcl package and interface for scriptable access to volumes
- C library for low-level access to volumes
Support for Apple's new Extended Format (HFS+) is currently not available.
WWW: http://www.mars.org/home/rob/proj/hfs/

View File

@ -4,8 +4,7 @@ bin/hcopy
bin/hdel
bin/hdir
bin/hformat
bin/hfs
bin/hfssh
bin/hfsck
bin/hls
bin/hmkdir
bin/hmount
@ -14,4 +13,3 @@ bin/hrename
bin/hrmdir
bin/humount
bin/hvol
bin/xhfs