From b9b308110e8a0198143ba1e6c8b9403714a63db7 Mon Sep 17 00:00:00 2001 From: danfe Date: Tue, 21 May 2013 09:05:14 +0000 Subject: - 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. --- emulators/hfs/Makefile | 34 +++++++++++++++++++++------------- emulators/hfs/pkg-descr | 17 ++++++++--------- emulators/hfs/scripts/configure | 14 -------------- 3 files changed, 29 insertions(+), 36 deletions(-) delete mode 100644 emulators/hfs/scripts/configure (limited to 'emulators') 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 # $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 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 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 - -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; -- cgit