diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2011-01-13 10:13:48 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2011-01-13 10:13:48 +0000 |
commit | 33ffd68aec6b7e55ae4b87ba05194fd191ab5667 (patch) | |
tree | 3e39d9973f12183412265356f2c48a6b05594349 /emulators/cpmtools2 | |
parent | 02d6c0503463d77ea3a6d6b465516ad78b791bcd (diff) | |
download | ports-33ffd68aec6b7e55ae4b87ba05194fd191ab5667.tar.gz ports-33ffd68aec6b7e55ae4b87ba05194fd191ab5667.zip |
Notes
Diffstat (limited to 'emulators/cpmtools2')
-rw-r--r-- | emulators/cpmtools2/Makefile | 40 | ||||
-rw-r--r-- | emulators/cpmtools2/distinfo | 5 | ||||
-rw-r--r-- | emulators/cpmtools2/files/patch-Makefile.in | 9 | ||||
-rw-r--r-- | emulators/cpmtools2/files/patch-configure | 10 | ||||
-rw-r--r-- | emulators/cpmtools2/pkg-plist | 1 |
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%% |