aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/cuse4bsd-kmod/Makefile
blob: 2620821371f92b1e1a41be0e0a0f7edeea1119ab (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
# $FreeBSD$

PORTNAME=   cuse4bsd-kmod
PORTVERSION=    0.1.36
CATEGORIES= multimedia
MASTER_SITES=   http://www.selasky.org/hans_petter/distfiles/ \
        http://home.selasky.org:8192/distfiles/

MAINTAINER= hselasky@FreeBSD.org
COMMENT=    Cuse4BSD character device loopback driver for userspace

CONFLICTS=  video4bsd-kmod*

KMODNAME=   cuse4bsd
LIBDIR=     ${PREFIX}/lib
INCLUDEDIR= ${PREFIX}/include
MANDIR=     ${PREFIX}/man/man
USE_LDCONFIG=   yes

PLIST_SUB=  KMODNAME="${KMODNAME}" \
        LIBDIR="${LIBDIR}" \
        INCLUDEDIR="${INCLUDEDIR}" \
        MANDIR="${MANDIR}"

OPTIONS_DEFINE= DEBUG

USES=       kmod tar:bzip2 uidfix

.include <bsd.port.options.mk>

MAKE_ARGS+= PTHREAD_LIBS="-lpthread"

.if ${PORT_OPTIONS:MDEBUG}
MAKE_ARGS+= HAVE_DEBUG="YES"
.endif

do-install:
    ${SETENV} ${MAKE_ENV} DESTDIR="${STAGEDIR}" ${MAKE} -C ${WRKSRC} -f ${WRKSRC}/Makefile.lib ${PLIST_SUB} install
    ${INSTALL_KLD} ${WRKSRC}/${KMODNAME}.ko ${STAGEDIR}${KMODDIR}

.include <bsd.port.mk>