freebsd-ports/emulators/cpmtools27/Makefile
Felippe de Meirelles Motta 1b6f967d94 This port allows to access CP/M file systems similar to the well-known mtools
package, which accesses MSDOS file systems. I use it for file exchange with a
Z80-PC simulator, but it works on floppy devices as well.

WWW: http://www.moria.de/~michael/cpmtools/

PR:		ports/120184
Submitted by:	Sven Klose <pixel@hugbox.org>
Approved by:	gabor (mentor, implicit)
2008-06-22 22:01:32 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: cpmtools
# Date created: 31 January 2008
# Whom: joerg
#
# $FreeBSD$
#
PORTNAME= cpmtools27
PORTVERSION= 2.7
CATEGORIES= emulators sysutils
MASTER_SITES= http://www.moria.de/~michael/cpmtools/
DISTNAME= cpmtools-${PORTVERSION}
MAINTAINER= pixel@hugbox.org
COMMENT= Tools to access CP/M disks and disk images
LIB_DEPENDS+= dmalloc:${PORTSDIR}/devel/dmalloc
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=--mandir=${PREFIX}/man --bindir=${PREFIX}/sbin \
--datarootdir=${PREFIX}/share/${PORTNAME} --with-dmalloc
MAN1= cpmls.1 cpmcp.1 cpmrm.1 cpmchmod.1 cpmchattr.1 mkfs.cpm.1 fsck.cpm.1 fsed.cpm.1
MAN5= cpm.5
OPTIONS= RAW_LIBDSK "With LIBDSK support with direct floppy access" on \
LIBDSK "With LIBDSK support (no direct floppy access)" off
.include <bsd.port.pre.mk>
.if defined(WITH_LIBDSK) || defined(WITH_RAW_LIBDSK)
LIB_DEPENDS+= dsk.5:${PORTSDIR}/emulators/libdsk
CONFIGURE_ARGS+=--with-libdsk=${LOCALBASE} --with-device=LibDsk
.else
CONFIGURE_ARGS+=--without-libdsk --with-device=posix
.endif
.if defined(WITH_RAW_LIBDSK)
CONFIGURE_ARGS+=--enable-floppy
.else
CONFIGURE_ARGS+=--disable-floppy
.endif
pre-install:
@${MKDIR} ${DATADIR}
.include <bsd.port.post.mk>