Lines 6-49
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= cpmtools |
8 |
PORTNAME= cpmtools |
9 |
PORTVERSION= 2.8 |
9 |
PORTVERSION= 2.13 |
10 |
CATEGORIES= emulators sysutils |
10 |
CATEGORIES= emulators sysutils |
11 |
MASTER_SITES= http://www.moria.de/~michael/cpmtools/ \ |
11 |
MASTER_SITES= http://www.moria.de/~michael/cpmtools/ |
12 |
http://www.copei.de/freebsd-ports/ |
|
|
13 |
|
12 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= spam@rm-rf.kiev.ua |
15 |
COMMENT= Tools to access CP/M disks and disk images |
14 |
COMMENT= Tools to access CP/M disks and disk images |
16 |
|
15 |
|
17 |
LIB_DEPENDS+= dmalloc:${PORTSDIR}/devel/dmalloc |
|
|
18 |
|
19 |
BROKEN= does not fetch |
20 |
|
21 |
LATEST_LINK= cpmtools2 |
16 |
LATEST_LINK= cpmtools2 |
22 |
|
17 |
|
23 |
HAS_CONFIGURE= yes |
18 |
LICENSE= GPLv3 |
|
|
19 |
|
20 |
GNU_CONFIGURE= yes |
24 |
CONFIGURE_ARGS+=--mandir=${PREFIX}/man --bindir=${PREFIX}/sbin \ |
21 |
CONFIGURE_ARGS+=--mandir=${PREFIX}/man --bindir=${PREFIX}/sbin \ |
25 |
--datarootdir=${PREFIX}/share/${PORTNAME} --with-dmalloc |
22 |
--datarootdir=${PREFIX}/share/${PORTNAME} |
26 |
|
23 |
|
27 |
MAN1= cpmls.1 cpmcp.1 cpmrm.1 cpmchmod.1 cpmchattr.1 mkfs.cpm.1 fsck.cpm.1 fsed.cpm.1 |
24 |
MAN1= cpmls.1 cpmcp.1 cpmrm.1 cpmchmod.1 cpmchattr.1 mkfs.cpm.1 fsck.cpm.1 fsed.cpm.1 |
28 |
MAN5= cpm.5 |
25 |
MAN5= cpm.5 |
29 |
|
26 |
|
30 |
OPTIONS= RAW_LIBDSK "With LIBDSK support with direct floppy access" on \ |
27 |
OPTIONS= LIBDSK "With LIBDSK support" off |
31 |
LIBDSK "With LIBDSK support (no direct floppy access)" off |
|
|
32 |
|
28 |
|
33 |
.include <bsd.port.pre.mk> |
29 |
.include <bsd.port.pre.mk> |
34 |
|
30 |
|
35 |
.if defined(WITH_LIBDSK) || defined(WITH_RAW_LIBDSK) |
31 |
.if defined(WITH_LIBDSK) |
36 |
LIB_DEPENDS+= dsk.5:${PORTSDIR}/emulators/libdsk |
32 |
LIB_DEPENDS+= dsk.5:${PORTSDIR}/emulators/libdsk |
37 |
CONFIGURE_ARGS+=--with-libdsk=${LOCALBASE} --with-device=LibDsk |
33 |
CONFIGURE_ARGS+=--with-libdsk=${LOCALBASE} |
38 |
.else |
34 |
.else |
39 |
CONFIGURE_ARGS+=--without-libdsk --with-device=posix |
35 |
CONFIGURE_ARGS+=--with-libdsk='' |
40 |
.endif |
36 |
.endif |
41 |
|
37 |
|
42 |
.if defined(WITH_RAW_LIBDSK) |
38 |
# remove unneeded getopt*.c |
43 |
CONFIGURE_ARGS+=--enable-floppy |
39 |
# remove curses from all but fsed.cpm |
44 |
.else |
40 |
post-patch: |
45 |
CONFIGURE_ARGS+=--disable-floppy |
41 |
@${REINPLACE_CMD} -e 's|getopt$$(OBJEXT)||g; s|getopt1$$(OBJEXT)||g' \ |
46 |
.endif |
42 |
${WRKSRC}/Makefile.in |
|
|
43 |
@${REINPLACE_CMD} -e 's|\($$(CC).*fsed.cpm$$(OBJEXT).*$$(DEVICEOBJ)\)|\1 -lcurses|' \ |
44 |
${WRKSRC}/Makefile.in |
47 |
|
45 |
|
48 |
pre-install: |
46 |
pre-install: |
49 |
@${MKDIR} ${DATADIR} |
47 |
@${MKDIR} ${DATADIR} |