summaryrefslogtreecommitdiff
path: root/emulators/hfs
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2013-05-21 09:05:14 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2013-05-21 09:05:14 +0000
commit2375426c3876af4d902aae0673da7bec502193e7 (patch)
treea0b647c93d1d760614d2b2ad892aaeef6f80e822 /emulators/hfs
parent- Switch default version of Tcl/Tk from 8.5 to 8.6 (diff)
- 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.
Notes
Notes: svn path=/head/; revision=318664
Diffstat (limited to 'emulators/hfs')
-rw-r--r--emulators/hfs/Makefile34
-rw-r--r--emulators/hfs/pkg-descr17
-rw-r--r--emulators/hfs/scripts/configure14
3 files changed, 29 insertions, 36 deletions
diff --git a/emulators/hfs/Makefile b/emulators/hfs/Makefile
index 9111e45094de..c58a1250fd13 100644
--- a/emulators/hfs/Makefile
+++ b/emulators/hfs/Makefile
@@ -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>
diff --git a/emulators/hfs/pkg-descr b/emulators/hfs/pkg-descr
index 30d071f14386..56f1a17a59d5 100644
--- a/emulators/hfs/pkg-descr
+++ b/emulators/hfs/pkg-descr
@@ -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
diff --git a/emulators/hfs/scripts/configure b/emulators/hfs/scripts/configure
deleted file mode 100644
index d604234cbc42..000000000000
--- a/emulators/hfs/scripts/configure
+++ /dev/null
@@ -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;