You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

529 lines
13 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=hamlib
  8. PKG_VERSION:=1.2.15.3
  9. PKG_RELEASE:=3
  10. PKG_MD5SUM:=3cad8987e995a00e5e9d360e2be0eb43
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/hamlib
  13. PKG_FIXUP:=autoreconf
  14. PKG_INSTALL:=1
  15. PKG_LICENSE:=GPLv2
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Vasilis Tsiligiannis <acinonyx@openwrt.gr>
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/hamlib/Default
  20. TITLE:=Ham Radio Control
  21. URL:=http://hamlib.sourceforge.net
  22. endef
  23. define Package/hamlib/Default/description
  24. Ham Radio Control Libraries is a development effort to provide a consistent
  25. interface for programmers wanting to incorporate radio control in their
  26. programs.
  27. endef
  28. define Package/hamlib
  29. $(call Package/hamlib/Default)
  30. TITLE+= utilities
  31. SECTION:=utils
  32. CATEGORY:=Utilities
  33. DEPENDS:=+libpthread +libhamlib
  34. endef
  35. define Package/hamlib/description
  36. $(call Package/hamlib/Default/description)
  37. This package contains the utilities and daemons.
  38. endef
  39. define Package/libhamlib/Default
  40. $(call Package/hamlib/Default)
  41. SECTION:=libs
  42. CATEGORY:=Libraries
  43. TITLE+= shared library
  44. endef
  45. define Package/libhamlib
  46. $(call Package/libhamlib/Default)
  47. DEPENDS:=+libusb-1.0 +libltdl
  48. MENU:=1
  49. endef
  50. define Package/libhamlib/description
  51. $(call Package/hamlib/Default/description)
  52. This package contains the hamlib shared library.
  53. endef
  54. define Package/hamlib-adat
  55. $(call Package/libhamlib/Default)
  56. TITLE:= for ADAT
  57. DEPENDS:=libhamlib
  58. endef
  59. define Package/hamlib-alinco
  60. $(call Package/libhamlib/Default)
  61. TITLE:= for Alinco
  62. DEPENDS:=libhamlib
  63. endef
  64. define Package/hamlib-amsat
  65. $(call Package/libhamlib/Default)
  66. TITLE:= for AMSAT
  67. DEPENDS:=libhamlib
  68. endef
  69. define Package/hamlib-aor
  70. $(call Package/libhamlib/Default)
  71. TITLE:= for AOR
  72. DEPENDS:=libhamlib
  73. endef
  74. define Package/hamlib-ars
  75. $(call Package/libhamlib/Default)
  76. TITLE:= for ARS
  77. DEPENDS:=libhamlib
  78. endef
  79. define Package/hamlib-celestron
  80. $(call Package/libhamlib/Default)
  81. TITLE:= for Celestron
  82. DEPENDS:=libhamlib
  83. endef
  84. define Package/hamlib-drake
  85. $(call Package/libhamlib/Default)
  86. TITLE:= for Drake
  87. DEPENDS:=libhamlib
  88. endef
  89. define Package/hamlib-dummy
  90. $(call Package/libhamlib/Default)
  91. TITLE:= for dummy
  92. DEPENDS:=libhamlib
  93. endef
  94. define Package/hamlib-easycomm
  95. $(call Package/libhamlib/Default)
  96. TITLE:= for EasyComm
  97. DEPENDS:=libhamlib
  98. endef
  99. define Package/hamlib-flexradio
  100. $(call Package/libhamlib/Default)
  101. TITLE:= for FlexRadio
  102. DEPENDS:=libhamlib
  103. endef
  104. define Package/hamlib-fodtrack
  105. $(call Package/libhamlib/Default)
  106. TITLE:= for FodTrack
  107. DEPENDS:=libhamlib
  108. endef
  109. define Package/hamlib-gs232a
  110. $(call Package/libhamlib/Default)
  111. TITLE:= for GS-232A
  112. DEPENDS:=libhamlib
  113. endef
  114. define Package/hamlib-heathkit
  115. $(call Package/libhamlib/Default)
  116. TITLE:= for Heathkit
  117. DEPENDS:=libhamlib
  118. endef
  119. define Package/hamlib-icom
  120. $(call Package/libhamlib/Default)
  121. TITLE:= for ICOM
  122. DEPENDS:=libhamlib
  123. endef
  124. define Package/hamlib-jrc
  125. $(call Package/libhamlib/Default)
  126. TITLE:= for JRC
  127. DEPENDS:=libhamlib
  128. endef
  129. define Package/hamlib-kachina
  130. $(call Package/libhamlib/Default)
  131. TITLE:= for Kachina
  132. DEPENDS:=libhamlib
  133. endef
  134. define Package/hamlib-kenwood
  135. $(call Package/libhamlib/Default)
  136. TITLE:= for Kenwood
  137. DEPENDS:=libhamlib
  138. endef
  139. define Package/hamlib-kit
  140. $(call Package/libhamlib/Default)
  141. TITLE:= for kits
  142. DEPENDS:=libhamlib
  143. endef
  144. define Package/hamlib-lowe
  145. $(call Package/libhamlib/Default)
  146. TITLE:= for Lowe
  147. DEPENDS:=libhamlib
  148. endef
  149. define Package/hamlib-m2
  150. $(call Package/libhamlib/Default)
  151. TITLE:= for M2
  152. DEPENDS:=libhamlib
  153. endef
  154. define Package/hamlib-pcr
  155. $(call Package/libhamlib/Default)
  156. TITLE:= for PCR
  157. DEPENDS:=libhamlib
  158. endef
  159. define Package/hamlib-prm80
  160. $(call Package/libhamlib/Default)
  161. TITLE:= for PRM80
  162. DEPENDS:=libhamlib
  163. endef
  164. define Package/hamlib-racal
  165. $(call Package/libhamlib/Default)
  166. TITLE:= for Racal
  167. DEPENDS:=libhamlib
  168. endef
  169. define Package/hamlib-rft
  170. $(call Package/libhamlib/Default)
  171. TITLE:= for RFT
  172. DEPENDS:=libhamlib
  173. endef
  174. define Package/hamlib-rotorez
  175. $(call Package/libhamlib/Default)
  176. TITLE:= for Rotor-EZ
  177. DEPENDS:=libhamlib
  178. endef
  179. define Package/hamlib-rs
  180. $(call Package/libhamlib/Default)
  181. TITLE:= for R&S
  182. DEPENDS:=libhamlib
  183. endef
  184. define Package/hamlib-sartek
  185. $(call Package/libhamlib/Default)
  186. TITLE:= for SARtek
  187. DEPENDS:=libhamlib
  188. endef
  189. define Package/hamlib-skanti
  190. $(call Package/libhamlib/Default)
  191. TITLE:= for Skanti
  192. DEPENDS:=libhamlib
  193. endef
  194. define Package/hamlib-spid
  195. $(call Package/libhamlib/Default)
  196. TITLE:= for SPID
  197. DEPENDS:=libhamlib
  198. endef
  199. define Package/hamlib-tapr
  200. $(call Package/libhamlib/Default)
  201. TITLE:= for TAPR
  202. DEPENDS:=libhamlib
  203. endef
  204. define Package/hamlib-tentec
  205. $(call Package/libhamlib/Default)
  206. TITLE:= for TenTec
  207. DEPENDS:=libhamlib
  208. endef
  209. define Package/hamlib-ts7400
  210. $(call Package/libhamlib/Default)
  211. TITLE:= for TS-7400
  212. DEPENDS:=libhamlib
  213. endef
  214. define Package/hamlib-tuner
  215. $(call Package/libhamlib/Default)
  216. TITLE:= for Video for Linux tuner
  217. DEPENDS:=libhamlib
  218. endef
  219. define Package/hamlib-uniden
  220. $(call Package/libhamlib/Default)
  221. TITLE:= for Uniden
  222. DEPENDS:=libhamlib
  223. endef
  224. define Package/hamlib-wj
  225. $(call Package/libhamlib/Default)
  226. TITLE:= for Watkins - Johnson
  227. DEPENDS:=libhamlib
  228. endef
  229. define Package/hamlib-yaesu
  230. $(call Package/libhamlib/Default)
  231. TITLE:= for Yaesu
  232. DEPENDS:=libhamlib
  233. endef
  234. define Build/InstallDev
  235. $(INSTALL_DIR) $(1)/usr/include/hamlib
  236. $(CP) $(PKG_INSTALL_DIR)/usr/include/hamlib/*.h $(1)/usr/include/hamlib
  237. $(INSTALL_DIR) $(1)/usr/lib
  238. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhamlib.so* $(1)/usr/lib/
  239. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  240. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/hamlib.pc $(1)/usr/lib/pkgconfig/
  241. endef
  242. CONFIGURE_ARGS+= \
  243. --without-cxx-binding \
  244. --without-winradio \
  245. --without-rpc-backends \
  246. --with-pic \
  247. define Package/hamlib/install
  248. $(INSTALL_DIR) $(1)/usr/bin
  249. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{rig,rot}* $(1)/usr/bin/
  250. endef
  251. define Package/libhamlib/install
  252. $(INSTALL_DIR) $(1)/usr/lib
  253. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhamlib.so* $(1)/usr/lib/
  254. endef
  255. define Package/hamlib-adat/install
  256. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  257. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-adat.so* $(1)/usr/lib/hamlib
  258. endef
  259. define Package/hamlib-alinco/install
  260. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  261. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-alinco.so* $(1)/usr/lib/hamlib
  262. endef
  263. define Package/hamlib-amsat/install
  264. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  265. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-amsat.so* $(1)/usr/lib/hamlib
  266. endef
  267. define Package/hamlib-aor/install
  268. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  269. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-aor.so* $(1)/usr/lib/hamlib
  270. endef
  271. define Package/hamlib-ars/install
  272. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  273. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-ars.so* $(1)/usr/lib/hamlib
  274. endef
  275. define Package/hamlib-celestron/install
  276. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  277. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-celestron.so* $(1)/usr/lib/hamlib
  278. endef
  279. define Package/hamlib-drake/install
  280. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  281. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-drake.so* $(1)/usr/lib/hamlib
  282. endef
  283. define Package/hamlib-dummy/install
  284. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  285. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-dummy.so* $(1)/usr/lib/hamlib
  286. endef
  287. define Package/hamlib-easycomm/install
  288. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  289. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-easycomm.so* $(1)/usr/lib/hamlib
  290. endef
  291. define Package/hamlib-flexradio/install
  292. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  293. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-flexradio.so* $(1)/usr/lib/hamlib
  294. endef
  295. define Package/hamlib-fodtrack/install
  296. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  297. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-fodtrack.so* $(1)/usr/lib/hamlib
  298. endef
  299. define Package/hamlib-gs232a/install
  300. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  301. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-gs232a.so* $(1)/usr/lib/hamlib
  302. endef
  303. define Package/hamlib-heathkit/install
  304. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  305. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-heathkit.so* $(1)/usr/lib/hamlib
  306. endef
  307. define Package/hamlib-icom/install
  308. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  309. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-icom.so* $(1)/usr/lib/hamlib
  310. endef
  311. define Package/hamlib-jrc/install
  312. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  313. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-jrc.so* $(1)/usr/lib/hamlib
  314. endef
  315. define Package/hamlib-kachina/install
  316. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  317. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-kachina.so* $(1)/usr/lib/hamlib
  318. endef
  319. define Package/hamlib-kenwood/install
  320. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  321. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-kenwood.so* $(1)/usr/lib/hamlib
  322. endef
  323. define Package/hamlib-kit/install
  324. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  325. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-kit.so* $(1)/usr/lib/hamlib
  326. endef
  327. define Package/hamlib-lowe/install
  328. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  329. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-lowe.so* $(1)/usr/lib/hamlib
  330. endef
  331. define Package/hamlib-m2/install
  332. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  333. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-m2.so* $(1)/usr/lib/hamlib
  334. endef
  335. define Package/hamlib-pcr/install
  336. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  337. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-pcr.so* $(1)/usr/lib/hamlib
  338. endef
  339. define Package/hamlib-prm80/install
  340. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  341. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-prm80.so* $(1)/usr/lib/hamlib
  342. endef
  343. define Package/hamlib-racal/install
  344. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  345. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-racal.so* $(1)/usr/lib/hamlib
  346. endef
  347. define Package/hamlib-rft/install
  348. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  349. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-rft.so* $(1)/usr/lib/hamlib
  350. endef
  351. define Package/hamlib-rotorez/install
  352. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  353. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-rotorez.so* $(1)/usr/lib/hamlib
  354. endef
  355. define Package/hamlib-rs/install
  356. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  357. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-rs.so* $(1)/usr/lib/hamlib
  358. endef
  359. define Package/hamlib-sartek/install
  360. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  361. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-sartek.so* $(1)/usr/lib/hamlib
  362. endef
  363. define Package/hamlib-skanti/install
  364. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  365. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-skanti.so* $(1)/usr/lib/hamlib
  366. endef
  367. define Package/hamlib-spid/install
  368. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  369. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-spid.so* $(1)/usr/lib/hamlib
  370. endef
  371. define Package/hamlib-tapr/install
  372. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  373. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-tapr.so* $(1)/usr/lib/hamlib
  374. endef
  375. define Package/hamlib-tentec/install
  376. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  377. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-tentec.so* $(1)/usr/lib/hamlib
  378. endef
  379. define Package/hamlib-ts7400/install
  380. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  381. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-ts7400.so* $(1)/usr/lib/hamlib
  382. endef
  383. define Package/hamlib-tuner/install
  384. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  385. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-tuner.so* $(1)/usr/lib/hamlib
  386. endef
  387. define Package/hamlib-uniden/install
  388. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  389. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-uniden.so* $(1)/usr/lib/hamlib
  390. endef
  391. define Package/hamlib-wj/install
  392. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  393. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-wj.so* $(1)/usr/lib/hamlib
  394. endef
  395. define Package/hamlib-yaesu/install
  396. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  397. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-yaesu.so* $(1)/usr/lib/hamlib
  398. endef
  399. $(eval $(call BuildPackage,hamlib))
  400. $(eval $(call BuildPackage,libhamlib))
  401. $(eval $(call BuildPackage,hamlib-adat))
  402. $(eval $(call BuildPackage,hamlib-alinco))
  403. $(eval $(call BuildPackage,hamlib-amsat))
  404. $(eval $(call BuildPackage,hamlib-aor))
  405. $(eval $(call BuildPackage,hamlib-ars))
  406. $(eval $(call BuildPackage,hamlib-celestron))
  407. $(eval $(call BuildPackage,hamlib-drake))
  408. $(eval $(call BuildPackage,hamlib-dummy))
  409. $(eval $(call BuildPackage,hamlib-easycomm))
  410. $(eval $(call BuildPackage,hamlib-flexradio))
  411. $(eval $(call BuildPackage,hamlib-fodtrack))
  412. $(eval $(call BuildPackage,hamlib-gs232a))
  413. $(eval $(call BuildPackage,hamlib-heathkit))
  414. $(eval $(call BuildPackage,hamlib-icom))
  415. $(eval $(call BuildPackage,hamlib-jrc))
  416. $(eval $(call BuildPackage,hamlib-kachina))
  417. $(eval $(call BuildPackage,hamlib-kenwood))
  418. $(eval $(call BuildPackage,hamlib-kit))
  419. $(eval $(call BuildPackage,hamlib-lowe))
  420. $(eval $(call BuildPackage,hamlib-m2))
  421. $(eval $(call BuildPackage,hamlib-pcr))
  422. $(eval $(call BuildPackage,hamlib-prm80))
  423. $(eval $(call BuildPackage,hamlib-racal))
  424. $(eval $(call BuildPackage,hamlib-rft))
  425. $(eval $(call BuildPackage,hamlib-rotorez))
  426. $(eval $(call BuildPackage,hamlib-rs))
  427. $(eval $(call BuildPackage,hamlib-sartek))
  428. $(eval $(call BuildPackage,hamlib-skanti))
  429. $(eval $(call BuildPackage,hamlib-spid))
  430. $(eval $(call BuildPackage,hamlib-tapr))
  431. $(eval $(call BuildPackage,hamlib-tentec))
  432. $(eval $(call BuildPackage,hamlib-ts7400))
  433. $(eval $(call BuildPackage,hamlib-tuner))
  434. $(eval $(call BuildPackage,hamlib-uniden))
  435. $(eval $(call BuildPackage,hamlib-wj))
  436. $(eval $(call BuildPackage,hamlib-yaesu))