1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/emulators/cpmtools2/Makefile
Alex Kozlov 06c35fa8de - Convert to options helpers
- Remove Author tag from pkg-descr
- Resolve pkgname collision
2013-10-04 19:09:45 +00:00

43 lines
1.0 KiB
Makefile

# Created by: joerg
# $FreeBSD$
PORTNAME= cpmtools2
PORTVERSION= 2.16
CATEGORIES= emulators sysutils
MASTER_SITES= http://www.moria.de/~michael/cpmtools/
DISTNAME= ${PORTNAME:C/2$//}-${PORTVERSION}
MAINTAINER= ak@FreeBSD.org
COMMENT= Tools to access CP/M disks and disk images
LICENSE= GPLv3
NO_STAGE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--bindir=${PREFIX}/sbin \
--datarootdir=${DATADIR}
MAN1= cpmls.1 cpmcp.1 cpmrm.1 cpmchmod.1 cpmchattr.1 mkfs.cpm.1 fsck.cpm.1 fsed.cpm.1
MAN5= cpm.5
OPTIONS_DEFINE= LIBDSK
LIBDSK_DESC= Access to disks and disk images support
LIBDSK_CONFIGURE_ON= --with-libdsk=${LOCALBASE}
LIBDSK_CONFIGURE_OFF= --with-libdsk=''
LIBDSK_LIB_DEPENDS+= libdsk.so:${PORTSDIR}/emulators/libdsk
# 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
pre-install:
@${MKDIR} ${DATADIR}
.include <bsd.port.mk>