| @@ -1,39 +1,42 @@ | | | @@ -1,39 +1,42 @@ |
1 | # $NetBSD: Makefile,v 1.10 2015/04/17 15:53:09 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.11 2015/08/14 04:53:08 mef Exp $ |
2 | | | 2 | |
3 | DISTNAME= uhd-release_003_007_002 | | 3 | DISTNAME= uhd-3.7.2 |
4 | PKGNAME= uhd-3.7.2 | | | |
5 | PKGREVISION= 2 | | 4 | PKGREVISION= 2 |
6 | CATEGORIES= ham | | 5 | CATEGORIES= ham |
7 | MASTER_SITES= -https://github.com/EttusResearch/uhd/archive/${DISTNAME:S/uhd-//}${EXTRACT_SUFX} | | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=EttusResearch/} |
8 | EXTRACT_SUFX= .zip | | 7 | GITHUB_PROJECT= uhd |
| | | 8 | GITHUB_TAG= release_003_007_002 |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://code.ettus.com/redmine/ettus/projects/uhd/wiki | | 11 | HOMEPAGE= http://code.ettus.com/redmine/ettus/projects/uhd/wiki |
12 | COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers | | 12 | COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers |
13 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
14 | | | 14 | |
15 | BUILD_DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah | | 15 | BUILD_DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah |
16 | BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils | | 16 | BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils |
17 | | | 17 | |
18 | CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py | | 18 | CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py |
19 | | | 19 | |
20 | USE_LANGUAGES= c c++ | | 20 | USE_LANGUAGES= c c++ |
21 | USE_TOOLS= cmake pkg-config | | 21 | USE_TOOLS= cmake pkg-config |
22 | USE_CMAKE= yes | | 22 | USE_CMAKE= yes |
| | | 23 | # extra pax_global_header exists, and to avoid that: |
| | | 24 | EXTRACT_USING= gtar |
| | | 25 | #EXTRACT_ELEMENTS= uhd-${GITHUB_TAG} |
23 | | | 26 | |
24 | # Please note distribution has many stuff under uhd/, but build itself | | 27 | # Please note distribution has many stuff under uhd/, but build itself |
25 | # needs under host/ only. Those uhd/ stuff will be handled post-{patch,install}: | | 28 | # needs under host/ only. Those uhd/ stuff will be handled post-{patch,install}: |
26 | WRKSRC= ${WRKDIR}/${DISTNAME}/host | | 29 | WRKSRC= ${WRKDIR}/uhd-${GITHUB_TAG}/host |
27 | | | 30 | |
28 | # The files with their name uhd-xxxx, are moved down from uhd/xxxx for this process. | | 31 | # The files with their name uhd-xxxx, are moved down from uhd/xxxx for this process. |
29 | REPLACE_PYTHON= \ | | 32 | REPLACE_PYTHON= \ |
30 | utils/uhd_images_downloader.py.in \ | | 33 | utils/uhd_images_downloader.py.in \ |
31 | utils/usrp2_card_burner.py \ | | 34 | utils/usrp2_card_burner.py \ |
32 | utils/usrp2_card_burner_gui.py \ | | 35 | utils/usrp2_card_burner_gui.py \ |
33 | utils/usrp_n2xx_net_burner.py \ | | 36 | utils/usrp_n2xx_net_burner.py \ |
34 | utils/usrp_n2xx_net_burner_gui.py \ | | 37 | utils/usrp_n2xx_net_burner_gui.py \ |
35 | uhd-firmware/fx2/utils/build_eeprom.py \ | | 38 | uhd-firmware/fx2/utils/build_eeprom.py \ |
36 | uhd-firmware/fx2/utils/edit-gpif-b100.py \ | | 39 | uhd-firmware/fx2/utils/edit-gpif-b100.py \ |
37 | uhd-firmware/fx2/utils/edit-gpif.py \ | | 40 | uhd-firmware/fx2/utils/edit-gpif.py \ |
38 | uhd-firmware/fx2/utils/generate_regs.py \ | | 41 | uhd-firmware/fx2/utils/generate_regs.py \ |
39 | uhd-firmware/x300/bin_to_coe.py \ | | 42 | uhd-firmware/x300/bin_to_coe.py \ |
| @@ -77,27 +80,27 @@ SUBST_FILES.man= docs/CMakeLists.txt | | | @@ -77,27 +80,27 @@ SUBST_FILES.man= docs/CMakeLists.txt |
77 | SUBST_SED.man= -e '/UHD_INSTALL/s,$${PKG_MAN_DIR},${PREFIX}/${PKGMANDIR}/man1,' | | 80 | SUBST_SED.man= -e '/UHD_INSTALL/s,$${PKG_MAN_DIR},${PREFIX}/${PKGMANDIR}/man1,' |
78 | # UHD_INSTALL(FILES ${gzfile} DESTINATION ${PKG_MAN_DIR} COMPONENT manpages) | | 81 | # UHD_INSTALL(FILES ${gzfile} DESTINATION ${PKG_MAN_DIR} COMPONENT manpages) |
79 | | | 82 | |
80 | # is it default ? and redundent ? | | 83 | # is it default ? and redundent ? |
81 | PLIST_SRC= ${PKGDIR}/PLIST | | 84 | PLIST_SRC= ${PKGDIR}/PLIST |
82 | .include "options.mk" | | 85 | .include "options.mk" |
83 | | | 86 | |
84 | # Copy (beyond) upper directory files (which should be handled at post-install) | | 87 | # Copy (beyond) upper directory files (which should be handled at post-install) |
85 | # to receive REPLACE_PYTHON conversion ( otherwise above the range ) | | 88 | # to receive REPLACE_PYTHON conversion ( otherwise above the range ) |
86 | post-patch: | | 89 | post-patch: |
87 | (cd ${WRKDIR}; \ | | 90 | (cd ${WRKDIR}; \ |
88 | for i in firmware fpga images ; do \ | | 91 | for i in firmware fpga images ; do \ |
89 | ${MKDIR} ${WRKSRC}/uhd-$$i ;\ | | 92 | ${MKDIR} ${WRKSRC}/uhd-$$i ;\ |
90 | ${CP} -r ${WRKDIR}/${DISTNAME}/$$i/* ${WRKSRC}/uhd-$$i ;\ | | 93 | ${CP} -r ${WRKDIR}/uhd-${GITHUB_TAG}/$$i/* ${WRKSRC}/uhd-$$i ;\ |
91 | done) | | 94 | done) |
92 | | | 95 | |
93 | # (1) move back the files to original location after REPLACE_PYTHON handled | | 96 | # (1) move back the files to original location after REPLACE_PYTHON handled |
94 | # (2) suppress warning at intallation, "non executable files get +x bit set". | | 97 | # (2) suppress warning at intallation, "non executable files get +x bit set". |
95 | # | | 98 | # |
96 | # Converting ${CP} into ${INTALL_DATA_DIR} and ${INSTALL_DATA} as pkglint | | 99 | # Converting ${CP} into ${INTALL_DATA_DIR} and ${INSTALL_DATA} as pkglint |
97 | # flags are NOT easy, sorry for that. | | 100 | # flags are NOT easy, sorry for that. |
98 | post-install: | | 101 | post-install: |
99 | for i in firmware fpga images ; do \ | | 102 | for i in firmware fpga images ; do \ |
100 | ${CP} -r ${WRKSRC}/uhd-$$i/* ${DESTDIR}${PREFIX}/share/uhd/$$i/;\ | | 103 | ${CP} -r ${WRKSRC}/uhd-$$i/* ${DESTDIR}${PREFIX}/share/uhd/$$i/;\ |
101 | ${FIND} ${DESTDIR}${PREFIX}/share/uhd/$$i -type f -exec \ | | 104 | ${FIND} ${DESTDIR}${PREFIX}/share/uhd/$$i -type f -exec \ |
102 | ${CHMOD} -x '{}' \; ;\ | | 105 | ${CHMOD} -x '{}' \; ;\ |
103 | done | | 106 | done |