# $NetBSD: Makefile,v 1.10 2015/05/02 10:43:29 ryoon Exp $
#

DISTNAME=		libmtp-1.1.9
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=libmtp/}

MAINTAINER=		ku3@sl.aanet.ru
HOMEPAGE=		http://libmtp.sourceforge.net/
COMMENT=		Implementation of Media Transfer Protocol (MTP)

USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
USE_TOOLS+=		pkg-config
GNU_CONFIGURE=		yes
CONFIGURE_ENV+=		HAVE_DOXYGEN=false

PKGCONFIG_OVERRIDE+=	libmtp.pc.in

REPLACE_SH=		hotplug.sh.in
REPLACE_SH+=		libmtp.sh.in

LDFLAGS.FreeBSD+=	-liconv
LDFLAGS.SunOS=		-liconv

.include "../../mk/bsd.prefs.mk"

.include "../../converters/libiconv/buildlink3.mk"
.if ${OPSYS} == "SunOS"
.include "../../devel/libusb/buildlink3.mk"
.else
.include "../../devel/libusb1/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"
