source: build-files/ports-overlay/sysutils/uhidd/Makefile @ 58663b0

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 58663b0 was 58663b0, checked in by Kris Moore <kris@…>, 6 months ago

Fix up next wave of ports

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# Created by: Kai Wang <kaiwang27@gmail.com>
2# $FreeBSD: sysutils/uhidd/Makefile 327772 2013-09-20 23:05:58Z bapt $
3
4PORTNAME=       uhidd
5PORTVERSION=    0.2.1
6PORTREVISION=   1
7CATEGORIES=     sysutils
8MASTER_SITES=   GOOGLE_CODE \
9                http://people.freebsd.org/~kaiw/distfiles/
10
11MAINTAINER=     kaiwang27@gmail.com
12COMMENT=        Userland USB HID device driver using libusb20
13
14BUILD_DEPENDS=  cuse4bsd-kmod>=0.1.24:${PORTSDIR}/multimedia/cuse4bsd-kmod
15LIB_DEPENDS=    cuse4bsd:${PORTSDIR}/multimedia/cuse4bsd-kmod
16
17OPTIONS_DEFINE= DEVD
18OPTIONS_DEFAULT=        DEVD
19
20USE_RC_SUBR=    uhidd
21USE_GCC=        yes
22SUB_FILES=      pkg-message
23
24MAN5=           uhidd.conf.5
25MAN8=           uhidd.8
26
27LIBDIR=         ${PREFIX}/lib
28
29NO_STAGE=       yes
30.include <bsd.port.pre.mk>
31
32LIBCUSE=        ${LIBDIR}/libcuse4bsd.so
33
34.if defined(DEBUG_FLAGS)
35MAKE_ENV+=      DEBUG_FLAGS='${DEBUG_FLAGS}'
36.endif
37
38.if ${OSVERSION} < 800069
39IGNORE=         does not build with the old USB stack
40.elif ${OSVERSION} > 1000012
41EXTRA_PATCHES+= ${FILESDIR}/extra-patch-uhidd-parser.y
42.endif
43
44.if ${PORT_OPTIONS:MDEVD}
45PLIST_SUB+=     PL_DEVD=""
46.else
47PLIST_SUB+=     PL_DEVD="@comment "
48.endif
49
50post-patch:     .SILENT
51        ${FIND} ${WRKSRC}/uhidd -type f -not -name Makefile \
52                -exec ${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' {} +
53
54do-install:
55        ${INSTALL_PROGRAM} ${WRKSRC}/uhidd/uhidd ${PREFIX}/sbin/uhidd
56        ${INSTALL_MAN} ${WRKSRC}/uhidd/uhidd.8 ${PREFIX}/man/man8/uhidd.8
57        ${INSTALL_MAN} ${WRKSRC}/uhidd/uhidd.conf.5 ${PREFIX}/man/man5/uhidd.conf.5
58.if ${PORT_OPTIONS:MDEVD}
59        ${MKDIR} ${PREFIX}/etc/devd
60        ${REINPLACE_CMD} -E \
61                -e "s|%%PREFIX%%|${PREFIX}|" \
62                -e "s|%%LIBCUSE%%|${LIBCUSE}|" \
63                ${WRKSRC}/uhidd/uhidd-devd.conf.sample
64        ${INSTALL_DATA} ${WRKSRC}/uhidd/uhidd-devd.conf.sample ${PREFIX}/etc/devd/
65        @if [ ! -f ${PREFIX}/etc/devd/uhidd-devd.conf ]; then \
66                ${CP} -p ${PREFIX}/etc/devd/uhidd-devd.conf.sample \
67                        ${PREFIX}/etc/devd/uhidd-devd.conf; \
68        fi
69.endif
70
71post-install:
72        @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
73
74.include <bsd.port.post.mk>
Note: See TracBrowser for help on using the repository browser.