Pull in devel/libusb on SunOS instead of the unsupported devel/libusb1, the
package detects which version is used at build time and handles both.
This commit is contained in:
parent
3bcebfe7cc
commit
66935e30f6
2 changed files with 15 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.8 2013/04/08 09:52:01 markd Exp $
|
||||
# $NetBSD: Makefile,v 1.9 2014/08/21 14:03:45 jperkin Exp $
|
||||
#
|
||||
|
||||
DISTNAME= libmtp-1.1.6
|
||||
|
@ -20,10 +20,15 @@ PKGCONFIG_OVERRIDE+= libmtp.pc.in
|
|||
REPLACE_SH= hotplug.sh.in
|
||||
REPLACE_SH+= libmtp.sh.in
|
||||
|
||||
# XXX ?
|
||||
LDFLAGS.FreeBSD+= -liconv
|
||||
LDFLAGS.SunOS= -liconv
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
.include "../../converters/libiconv/buildlink3.mk"
|
||||
.if ${OPSYS} == "SunOS"
|
||||
.include "../../devel/libusb/buildlink3.mk"
|
||||
.else
|
||||
.include "../../devel/libusb1/buildlink3.mk"
|
||||
.endif
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.3 2012/08/14 21:00:46 markd Exp $
|
||||
# $NetBSD: buildlink3.mk,v 1.4 2014/08/21 14:03:45 jperkin Exp $
|
||||
|
||||
BUILDLINK_TREE+= libmtp
|
||||
|
||||
|
@ -8,7 +8,14 @@ LIBMTP_BUILDLINK3_MK:=
|
|||
BUILDLINK_API_DEPENDS.libmtp+= libmtp>=0.3.0
|
||||
BUILDLINK_PKGSRCDIR.libmtp?= ../../devel/libmtp
|
||||
|
||||
.include "../../mk/bsd.fast.prefs.mk"
|
||||
|
||||
.if ${OPSYS} == "SunOS"
|
||||
.include "../../devel/libusb/buildlink3.mk"
|
||||
.else
|
||||
.include "../../devel/libusb1/buildlink3.mk"
|
||||
.endif
|
||||
|
||||
.endif # LIBMTP_BUILDLINK3_MK
|
||||
|
||||
BUILDLINK_TREE+= -libmtp
|
||||
|
|
Loading…
Reference in a new issue