mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
843b696822
PR: 36499 Submitted by: maintainer
86 lines
3.6 KiB
Makefile
86 lines
3.6 KiB
Makefile
# New ports collection makefile for: mwave
|
|
# Date Created: Apr 22 2001
|
|
# Whom: R. Kevin Oberman <oberman@es.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mwavem-fbsd
|
|
PORTVERSION= 1.2
|
|
PORTREVISION= 0
|
|
CATEGORIES= comms
|
|
MASTER_SITES= ftp://www-126.ibm.com/pub/acpmodem/ \
|
|
http://www.escape.com/~simonw/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= oberman@es.net
|
|
|
|
LIB_DEPENDS= lthread.2:${PORTSDIR}/devel/linuxthreads
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
GNU_CONFIGURE= yes
|
|
STARTUP= mwavem.sh
|
|
USE_GMAKE= yes
|
|
SLEEP= /bin/sleep
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-build:
|
|
${PERL} -pi.orig -e "s@ /modules@ ${PREFIX}/share/mwavem@g" ${WRKSRC}/src/drivers/Makefile
|
|
${PERL} -pi.orig -e "s@#include <malloc.h>\n@@g" \
|
|
${WRKSRC}/src/mwmbl/mwblapi.c \
|
|
${WRKSRC}/src/mwwtt32/mwwttbl.c
|
|
|
|
pre-install:
|
|
${MKDIR} ${DATADIR}
|
|
|
|
post-install:
|
|
@${RM} -f /dev/mwave
|
|
@${ECHO} "Creating /dev/mwave"
|
|
mknod /dev/mwave c 96 0
|
|
@${ECHO} "Installing ${PREFIX}/etc/rc.d/${STARTUP} startup file."
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/${STARTUP} ${PREFIX}/etc/rc.d/
|
|
@${ECHO} "******************************************************************************"; \
|
|
${ECHO} "* Driver loading information *"; \
|
|
${ECHO} "* *"; \
|
|
${ECHO} "* This package includes a device driver in a kernel module. While it is *"; \
|
|
${ECHO} "* installed in ${PREFIX}/share/mwavem, this results in the initial device *"; \
|
|
${ECHO} "* probe not seeing the device and possibly reporting errors for the sio *"; \
|
|
${ECHO} "* device which may be ignored. *"; \
|
|
${ECHO} "* *"; \
|
|
${ECHO} "* You may choose to standardize the module loading by copying *"; \
|
|
${ECHO} "* ${PREFIX}/share/mwavem/mwave.ko into /modules. Then add the *"; \
|
|
${ECHO} "* mwavedd_load=\"YES\" to /boot/loader.conf. This will load the driver *"; \
|
|
${ECHO} "* at the start of the bootstrap and it will probe in a normal manner. *"; \
|
|
${ECHO} "******************************************************************************"; \
|
|
${ECHO} "* Known problem! *"; \
|
|
${ECHO} "* If the sio device connected to the modem probe as an 8250 device, the *"; \
|
|
${ECHO} "* modem will not work. Make sure that the mwavem process is running and *"; \
|
|
${ECHO} "* reboot the system. It should probe correctly and the modem should be *"; \
|
|
${ECHO} "* opertional. *"; \
|
|
${ECHO} "******************************************************************************"; \
|
|
${ECHO} " "
|
|
@${SLEEP} 5
|
|
|
|
pre-fetch:
|
|
.if !exists(${SRC_BASE}/sys/Makefile)
|
|
@if ! ${LDCONFIG} -r | ${GREP} -qwF -e "-llthreads.2"; then \
|
|
${ECHO} " "; \
|
|
${ECHO} "****************************************************************"; \
|
|
${ECHO} "* This port requires the linuxthreads library. Installation of *"; \
|
|
${ECHO} "* this port requires that the full FreeBSD sources be present *"; \
|
|
${ECHO} "* on the system. *"; \
|
|
${ECHO} "* *"; \
|
|
${ECHO} "* If you prefer not loading the full sources, you make install *"; \
|
|
${ECHO} "* the linuxthreads package from /stand/sysinstall. *"; \
|
|
${ECHO} "****************************************************************"; \
|
|
${SLEEP} 10; fi;
|
|
.endif
|
|
|
|
.if ${OSVERSION} < 410000
|
|
BROKEN= "Systems prior to 4.1 are not supported"
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|