blob: 08001a1b7af4b1de4f4a5919fc8b5c40b1bb97b0 (
plain)
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
|
# Created by: Petar Zhivkov Petrov <pesho.petrov@gmail.com>
# $FreeBSD$
PORTNAME= libmtp
PORTVERSION= 1.1.6
PORTREVISION= 1
CATEGORIES= multimedia audio
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Media Transfer Protocol (MTP) library
LICENSE= LGPL21
OPTIONS_DEFINE= MTPZ
OPTIONS_DEFAULT= MTPZ
MTPZ_DESC= Enable functionality to connect to MTPZ devices
USES= pathfix pkgconfig iconv
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb"
MTPZ_CONFIGURE_ENABLE= mtpz
MTPZ_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
post-patch:
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
'/if test/s|==|=| ; \
/LIBUSB_REQUIRES/s|libusb-1.0|| ; \
/endian.h/s|machine|sys|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|<libusb-1.0/|<|' ${WRKSRC}/src/libusb-glue.h
@${REINPLACE_CMD} -e \
's|__builtin_bswap|bswap|g' ${WRKSRC}/src/mtpz.c
.include <bsd.port.mk>
|