aboutsummaryrefslogtreecommitdiffstats
path: root/palm/uppc-kmod/Makefile
blob: 3fd929779e29b25c34c0713269c5bbcc79327f43 (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
# New ports collection makefile for:    uppc-kmod
# Date created:             31 August 2003
# Whom:                 Sam Lawrance <boris@brooknet.com.au>
#
# $FreeBSD$
#

PORTNAME=   uppc
PORTVERSION=    0.8
PORTREVISION=   1
CATEGORIES= palm
MASTER_SITES=   http://people.tecnik93.com/~sam/ports/
PKGNAMESUFFIX=  -kmod

MAINTAINER= ports@FreeBSD.org
COMMENT=    USB device driver for Windows CE handhelds

MAN4=       uppc.4
WRKSRC=     ${WRKDIR}/${PORTNAME}

.if !exists(/usr/src/sys/dev/usb/usb.h)
IGNORE=     Requires kernel source (/usr/src/sys) to build
.endif

.include <bsd.port.pre.mk>

post-build:
    @${REINPLACE_CMD} -e 's|%%INITIAL_INSTALLDIR%%|${PREFIX}/lib|g' ${BUILD_WRKSRC}/uppcsetup
    @${REINPLACE_CMD} -e 's|%%INITIAL_MODDIR%%|${KMODDIR}|g' ${WRKSRC}/uppcsetup
.if ${OSVERSION} < 600000
    @${REINPLACE_CMD} -e 's|cuaU|ucom|' ${WRKSRC}/uppcsetup
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/uppc.ko ${PREFIX}/lib
    ${INSTALL_SCRIPT} ${WRKSRC}/uppcsetup ${PREFIX}/sbin
    cd ${WRKSRC} && ${INSTALL_MAN} ${MAN4} ${MANPREFIX}/man/man4

post-install:
    @${ECHO_CMD} "       ****************************************************************"
    @${ECHO_CMD} "       * You can run 'uppcsetup' to help configure the device driver  *"
    @${ECHO_CMD} "       * and set up a connection.                                     *"
    @${ECHO_CMD} "       ****************************************************************"

.include <bsd.port.post.mk>