Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= libmtp |
8 |
PORTNAME= libmtp |
9 |
PORTVERSION= 1.1.3 |
9 |
PORTVERSION= 1.1.3 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= audio |
11 |
CATEGORIES= audio |
11 |
MASTER_SITES= SF |
12 |
MASTER_SITES= SF |
12 |
|
13 |
|
Lines 19-25
Link Here
|
19 |
OPTIONS_DEFAULT= MTPZ |
20 |
OPTIONS_DEFAULT= MTPZ |
20 |
MTPZ_DESC= Enable functionality to connect to MTPZ devices |
21 |
MTPZ_DESC= Enable functionality to connect to MTPZ devices |
21 |
|
22 |
|
22 |
USE_GNOME= gnomehack |
23 |
USE_GNOME= gnomehack pkgconfig |
23 |
USE_ICONV= yes |
24 |
USE_ICONV= yes |
24 |
GNU_CONFIGURE= yes |
25 |
GNU_CONFIGURE= yes |
25 |
USE_LDCONFIG= yes |
26 |
USE_LDCONFIG= yes |
Lines 31-37
Link Here
|
31 |
.include <bsd.port.options.mk> |
32 |
.include <bsd.port.options.mk> |
32 |
|
33 |
|
33 |
.if ${PORT_OPTIONS:MMTPZ} |
34 |
.if ${PORT_OPTIONS:MMTPZ} |
34 |
LIB_DEPENDS+= gcrypt.18:${PORTSDIR}/security/libgcrypt |
35 |
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt |
35 |
.else |
36 |
.else |
36 |
CONFIGURE_ARGS+=--disable-mtpz |
37 |
CONFIGURE_ARGS+=--disable-mtpz |
37 |
.endif |
38 |
.endif |
Lines 41-47
Link Here
|
41 |
.if ${OSVERSION} < 800069 |
42 |
.if ${OSVERSION} < 800069 |
42 |
LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb |
43 |
LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb |
43 |
CONFIGURE_ENV+= ac_cv_lib_openusb_openusb_init=no |
44 |
CONFIGURE_ENV+= ac_cv_lib_openusb_openusb_init=no |
44 |
BROKEN= does not link on FreeBSD 7.X |
|
|
45 |
.else |
45 |
.else |
46 |
CONFIGURE_ENV+= LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb" LIBS="-lusb" |
46 |
CONFIGURE_ENV+= LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb" LIBS="-lusb" |
47 |
.endif |
47 |
.endif |
Lines 50-56
Link Here
|
50 |
@${REINPLACE_CMD} -e \ |
50 |
@${REINPLACE_CMD} -e \ |
51 |
'/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in |
51 |
'/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in |
52 |
@${REINPLACE_CMD} -e \ |
52 |
@${REINPLACE_CMD} -e \ |
53 |
'/LIBUSB_REQUIRES/s|libusb-1.0||' ${WRKSRC}/configure |
53 |
'/if test/s|==|=| ; \ |
|
|
54 |
/LIBUSB_REQUIRES/s|libusb-1.0||' ${WRKSRC}/configure |
54 |
@${REINPLACE_CMD} -e \ |
55 |
@${REINPLACE_CMD} -e \ |
55 |
's|<libusb-1.0/|<|' ${WRKSRC}/src/libusb-glue.h |
56 |
's|<libusb-1.0/|<|' ${WRKSRC}/src/libusb-glue.h |