1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/multimedia/libmtp/Makefile
Tijl Coosemans 14e2af0516 audio/rhythmbox: drop :keepla
multimedia/banshee: add USES=libtool and INSTALL_TARGET=install-strip
multimedia/libmtp: add USES=libtool and INSTALL_TARGET=install-strip
multimedia/libaacs:
- USES=libtool pathfix
- Add INSTALL_TARGET=install-strip
- Avoid USE_AUTOTOOLS
- Remove plist target, superseded by makeplist
multimedia/libbluray:
- USES=libtool pathfix
- Add INSTALL_TARGET=install-strip
- Avoid USE_AUTOTOOLS
- Remove plist target, superseded by makeplist
- Use OPTIONS_SUB
- Replace patch with post-patch command

Bump dependent ports
2014-07-18 11:02:58 +00:00

45 lines
1.0 KiB
Makefile

# Created by: Petar Zhivkov Petrov <pesho.petrov@gmail.com>
# $FreeBSD$
PORTNAME= libmtp
PORTVERSION= 1.1.6
PORTREVISION= 2
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>