diff options
author | anders <anders@FreeBSD.org> | 2002-05-20 14:33:52 +0000 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2002-05-20 14:33:52 +0000 |
commit | a74fa10ae386027fb985d94b315856fdab635ce5 (patch) | |
tree | 2ce810a90e6ff57cf63bee86c0c8ad28447b95d8 /comms/minicom/Makefile | |
parent | 5ffea9dcfed1a29a8129de86e19911ed6d2daefa (diff) | |
download | FreeBSD-ports-a74fa10ae386027fb985d94b315856fdab635ce5.zip FreeBSD-ports-a74fa10ae386027fb985d94b315856fdab635ce5.tar.gz |
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.
Diffstat (limited to 'comms/minicom/Makefile')
-rw-r--r-- | comms/minicom/Makefile | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/comms/minicom/Makefile b/comms/minicom/Makefile index c6be98a..3658916 100644 --- a/comms/minicom/Makefile +++ b/comms/minicom/Makefile @@ -17,30 +17,34 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}.src MAINTAINER= anders@FreeBSD.org -BROKEN= "Configure fails" - RUN_DEPENDS= lrz:${PORTSDIR}/comms/lrzsz \ lsz:${PORTSDIR}/comms/lrzsz WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//} GNU_CONFIGURE= yes CONFIGURE_ARGS+= --enable-dfl-baud=57600 \ - --enable-dfl-port=/dev/modem \ --sysconfdir=${PREFIX}/etc/minicom \ --enable-lock-dir=/var/spool/lock - -USE_AUTOCONF= yes +.if defined(BATCH) +CONFIGURE_ARGS+= --enable-dfl-port=/dev/cuaa0 +.else +CONFIGURE_ARGS+= --enable-dfl-port=/dev/modem +.endif MAN1= minicom.1 runscript.1 ascii-xfr.1 post-patch: - ${PERL} -pi -e "s@/usr/local/bin/@${LOCALBASE}/bin/@g;s@/sz@/lsz@g; \ - s@/sb@/lsb@g;s@/sx@/lsx@g;s@/rz@/lrz@g;s@/rb@/lrb@g; \ - s@/rx@/lrx@g" ${WRKSRC}/src/rwconf.c + ${MV} ${WRKSRC}/src/rwconf.c ${WRKSRC}/src/rwconf.c.pre_sed + ${SED} -e "s:/usr/local/bin/:${LOCALBASE}/bin/:g" \ + -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: - ${PERL} -pi -e "s@autoheader@${AUTOHEADER}@;s@autoconf@${AUTOCONF}@" \ - ${WRKSRC}/aclocal.m4 .if !defined(BATCH) # this script creates a link from your comm port to /dev/modem ${SH} ${SCRIPTDIR}/create-dev-link |