blob: de758d549a3cce4188fda7cd45c2b5e4fdc6a546 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: ltmdm
# Date Created: Nov 11, 2001
# Whom: Daniel O'Connor <darius@dons.net.au>
#
# $FreeBSD$
#
PORTNAME= ltmdm
PORTVERSION= 1.4
PORTREVISION= 5
CATEGORIES= comms
MASTER_SITES= http://www.dons.net.au/~darius/ \
http://soupnazi.org/FreeBSD/ports/distfiles/
EXTRACT_SUFX= .tgz
MAINTAINER= darius@dons.net.au
COMMENT= Driver for the Lucent LT Winmodem chipset
ONLY_FOR_ARCHS= i386
BUILD_WRKSRC= ${WRKSRC}/sys/modules/ltmdm
NO_WRKSUBDIR= yes
LTMDM_DEV_MAJOR ?= 228
LTMDM_OBJ_VERSION ?= 600
.if defined(USE_595_OBJ)
MAKE_ARGS = LTMDM_OBJ_VERSION=595
.endif
MAKE_ARGS+= LTMDM_DEV_MAJOR=${LTMDM_DEV_MAJOR}
MAKE_ARGS+= LTMDM_OBJ_VERSION=${LTMDM_OBJ_VERSION}
pre-fetch:
.if !exists(${SRC_BASE}/sys/Makefile)
@${ECHO} "*************************************************"; \
${ECHO} "This port requires the kernel source be available"; \
${ECHO} "*************************************************"; \
exit 1
.endif
.if !defined(USE_595_OBJ)
@${ECHO} "*************************************************";
@${ECHO} "If your ISP supports K56flex protocol only and ";
@${ECHO} " doesn't support V90, define USE_595_OBJ. ";
@${ECHO} "Otheriwse your modem will not connect ";
@${ECHO} "*************************************************";
.endif
do-install:
@${SED} "s:%%PREFIX%%:${PREFIX}:;s:%%MAJOR%%:${LTMDM_DEV_MAJOR}:" \
< ${FILESDIR}/ltmdm.sh > ${WRKSRC}/ltmdm.sh
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/sys/modules/ltmdm/ltmdm.ko ${DATADIR}
@${INSTALL_SCRIPT} ${WRKSRC}/ltmdm.sh ${PREFIX}/etc/rc.d/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/README-en.TXT ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/INSTALL.TXT ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/INSTALL-en.TXT ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|