summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-02-24 14:39:19 +0000
committerjbeich <jbeich@FreeBSD.org>2015-02-24 14:39:19 +0000
commitef05d2e322aa60ce76b396619cc7339e02585dfe (patch)
tree4c37672478025fbb071302bfc86329837af1ef6d
parent97126d055616558fc253d1061aa57e38337a49da (diff)
downloadFreeBSD-ports-ef05d2e322aa60ce76b396619cc7339e02585dfe.zip
FreeBSD-ports-ef05d2e322aa60ce76b396619cc7339e02585dfe.tar.gz
- Switch to LDFLAGS
- Don't overwrite default backup file - Take maintainership
-rw-r--r--multimedia/libmtp/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/multimedia/libmtp/Makefile b/multimedia/libmtp/Makefile
index caeb8da..e1007eb 100644
--- a/multimedia/libmtp/Makefile
+++ b/multimedia/libmtp/Makefile
@@ -7,7 +7,7 @@ PORTREVISION= 1
CATEGORIES= multimedia audio
MASTER_SITES= SF
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= jbeich@FreeBSD.org
COMMENT= Media Transfer Protocol (MTP) library
LICENSE= LGPL21 # or any later version
@@ -25,7 +25,7 @@ USES= iconv libtool pathfix pkgconfig
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib
+LDFLAGS+= -L${LOCALBASE}/lib
.if !exists(/usr/libdata/pkgconfig/libusb-1.0.pc)
CONFIGURE_ENV+= LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb"
@@ -36,9 +36,9 @@ MTPZ_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
post-patch:
.if !exists(/usr/libdata/pkgconfig/libusb-1.0.pc)
- @${REINPLACE_CMD} -e \
+ @${REINPLACE_CMD} -i .pkgconf.bak -e \
'/LIBUSB_REQUIRES/s|libusb-1.0||' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e \
+ @${REINPLACE_CMD} -i .pkgconf.bak -e \
'/Libs.private/s|:|& @LIBUSB_LIBS@|' ${WRKSRC}/libmtp.pc.in
.endif
@${REINPLACE_CMD} -e \
OpenPOWER on IntegriCloud