blob: 2bfa203830f965277f4f2ef5c22fbd2c294b71f6 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: libmtp
# Date created: 3 December 2006
# Whom: Petar Zhivkov Petrov (pesho.petrov@gmail.com)
#
# $FreeBSD$
#
PORTNAME= libmtp
PORTVERSION= 1.1.3
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Media Transfer Protocol (MTP) library
LICENSE= LGPL21
OPTIONS= MTPZ "Enable functionality to connect to MTPZ devices" on
USE_GNOME= gnomehack
USE_ICONV= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if defined(WITHOUT_MTPZ)
CONFIGURE_ARGS+=--disable-mtpz
.else
LIB_DEPENDS+= gcrypt.18:${PORTSDIR}/security/libgcrypt
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800069
LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb
CONFIGURE_ENV+= ac_cv_lib_openusb_openusb_init=no
.else
CONFIGURE_ENV+= LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb" LIBS="-lusb"
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
'/LIBUSB_REQUIRES/s|libusb-1.0||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|<libusb-1.0/|<|' ${WRKSRC}/src/libusb-glue.h
.include <bsd.port.post.mk>
|