freebsd-ports/palm/uppc-kmod/Makefile
Thierry Thomas fce1839b89 Update to 0.7 to fix build failure (deal with usbdevs changes).
PR:		ports/71634
Submitted by:	maintainer
Approved by:	portmgr (marcus)
2004-09-25 08:04:43 +00:00

45 lines
1.3 KiB
Makefile

# New ports collection makefile for: uppc-kmod
# Date created: 31 August 2003
# Whom: Sam Lawrance <boris@brooknet.com.au>
#
# $FreeBSD$
#
PORTNAME= uppc
PORTVERSION= 0.7
CATEGORIES= palm
MASTER_SITES= http://sam.stral.net/freebsd/
PKGNAMESUFFIX= -kmod
MAINTAINER= boris@brooknet.com.au
COMMENT= USB device driver for Windows CE handhelds
MAN4= uppc.4
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_REINPLACE= yes
.if ${MACHINE_ARCH:L} == "amd64"
BROKEN= "kernel modules are not available on this platform yet"
.endif
.if !exists(/usr/src/sys/dev/usb/usb.h)
IGNORE= "Requires kernel source (/usr/src/sys) to build"
.endif
post-build:
@${REINPLACE_CMD} -e 's|%%INITIAL_INSTALLDIR%%|${PREFIX}/lib|g' ${BUILD_WRKSRC}/uppcsetup
@${REINPLACE_CMD} -e 's|%%INITIAL_MODDIR%%|${KMODDIR}|g' ${WRKSRC}/uppcsetup
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.mk>