summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-10-09 23:52:21 +0000
committermadpilot <madpilot@FreeBSD.org>2013-10-09 23:52:21 +0000
commit12e86ebce11feb754ca0df18cebd6519146e6683 (patch)
tree184c652c1a6b4034f7fd11fb31e8bc60faf8045c
parentdfa9e8711025c6c15ae9752d4a3e58da9d9d175a (diff)
downloadFreeBSD-ports-12e86ebce11feb754ca0df18cebd6519146e6683.zip
FreeBSD-ports-12e86ebce11feb754ca0df18cebd6519146e6683.tar.gz
- Convert to staging
- Use option helpers
-rw-r--r--audio/libmtp/Makefile16
1 files changed, 4 insertions, 12 deletions
diff --git a/audio/libmtp/Makefile b/audio/libmtp/Makefile
index b50cdf8..1317ec2 100644
--- a/audio/libmtp/Makefile
+++ b/audio/libmtp/Makefile
@@ -17,25 +17,17 @@ OPTIONS_DEFAULT= MTPZ
MTPZ_DESC= Enable functionality to connect to MTPZ devices
USES= pathfix pkgconfig iconv
-NO_STAGE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMTPZ}
-LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
-.else
-CONFIGURE_ARGS+=--disable-mtpz
-.endif
-
-.include <bsd.port.pre.mk>
-
CONFIGURE_ENV+= LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb" 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
@@ -48,4 +40,4 @@ post-patch:
@${REINPLACE_CMD} -e \
's|__builtin_bswap|bswap|g' ${WRKSRC}/src/mtpz.c
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud