2013-09-20 11:08:29 +00:00
|
|
|
# Created by: joerg
|
2008-06-22 22:01:32 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-10-04 19:09:45 +00:00
|
|
|
PORTNAME= cpmtools2
|
2013-09-20 11:08:29 +00:00
|
|
|
PORTVERSION= 2.16
|
2008-06-22 22:01:32 +00:00
|
|
|
CATEGORIES= emulators sysutils
|
2011-01-13 10:13:48 +00:00
|
|
|
MASTER_SITES= http://www.moria.de/~michael/cpmtools/
|
2013-10-04 19:09:45 +00:00
|
|
|
DISTNAME= ${PORTNAME:C/2$//}-${PORTVERSION}
|
2008-06-22 22:01:32 +00:00
|
|
|
|
2012-03-02 23:43:45 +00:00
|
|
|
MAINTAINER= ak@FreeBSD.org
|
2008-06-22 22:01:32 +00:00
|
|
|
COMMENT= Tools to access CP/M disks and disk images
|
|
|
|
|
2011-01-13 10:13:48 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-09-20 11:08:29 +00:00
|
|
|
NO_STAGE= yes
|
2011-01-13 10:13:48 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+=--bindir=${PREFIX}/sbin \
|
|
|
|
--datarootdir=${DATADIR}
|
2008-06-22 22:01:32 +00:00
|
|
|
|
|
|
|
MAN1= cpmls.1 cpmcp.1 cpmrm.1 cpmchmod.1 cpmchattr.1 mkfs.cpm.1 fsck.cpm.1 fsed.cpm.1
|
|
|
|
MAN5= cpm.5
|
|
|
|
|
2012-06-25 04:15:50 +00:00
|
|
|
OPTIONS_DEFINE= LIBDSK
|
|
|
|
|
|
|
|
LIBDSK_DESC= Access to disks and disk images support
|
2008-06-22 22:01:32 +00:00
|
|
|
|
2013-10-04 19:09:45 +00:00
|
|
|
LIBDSK_CONFIGURE_ON= --with-libdsk=${LOCALBASE}
|
|
|
|
LIBDSK_CONFIGURE_OFF= --with-libdsk=''
|
|
|
|
LIBDSK_LIB_DEPENDS+= libdsk.so:${PORTSDIR}/emulators/libdsk
|
2008-06-22 22:01:32 +00:00
|
|
|
|
2011-01-13 10:13:48 +00:00
|
|
|
# remove unneeded getopt*.c
|
|
|
|
# remove curses from all but fsed.cpm
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|getopt$$(OBJEXT)||g; s|getopt1$$(OBJEXT)||g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|\($$(CC).*fsed.cpm$$(OBJEXT).*$$(DEVICEOBJ)\)|\1 -lcurses|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2008-06-22 22:01:32 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
|
2012-06-25 04:15:50 +00:00
|
|
|
.include <bsd.port.mk>
|