aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/cpmtools2
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2011-01-13 18:13:48 +0800
committermakc <makc@FreeBSD.org>2011-01-13 18:13:48 +0800
commita42e372a84851bc4cfef0f24540cdbfcc5d0ac2a (patch)
treeefd54ccbe7a214bb6884fe5edadb11ed82b838b9 /emulators/cpmtools2
parent23a82cd1ec4567e859a1ac9b8504a74fe1a819ce (diff)
downloadfreebsd-ports-gnome-a42e372a84851bc4cfef0f24540cdbfcc5d0ac2a.tar.gz
freebsd-ports-gnome-a42e372a84851bc4cfef0f24540cdbfcc5d0ac2a.tar.zst
freebsd-ports-gnome-a42e372a84851bc4cfef0f24540cdbfcc5d0ac2a.zip
Update to 2.13 and unbreak
Pass maintainership to submitter PR: ports/153838 Submitted by: Alex Kozlov <spam at rm-rf.kiev.ua> Feature safe: yes
Diffstat (limited to 'emulators/cpmtools2')
-rw-r--r--emulators/cpmtools2/Makefile40
-rw-r--r--emulators/cpmtools2/distinfo5
-rw-r--r--emulators/cpmtools2/files/patch-Makefile.in9
-rw-r--r--emulators/cpmtools2/files/patch-configure10
-rw-r--r--emulators/cpmtools2/pkg-plist1
5 files changed, 32 insertions, 33 deletions
diff --git a/emulators/cpmtools2/Makefile b/emulators/cpmtools2/Makefile
index a7c10402cb51..96c9aaf603e0 100644
--- a/emulators/cpmtools2/Makefile
+++ b/emulators/cpmtools2/Makefile
@@ -6,44 +6,42 @@
#
PORTNAME= cpmtools
-PORTVERSION= 2.8
+PORTVERSION= 2.13
CATEGORIES= emulators sysutils
-MASTER_SITES= http://www.moria.de/~michael/cpmtools/ \
- http://www.copei.de/freebsd-ports/
+MASTER_SITES= http://www.moria.de/~michael/cpmtools/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= spam@rm-rf.kiev.ua
COMMENT= Tools to access CP/M disks and disk images
-LIB_DEPENDS+= dmalloc:${PORTSDIR}/devel/dmalloc
-
-BROKEN= does not fetch
-
LATEST_LINK= cpmtools2
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS+=--mandir=${PREFIX}/man --bindir=${PREFIX}/sbin \
- --datarootdir=${PREFIX}/share/${PORTNAME} --with-dmalloc
+LICENSE= GPLv3
+
+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= RAW_LIBDSK "With LIBDSK support with direct floppy access" on \
- LIBDSK "With LIBDSK support (no direct floppy access)" off
+OPTIONS= LIBDSK "With LIBDSK support" off
.include <bsd.port.pre.mk>
-.if defined(WITH_LIBDSK) || defined(WITH_RAW_LIBDSK)
+.if defined(WITH_LIBDSK)
LIB_DEPENDS+= dsk.5:${PORTSDIR}/emulators/libdsk
-CONFIGURE_ARGS+=--with-libdsk=${LOCALBASE} --with-device=LibDsk
+CONFIGURE_ARGS+=--with-libdsk=${LOCALBASE}
.else
-CONFIGURE_ARGS+=--without-libdsk --with-device=posix
+CONFIGURE_ARGS+=--with-libdsk=''
.endif
-.if defined(WITH_RAW_LIBDSK)
-CONFIGURE_ARGS+=--enable-floppy
-.else
-CONFIGURE_ARGS+=--disable-floppy
-.endif
+# 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}
diff --git a/emulators/cpmtools2/distinfo b/emulators/cpmtools2/distinfo
index 979fcabc75ae..6b44bcd6c60a 100644
--- a/emulators/cpmtools2/distinfo
+++ b/emulators/cpmtools2/distinfo
@@ -1,3 +1,2 @@
-MD5 (cpmtools-2.8.tar.gz) = ccf53decbb9e9f6708fb1492c7defa17
-SHA256 (cpmtools-2.8.tar.gz) = f5269ef8b104f25d027c3244ab84dd7b60a7b2e23e595603f7569bcae58b5216
-SIZE (cpmtools-2.8.tar.gz) = 160705
+SHA256 (cpmtools-2.13.tar.gz) = 6cd80efe4adb8066616cbc18b1b4683a6f6567426fe84937bcff2ba70034ba86
+SIZE (cpmtools-2.13.tar.gz) = 170008
diff --git a/emulators/cpmtools2/files/patch-Makefile.in b/emulators/cpmtools2/files/patch-Makefile.in
index 5c6d9e333ee8..d5fe199632a8 100644
--- a/emulators/cpmtools2/files/patch-Makefile.in
+++ b/emulators/cpmtools2/files/patch-Makefile.in
@@ -9,12 +9,3 @@
LDFLAGS= @LDFLAGS@
DEFFORMAT= @DEFFORMAT@
DEVICE= @DEVICE@
-@@ -86,7 +86,7 @@
- $(INSTALL) -s -m 755 cpmchattr $(BINDIR)/cpmchattr
- $(INSTALL) -s -m 755 mkfs.cpm $(BINDIR)/mkfs.cpm
- $(INSTALL) -s -m 755 fsck.cpm $(BINDIR)/fsck.cpm
-- $(INSTALL) -s -m 755 fsed.cpm $(BINDIR)/fsed.cpm
-+# $(INSTALL) -s -m 755 fsed.cpm $(BINDIR)/fsed.cpm
- $(INSTALL_DATA) diskdefs @datarootdir@/diskdefs
- $(INSTALL_DATA) cpmls.1 $(MANDIR)/man1/cpmls.1
- $(INSTALL_DATA) cpmcp.1 $(MANDIR)/man1/cpmcp.1
diff --git a/emulators/cpmtools2/files/patch-configure b/emulators/cpmtools2/files/patch-configure
new file mode 100644
index 000000000000..d29c2f81c72f
--- /dev/null
+++ b/emulators/cpmtools2/files/patch-configure
@@ -0,0 +1,10 @@
+Index: configure
+@@ -3385,7 +3385,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_printw" >&5
+ $as_echo "$ac_cv_lib_curses_printw" >&6; }
+ if test "x$ac_cv_lib_curses_printw" = x""yes; then :
+- FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
++ FSED_CPM=fsed.cpm
+ else
+ FSED_CPM=
+ fi
diff --git a/emulators/cpmtools2/pkg-plist b/emulators/cpmtools2/pkg-plist
index 1eaa2af1b83c..28487d201db6 100644
--- a/emulators/cpmtools2/pkg-plist
+++ b/emulators/cpmtools2/pkg-plist
@@ -5,5 +5,6 @@ sbin/cpmchmod
sbin/cpmchattr
sbin/mkfs.cpm
sbin/fsck.cpm
+sbin/fsed.cpm
%%DATADIR%%/diskdefs
@dirrm %%DATADIR%%