summaryrefslogtreecommitdiff
path: root/ham/uhd
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2014-09-08 15:37:42 +0000
committermef <mef@pkgsrc.org>2014-09-08 15:37:42 +0000
commit4800332962b8bd15f9f1d02da02e7edb35c96a34 (patch)
tree9cfffbcf1d5ac9c83c503b7b75661a92d0a96c1d /ham/uhd
parent8b0bc93fd598998176022ba520ef8664806f1d8e (diff)
downloadpkgsrc-4800332962b8bd15f9f1d02da02e7edb35c96a34.tar.gz
Convert to USE_CMAKE= yes style.
Diffstat (limited to 'ham/uhd')
-rw-r--r--ham/uhd/Makefile53
1 files changed, 26 insertions, 27 deletions
diff --git a/ham/uhd/Makefile b/ham/uhd/Makefile
index 64f1e8c164c..a890804ba62 100644
--- a/ham/uhd/Makefile
+++ b/ham/uhd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2014/09/08 10:02:02 obache Exp $
+# $NetBSD: Makefile,v 1.4 2014/09/08 15:37:42 mef Exp $
DISTNAME= uhd-release_003_007_002
PKGNAME= uhd-3.7.2
@@ -12,13 +12,38 @@ COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah
+
USE_LANGUAGES= c c++
USE_TOOLS= cmake pkg-config
+USE_CMAKE= yes
# Please note distribution has many stuff under uhd/, but build itself
# needs under host/ only. Those uhd/ stuff will be handled post-{patch,install}:
WRKSRC= ${WRKDIR}/${DISTNAME}/host
+CONFIGURE_ARGS+= -DCMAKE_BUILD_WITH_INSTALL_RPATH=True
+CONFIGURE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX}
+CONFIGURE_ARGS+= -DCMAKE_INSTALL_RPATH=${PREFIX}/lib
+CONFIGURE_ARGS+= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE
+CONFIGURE_ARGS+= -DLIBUSB_INCLUDE_DIR=${PREFIX}/include/libusb-1.0
+
+CONFIGURE_ARGS+= -DENABLE_LIBUHD=True
+CONFIGURE_ARGS+= -DENABLE_EXAMPLES=True
+CONFIGURE_ARGS+= -DENABLE_UTILS=True
+CONFIGURE_ARGS+= -DENABLE_TESTS=True
+CONFIGURE_ARGS+= -DENABLE_MANUAL=True
+CONFIGURE_ARGS+= -DENABLE_DOXYGEN=True
+CONFIGURE_ARGS+= -DENABLE_MAN_PAGES=True
+CONFIGURE_ARGS+= -DENABLE_ORC=True
+CONFIGURE_ARGS+= -DENABLE_USB=True
+CONFIGURE_ARGS+= -DENABLE_USRP1=True
+CONFIGURE_ARGS+= -DENABLE_USRP2=True
+CONFIGURE_ARGS+= -DENABLE_B100=True
+CONFIGURE_ARGS+= -DENABLE_X300=True
+CONFIGURE_ARGS+= -DENABLE_B200=True
+# E100 is Linux only
+CONFIGURE_ARGS+= -DENABLE_E100=True
+
# The files with their name uhd-xxxx, are moved down from uhd/xxxx for this process.
REPLACE_PYTHON= \
utils/uhd_images_downloader.py.in \
@@ -84,32 +109,6 @@ post-patch:
${CP} -r ${WRKDIR}/${DISTNAME}/$$i/* ${WRKSRC}/uhd-$$i ;\
done)
-do-configure:
- (cd $(WRKSRC) ; \
- cmake \
- -DCMAKE_BUILD_WITH_INSTALL_RPATH=True \
- -DCMAKE_INSTALL_PREFIX=${PREFIX} \
- -DCMAKE_INSTALL_RPATH=${PREFIX}/lib \
- -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE \
- -DLIBUSB_INCLUDE_DIR=${PREFIX}/include/libusb-1.0 \
- -DENABLE_LIBUHD=True \
- -DENABLE_EXAMPLES=True \
- -DENABLE_UTILS=True \
- -DENABLE_TESTS=True \
- -DENABLE_MANUAL=True \
- -DENABLE_DOXYGEN=True \
- -DENABLE_MAN_PAGES=True \
- -DENABLE_ORC=True \
- -DENABLE_USB=True \
- -DENABLE_USRP1=True \
- -DENABLE_USRP2=True \
- -DENABLE_B100=True \
- -DENABLE_X300=True \
- -DENABLE_B200=True \
- -DENABLE_E100=True \
- .)
-# E100 above is Linux only
-
# (1) move back the files to original location after REPLACE_PYTHON handled
# (2) suppress warning at intallation, "non executable files get +x bit set".
#