2015-01-18 07:38:34 +00:00
|
|
|
# $NetBSD: Makefile,v 1.6 2015/01/18 07:38:34 makoto Exp $
|
2013-10-07 13:21:48 +00:00
|
|
|
|
2019-08-18 17:30:38 +00:00
|
|
|
DISTNAME= libftdi1-1.4
|
2013-10-07 13:21:48 +00:00
|
|
|
CATEGORIES= devel
|
2017-08-16 20:27:37 +00:00
|
|
|
MASTER_SITES= https://www.intra2net.com/en/developer/libftdi/download/
|
2013-10-07 13:21:48 +00:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-08-16 20:27:37 +00:00
|
|
|
HOMEPAGE= https://www.intra2net.com/en/developer/libftdi/
|
2013-10-07 13:21:48 +00:00
|
|
|
COMMENT= Userland driver library for FTDI USB chips
|
|
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_CMAKE= yes
|
|
|
|
# false warning ? The "cmake" tool is used but not added to USE_TOOLS.
|
2015-01-16 18:09:11 +00:00
|
|
|
USE_TOOLS+= pkg-config #cmake
|
2013-10-07 13:21:48 +00:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
2019-09-02 13:00:26 +00:00
|
|
|
PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 1.4
|
2019-08-18 17:30:38 +00:00
|
|
|
|
2018-01-28 19:05:28 +00:00
|
|
|
BUILD_DEPENDS+= libusb1-[0-9]*:../../devel/libusb1
|
2013-10-08 01:03:53 +00:00
|
|
|
# It is better off to have doxygen, but
|
|
|
|
# clang segfaults while packaging print/luatex
|
2018-01-28 19:05:28 +00:00
|
|
|
#BUILD_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen
|
2013-10-07 13:21:48 +00:00
|
|
|
|
2015-01-16 18:09:11 +00:00
|
|
|
#CONFIGURE_ARGS+= --without-examples
|
|
|
|
#CONFIGURE_ARGS+= --without-docs
|
2013-10-07 13:21:48 +00:00
|
|
|
|
|
|
|
PKGCONFIG_OVERRIDE+= libftdi1.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= libftdipp1.pc.in
|
|
|
|
|
2018-01-27 21:23:08 +00:00
|
|
|
PLIST_SUBST+= PYSITELIB=${PYSITELIB}
|
2013-10-07 13:57:13 +00:00
|
|
|
|
2018-01-27 21:23:08 +00:00
|
|
|
CMAKE_USE_GNU_INSTALL_DIRS= no
|
2015-01-16 18:09:11 +00:00
|
|
|
|
2018-01-27 21:23:08 +00:00
|
|
|
CMAKE_ARGS+= -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE
|
|
|
|
CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX}
|
|
|
|
CMAKE_ARGS+= -DCMAKE_INSTALL_RPATH=${PREFIX}/lib
|
|
|
|
#CMAKE_ARGS+= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE
|
|
|
|
CMAKE_ARGS+= -DLIBUSB_INCLUDE_DIR=${PREFIX}/include/libusb-1.0
|
2015-01-16 18:09:11 +00:00
|
|
|
|
|
|
|
REPLACE_PYTHON= python/examples/*.py
|
|
|
|
|
2013-10-07 13:21:48 +00:00
|
|
|
|
|
|
|
.include "../../devel/boost-headers/buildlink3.mk"
|
|
|
|
.include "../../devel/boost-libs/buildlink3.mk"
|
2015-01-16 18:09:11 +00:00
|
|
|
.include "../../devel/confuse/buildlink3.mk"
|
2018-03-29 21:27:30 +00:00
|
|
|
.include "../../mk/libusb.buildlink3.mk"
|
2013-10-07 13:21:48 +00:00
|
|
|
.include "../../devel/libusb1/buildlink3.mk"
|
2013-10-08 01:03:53 +00:00
|
|
|
.include "../../devel/swig/buildlink3.mk"
|
2015-01-16 18:09:11 +00:00
|
|
|
.include "../../lang/python/application.mk"
|
2013-10-07 13:21:48 +00:00
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
|
|
.include "../../lang/${PYPACKAGE}/buildlink3.mk"
|
2013-10-08 01:03:53 +00:00
|
|
|
|
2013-10-07 13:21:48 +00:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|