blob: 645733199bd2ef2887c4cef772176be55356fce1 (
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
|
# New ports collection makefile for: libmtp
# Date created: 3 December 2006
# Whom: Petar Zhivkov Petrov (pesho.petrov@gmail.com)
#
# $FreeBSD$
#
PORTNAME= libmtp
PORTVERSION= 1.0.6
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= pawel@FreeBSD.org
COMMENT= Media Transfer Protocol (MTP) library
LICENSE= LGPL21
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
USE_GNOME= gnomehack
USE_LDCONFIG= yes
USE_ICONV= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib -liconv
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800069
LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb
LIBUSB= libusb
.else
LIBUSB=
.endif
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/libusb/s//${LIBUSB}/' ${WRKSRC}/libmtp.pc.in
.include <bsd.port.post.mk>
|