b95d127471
- Update to 1.6.1 - Remove some unneeded patches - Fix pkg-plist - report configure bug upstream https://bugs.g10code.com/gnupg/issue1668 - report API breakage downstream and find that MacPorts had the same issue https://rt.cpan.org/Ticket/Display.html?id=97201 - bump PORTREVISION for dependent ports (approx. 100 ports) - Thanks to exp-run by antoine@ to find ports that break - patch ports that would otherwise break security/shishi with PR 192164 is already committed [1] devel/ccrtp [2] editors/abiword [3] security/p5-Crypt-GCrypt PR: 191256, 192162 [1], 192163 [2], 192166 [3] Submitted by: Carlos Jacobo Puga Medina <cjpugmed@gmail.com> Approved by: maintainer timeout, antoine (exp-run), portmgr (implicit)
44 lines
1 KiB
Makefile
44 lines
1 KiB
Makefile
# Created by: Petar Zhivkov Petrov <pesho.petrov@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libmtp
|
|
PORTVERSION= 1.1.6
|
|
PORTREVISION= 3
|
|
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
|
|
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USES= iconv libtool pathfix pkgconfig
|
|
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>
|