f7e2f115ee
version of libmtp is already installed Approved by: Petar Petrov <pesho.petrov@gmail.com> (maintainer)
34 lines
928 B
Makefile
34 lines
928 B
Makefile
# New ports collection makefile for: libmtp
|
|
# Date created: 3 December 2006
|
|
# Whom: Petar Zhivkov Petrov (pesho.petrov@gmail.com)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libmtp
|
|
PORTVERSION= 0.2.0
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= pesho.petrov@gmail.com
|
|
COMMENT= Media Transfer Protocol (MTP) library
|
|
|
|
LIB_DEPENDS= usb:${PORTSDIR}/devel/libusb \
|
|
iconv:${PORTSDIR}/converters/libiconv
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
|
|
USE_GNOME= gnomehack
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib -liconv
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
|
|
# Change the order of cflags so that the right (new) header gets picked up
|
|
@${REINPLACE_CMD} -Ee 's|(\$$[(]CPPFLAGS[)]) (\$$[(]AM_CFLAGS[)])|\2 \1|'\
|
|
${WRKSRC}/examples/Makefile.in
|
|
|
|
.include <bsd.port.mk>
|