mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Patch configure instead of configure.in & aclocal.m4. Drop USE_AUTOCONF,
to avoid auto* trouble people have had with this port. Use sed instead of Perl for patching in Makefile. Make /dev/cuaa0 default port when doing batch builds, as we have no idea whether /dev/modem is there. Unbreak: Bento builds should have no problems with minicom now.
This commit is contained in:
parent
2ec4a1d756
commit
e79def5629
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59533
@ -17,30 +17,34 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|||||||
|
|
||||||
MAINTAINER= anders@FreeBSD.org
|
MAINTAINER= anders@FreeBSD.org
|
||||||
|
|
||||||
BROKEN= "Configure fails"
|
|
||||||
|
|
||||||
RUN_DEPENDS= lrz:${PORTSDIR}/comms/lrzsz \
|
RUN_DEPENDS= lrz:${PORTSDIR}/comms/lrzsz \
|
||||||
lsz:${PORTSDIR}/comms/lrzsz
|
lsz:${PORTSDIR}/comms/lrzsz
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_ARGS+= --enable-dfl-baud=57600 \
|
CONFIGURE_ARGS+= --enable-dfl-baud=57600 \
|
||||||
--enable-dfl-port=/dev/modem \
|
|
||||||
--sysconfdir=${PREFIX}/etc/minicom \
|
--sysconfdir=${PREFIX}/etc/minicom \
|
||||||
--enable-lock-dir=/var/spool/lock
|
--enable-lock-dir=/var/spool/lock
|
||||||
|
.if defined(BATCH)
|
||||||
USE_AUTOCONF= yes
|
CONFIGURE_ARGS+= --enable-dfl-port=/dev/cuaa0
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --enable-dfl-port=/dev/modem
|
||||||
|
.endif
|
||||||
|
|
||||||
MAN1= minicom.1 runscript.1 ascii-xfr.1
|
MAN1= minicom.1 runscript.1 ascii-xfr.1
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${PERL} -pi -e "s@/usr/local/bin/@${LOCALBASE}/bin/@g;s@/sz@/lsz@g; \
|
${MV} ${WRKSRC}/src/rwconf.c ${WRKSRC}/src/rwconf.c.pre_sed
|
||||||
s@/sb@/lsb@g;s@/sx@/lsx@g;s@/rz@/lrz@g;s@/rb@/lrb@g; \
|
${SED} -e "s:/usr/local/bin/:${LOCALBASE}/bin/:g" \
|
||||||
s@/rx@/lrx@g" ${WRKSRC}/src/rwconf.c
|
-e "s:/sz:/lsz:g" \
|
||||||
|
-e "s:/sb:/lsb:g" \
|
||||||
|
-e "s:/sx:/lsx:g" \
|
||||||
|
-e "s:/rz:/lrz:g" \
|
||||||
|
-e "s:/rb:/lrb:g" \
|
||||||
|
-e "s:/rx:/lrx:g" \
|
||||||
|
< ${WRKSRC}/src/rwconf.c.pre_sed > ${WRKSRC}/src/rwconf.c
|
||||||
|
|
||||||
pre-configure:
|
pre-configure:
|
||||||
${PERL} -pi -e "s@autoheader@${AUTOHEADER}@;s@autoconf@${AUTOCONF}@" \
|
|
||||||
${WRKSRC}/aclocal.m4
|
|
||||||
.if !defined(BATCH)
|
.if !defined(BATCH)
|
||||||
# this script creates a link from your comm port to /dev/modem
|
# this script creates a link from your comm port to /dev/modem
|
||||||
${SH} ${SCRIPTDIR}/create-dev-link
|
${SH} ${SCRIPTDIR}/create-dev-link
|
||||||
|
11
comms/minicom/files/patch-configure
Normal file
11
comms/minicom/files/patch-configure
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- configure.orig Mon Oct 1 14:21:54 2001
|
||||||
|
+++ configure Mon May 20 14:24:41 2002
|
||||||
|
@@ -4893,7 +4893,7 @@
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
-for ac_func in snprintf usleep getopt getopt_long
|
||||||
|
+for ac_func in snprintf usleep
|
||||||
|
do
|
||||||
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||||
|
echo "configure:4900: checking for $ac_func" >&5
|
@ -1,11 +0,0 @@
|
|||||||
--- configure.in.orig Sun Sep 30 15:10:33 2001
|
|
||||||
+++ configure.in Sun Jan 27 23:12:28 2002
|
|
||||||
@@ -249,7 +242,7 @@
|
|
||||||
KEYSERV="",
|
|
||||||
KEYSERV="minicom.keyserv")
|
|
||||||
AC_SUBST(KEYSERV)
|
|
||||||
-AC_REPLACE_FUNCS(snprintf usleep getopt getopt_long)
|
|
||||||
+AC_REPLACE_FUNCS(snprintf usleep)
|
|
||||||
|
|
||||||
dnl system capabilities
|
|
||||||
AC_SYS_LONG_FILE_NAMES
|
|
Loading…
Reference in New Issue
Block a user