1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

- Trim Makefile header per new world order

- Use DISTVERSION because it contains underscore instead of dot
- Define LICENSE (GPLv2)
- Install README file (as PORTDOCS)
- Remove custom configure script: pass variables to make(1) instead
- Respect CFLAGS (original "-O" probably was sensible default 18.5
  years ago when the port was first added, but makes no sense now)
- Remove no-op `pre-install' target (do not create directories that
  are part of the mtree)
- Cleanup and reformat port description while here

This port (along with similar `emulators/hfsutils') should probably
be moved to sysutils; `sysutils/hfsexplorer' already lives there.
This commit is contained in:
Alexey Dokuchaev 2013-05-21 09:05:14 +00:00
parent e69c0f9b76
commit 2375426c38
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318664
3 changed files with 29 additions and 36 deletions

View File

@ -1,33 +1,41 @@
# New ports collection makefile for: hfs
# Date created: 17 November 1994
# Whom: jmz
#
# Created by: Jean-Marc Zucconi <jmz@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= hfs
PORTVERSION= 0.37
DISTVERSION= 0_37
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= jmz
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
MASTER_SITES= LOCAL/jmz
DISTNAME= ${PORTNAME}${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Read Macintosh HFS floppy disks, hard drives, and CDROMs
COMMENT= Read Macintosh HFS floppy disks, hard drives, and CD-ROMs
LICENCE= GPLv2
CONFLICTS= hfsutils-[0-9]*
USE_GMAKE= yes
MAKE_ARGS= CCPLUSPLUS="${CXX} -c" LD="${CXX}" DEBUG="${CFLAGS}" \
INSTALLPATH="${PREFIX}" MANINSTALLDIR="${MANPREFIX}/man/man1"
MAN1= hfs.1
PLIST_FILES= bin/hfs
PORTDOCS= README
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/.* ||' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|Volume::Enumerate|Enumerate|' \
${WRKSRC}/volume.h
pre-install:
@${MKDIR} ${PREFIX}/bin
@${MKDIR} ${PREFIX}/man/man1
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -1,10 +1,9 @@
hfs provides a command line interface to suite of functions for
accessing Macintosh HFS floppy disks, hard drives and CD-ROMS. The
following functions are available:
This port provides command line utility for accessing Macintosh HFS floppy
disks, hard drives, and CD-ROMs. The following functions are available:
- display a directory listing (ls, dir)
- change directories (cd)
- display the name of the current directory (pwd)
- copy an HFS file into a local file (read)
- display the contents of an HFS file (cat)
- display the partition table on a Macintosh volume.
- Display a directory listing (ls, dir)
- Change directories (cd)
- Display the name of the current directory (pwd)
- Copy an HFS file into a local file (read)
- Display the contents of an HFS file (cat)
- Display the partition table on a Macintosh volume

View File

@ -1,14 +0,0 @@
#!/bin/sh
cd $WRKSRC || exit 1;
mv Makefile Makefile.orig || exit 1;
sed -e 's:/usr/.* ::' <Makefile.orig>Makefile
echo "DEBUG = -O" >> Makefile
echo "INSTALLPATH = $PREFIX" >> Makefile
echo "CCPLUSPLUS = c++ -c" >> Makefile
echo "LD = c++" >> Makefile
echo "MANINSTALLDIR = $PREFIX/man/man1" >> Makefile
exit 0;