2001-05-20 04:34:28 +00:00
|
|
|
# New ports collection makefile for: mwave
|
|
|
|
# Date Created: Apr 22 2001
|
|
|
|
# Whom: R. Kevin Oberman <oberman@es.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mwavem-fbsd
|
2001-12-12 19:40:09 +00:00
|
|
|
PORTVERSION= 1.2
|
2002-12-11 01:52:17 +00:00
|
|
|
PORTREVISION= 1
|
2001-05-20 04:34:28 +00:00
|
|
|
CATEGORIES= comms
|
2002-01-11 02:55:14 +00:00
|
|
|
MASTER_SITES= ftp://www-126.ibm.com/pub/acpmodem/ \
|
|
|
|
http://www.escape.com/~simonw/
|
2001-05-20 04:34:28 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= oberman@es.net
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2001-12-12 19:40:09 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-06-04 17:19:05 +00:00
|
|
|
STARTUP= mwavem.sh
|
2001-05-20 04:34:28 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
SLEEP= /bin/sleep
|
2002-11-23 23:15:11 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-05-20 04:34:28 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-11-21 09:39:10 +00:00
|
|
|
LTHREADVERSION=2
|
|
|
|
.if ${OSVERSION} >= 500035
|
|
|
|
LTHREADVERSION= 3
|
|
|
|
.endif
|
|
|
|
.if ${CC:Mgcc30}!=""
|
|
|
|
LTHREADVERSION= 3
|
|
|
|
.endif
|
|
|
|
.if ${CC:Mgcc31}!=""
|
|
|
|
LTHREADVERSION= 3
|
|
|
|
.endif
|
|
|
|
.if ${CC:Mgcc32}!=""
|
|
|
|
LTHREADVERSION= 3
|
|
|
|
.endif
|
|
|
|
LIB_DEPENDS= lthread.${LTHREADVERSION}:${PORTSDIR}/devel/linuxthreads
|
|
|
|
|
2002-12-11 01:52:17 +00:00
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
EXTRA_PATCHES!= ${ECHO_CMD} ${PKGDIR}/files.5/patch-*
|
|
|
|
.endif
|
|
|
|
|
2001-05-20 04:34:28 +00:00
|
|
|
pre-build:
|
2002-12-11 01:20:53 +00:00
|
|
|
${REINPLACE_CMD} -e "s@ /modules@ ${PREFIX}/share/mwavem@g" \
|
2002-11-23 23:15:11 +00:00
|
|
|
${WRKSRC}/src/drivers/Makefile
|
|
|
|
${REINPLACE_CMD} -e "s@#include .malloc.h.@@g" \
|
2002-03-29 23:44:05 +00:00
|
|
|
${WRKSRC}/src/mwmbl/mwblapi.c \
|
|
|
|
${WRKSRC}/src/mwwtt32/mwwttbl.c
|
2001-05-20 04:34:28 +00:00
|
|
|
|
|
|
|
pre-install:
|
2001-12-12 19:40:09 +00:00
|
|
|
${MKDIR} ${DATADIR}
|
2001-05-20 04:34:28 +00:00
|
|
|
|
|
|
|
post-install:
|
2002-09-29 07:02:37 +00:00
|
|
|
.if !defined(PACKAGE_BUILDING)
|
2001-06-04 17:19:05 +00:00
|
|
|
@${RM} -f /dev/mwave
|
|
|
|
@${ECHO} "Creating /dev/mwave"
|
|
|
|
mknod /dev/mwave c 96 0
|
2002-09-29 07:02:37 +00:00
|
|
|
.endif
|
2001-05-20 04:34:28 +00:00
|
|
|
@${ECHO} "Installing ${PREFIX}/etc/rc.d/${STARTUP} startup file."
|
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/${STARTUP} ${PREFIX}/etc/rc.d/
|
2001-06-04 17:19:05 +00:00
|
|
|
@${ECHO} "******************************************************************************"; \
|
|
|
|
${ECHO} "* Driver loading information *"; \
|
|
|
|
${ECHO} "* *"; \
|
|
|
|
${ECHO} "* This package includes a device driver in a kernel module. While it is *"; \
|
2002-02-15 05:50:26 +00:00
|
|
|
${ECHO} "* installed in ${PREFIX}/share/mwavem, this results in the initial device *"; \
|
2001-06-04 17:19:05 +00:00
|
|
|
${ECHO} "* probe not seeing the device and possibly reporting errors for the sio *"; \
|
|
|
|
${ECHO} "* device which may be ignored. *"; \
|
|
|
|
${ECHO} "* *"; \
|
2002-02-15 05:50:26 +00:00
|
|
|
${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. *"; \
|
2001-06-04 17:19:05 +00:00
|
|
|
${ECHO} "******************************************************************************"; \
|
|
|
|
${ECHO} " "
|
|
|
|
@${SLEEP} 5
|
2001-05-20 04:34:28 +00:00
|
|
|
|
|
|
|
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} "* *"; \
|
2002-01-11 02:55:14 +00:00
|
|
|
${ECHO} "* If you prefer not loading the full sources, you make install *"; \
|
2001-05-20 04:34:28 +00:00
|
|
|
${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>
|