2003-12-29 16:33:02 +00:00
|
|
|
# New ports collection makefile for: uppc-kmod
|
|
|
|
# Date created: 31 August 2003
|
|
|
|
# Whom: Sam Lawrance <boris@brooknet.com.au>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= uppc
|
2006-01-30 20:17:31 +00:00
|
|
|
PORTVERSION= 0.8
|
2007-01-30 20:09:12 +00:00
|
|
|
PORTREVISION= 1
|
2003-12-29 16:33:02 +00:00
|
|
|
CATEGORIES= palm
|
2005-03-31 06:42:14 +00:00
|
|
|
MASTER_SITES= http://people.tecnik93.com/~sam/ports/
|
2003-12-29 16:33:02 +00:00
|
|
|
PKGNAMESUFFIX= -kmod
|
|
|
|
|
2005-10-29 04:25:00 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-12-29 16:33:02 +00:00
|
|
|
COMMENT= USB device driver for Windows CE handhelds
|
|
|
|
|
2004-09-25 08:04:43 +00:00
|
|
|
MAN4= uppc.4
|
2003-12-29 16:33:02 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
.if !exists(/usr/src/sys/dev/usb/usb.h)
|
2005-01-19 16:59:18 +00:00
|
|
|
IGNORE= Requires kernel source (/usr/src/sys) to build
|
2003-12-29 16:33:02 +00:00
|
|
|
.endif
|
|
|
|
|
2004-12-11 21:48:53 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= "Does not build on FreeBSD 4.x"
|
|
|
|
.endif
|
|
|
|
|
2003-12-29 16:33:02 +00:00
|
|
|
post-build:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%INITIAL_INSTALLDIR%%|${PREFIX}/lib|g' ${BUILD_WRKSRC}/uppcsetup
|
|
|
|
@${REINPLACE_CMD} -e 's|%%INITIAL_MODDIR%%|${KMODDIR}|g' ${WRKSRC}/uppcsetup
|
2006-01-30 20:17:31 +00:00
|
|
|
.if ${OSVERSION} < 600000
|
|
|
|
@${REINPLACE_CMD} -e 's|cuaU|ucom|' ${WRKSRC}/uppcsetup
|
|
|
|
.endif
|
2003-12-29 16:33:02 +00:00
|
|
|
|
|
|
|
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} " ****************************************************************"
|
2004-03-26 03:08:09 +00:00
|
|
|
@${ECHO_CMD} " * You can run 'uppcsetup' to help configure the device driver *"
|
|
|
|
@${ECHO_CMD} " * and set up a connection. *"
|
2003-12-29 16:33:02 +00:00
|
|
|
@${ECHO_CMD} " ****************************************************************"
|
|
|
|
|
2004-12-11 21:48:53 +00:00
|
|
|
.include <bsd.port.post.mk>
|