aboutsummaryrefslogtreecommitdiffstats
path: root/comms/hcfmdm/Makefile
blob: 6eaba2b337e1fb1b76a6ce90fd937b04d1b90fba (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# New ports collection makefile for:    hcfmdm
# Date Created:             Jul 30, 2006
# Whom:                 Alexey Illarionov <littlesavage@rambler.ru>
#
# Based on: ltmdm created by Daniel O'Connor <darius@dons.net.au>
# Based on: $FreeBSD$
#
# $FreeBSD$
#

PORTNAME=   hcfmdm
PORTVERSION=    0.99.1
PORTREVISION=   1
CATEGORIES= comms kld
MASTER_SITES=   http://lug.cbx.ru/files/modem/ \
        http://www.int21.de/conexant/ \
        ${MASTER_SITE_GENTOO} \
        http://marvin.lirex.com/~maxx/ \
        http://zoltek7.webpark.pl/ \
        http://www.linuxant.com/drivers/hsf/free/archive/
DISTFILES=  hcfmdm-0.99.1.tar.gz \
        hcfpcimodem-0.99lnxtbeta03042700.tar.gz
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=   hcfmdm-0.99.1.tar.gz hcfpcimodem-0.99lnxtbeta03042700.tar.gz

MAINTAINER= littlesavage@rambler.ru
COMMENT=    Driver for the Conexant HCF PCI winmodem chipset (Acorp PIM/PIM2)

MODULES_WITH_WORLD?=    yes
ONLY_FOR_ARCHS= i386
SUB_FILES+= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
RESTRICTED= Redistribution of versions marked lnxtbeta requires explicit written approval from Linuxant
RESTRICTED_FILES=   hcfpcimodem-0.99lnxtbeta03042700.tar.gz
NO_CDROM=   No redistribution allowed
NO_PACKAGE= ${NO_CDROM}

LNXTDOCS=   README FAQ BUGS
PORTDOCS=   ${LNXTDOCS} 100498D_RM_HxF_Released.pdf

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600100
IGNORE= is not for FreeBSD versions < 600100
.endif

.if ${OSVERSION} >= 700000
BROKEN= Does not compile at 7.x
.endif

PLIST_SUB+= KMODDIR=${KMODDIR}

.if !defined(NOPORTDOCS)
DISTFILES+= 100498D_RM_HxF_Released.pdf
.endif

pre-fetch:
.if !exists(/usr/src/sys/Makefile)
    @${ECHO} "*************************************************"; \
    ${ECHO}  "This port requires the kernel source be available"; \
    ${ECHO}  "*************************************************"; \
    exit 1
.endif

do-install:
    @${MKDIR} ${KMODDIR}
    @${INSTALL_KLD} ${BUILD_WRKSRC}/hcfmdm.ko ${KMODDIR}/
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${LNXTDOCS}
    @${INSTALL_DATA} ${WRKDIR}/hcfpcimodem-0.99lnxtbeta03042700/${i} ${DOCSDIR}/
.endfor

    @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/100498D_RM_HxF_Released.pdf ${DOCSDIR}/
.endif

    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>