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.

528 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:=1
  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. --with-pic \
  246. define Package/hamlib/install
  247. $(INSTALL_DIR) $(1)/usr/bin
  248. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{rig,rot}* $(1)/usr/bin/
  249. endef
  250. define Package/libhamlib/install
  251. $(INSTALL_DIR) $(1)/usr/lib
  252. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhamlib.so* $(1)/usr/lib/
  253. endef
  254. define Package/hamlib-adat/install
  255. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  256. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-adat.so* $(1)/usr/lib/hamlib
  257. endef
  258. define Package/hamlib-alinco/install
  259. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  260. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-alinco.so* $(1)/usr/lib/hamlib
  261. endef
  262. define Package/hamlib-amsat/install
  263. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  264. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-amsat.so* $(1)/usr/lib/hamlib
  265. endef
  266. define Package/hamlib-aor/install
  267. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  268. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-aor.so* $(1)/usr/lib/hamlib
  269. endef
  270. define Package/hamlib-ars/install
  271. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  272. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-ars.so* $(1)/usr/lib/hamlib
  273. endef
  274. define Package/hamlib-celestron/install
  275. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  276. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-celestron.so* $(1)/usr/lib/hamlib
  277. endef
  278. define Package/hamlib-drake/install
  279. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  280. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-drake.so* $(1)/usr/lib/hamlib
  281. endef
  282. define Package/hamlib-dummy/install
  283. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  284. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-dummy.so* $(1)/usr/lib/hamlib
  285. endef
  286. define Package/hamlib-easycomm/install
  287. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  288. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-easycomm.so* $(1)/usr/lib/hamlib
  289. endef
  290. define Package/hamlib-flexradio/install
  291. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  292. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-flexradio.so* $(1)/usr/lib/hamlib
  293. endef
  294. define Package/hamlib-fodtrack/install
  295. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  296. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-fodtrack.so* $(1)/usr/lib/hamlib
  297. endef
  298. define Package/hamlib-gs232a/install
  299. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  300. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-gs232a.so* $(1)/usr/lib/hamlib
  301. endef
  302. define Package/hamlib-heathkit/install
  303. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  304. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-heathkit.so* $(1)/usr/lib/hamlib
  305. endef
  306. define Package/hamlib-icom/install
  307. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  308. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-icom.so* $(1)/usr/lib/hamlib
  309. endef
  310. define Package/hamlib-jrc/install
  311. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  312. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-jrc.so* $(1)/usr/lib/hamlib
  313. endef
  314. define Package/hamlib-kachina/install
  315. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  316. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-kachina.so* $(1)/usr/lib/hamlib
  317. endef
  318. define Package/hamlib-kenwood/install
  319. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  320. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-kenwood.so* $(1)/usr/lib/hamlib
  321. endef
  322. define Package/hamlib-kit/install
  323. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  324. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-kit.so* $(1)/usr/lib/hamlib
  325. endef
  326. define Package/hamlib-lowe/install
  327. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  328. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-lowe.so* $(1)/usr/lib/hamlib
  329. endef
  330. define Package/hamlib-m2/install
  331. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  332. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-m2.so* $(1)/usr/lib/hamlib
  333. endef
  334. define Package/hamlib-pcr/install
  335. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  336. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-pcr.so* $(1)/usr/lib/hamlib
  337. endef
  338. define Package/hamlib-prm80/install
  339. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  340. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-prm80.so* $(1)/usr/lib/hamlib
  341. endef
  342. define Package/hamlib-racal/install
  343. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  344. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-racal.so* $(1)/usr/lib/hamlib
  345. endef
  346. define Package/hamlib-rft/install
  347. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  348. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-rft.so* $(1)/usr/lib/hamlib
  349. endef
  350. define Package/hamlib-rotorez/install
  351. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  352. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-rotorez.so* $(1)/usr/lib/hamlib
  353. endef
  354. define Package/hamlib-rs/install
  355. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  356. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-rs.so* $(1)/usr/lib/hamlib
  357. endef
  358. define Package/hamlib-sartek/install
  359. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  360. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-sartek.so* $(1)/usr/lib/hamlib
  361. endef
  362. define Package/hamlib-skanti/install
  363. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  364. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-skanti.so* $(1)/usr/lib/hamlib
  365. endef
  366. define Package/hamlib-spid/install
  367. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  368. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-spid.so* $(1)/usr/lib/hamlib
  369. endef
  370. define Package/hamlib-tapr/install
  371. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  372. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-tapr.so* $(1)/usr/lib/hamlib
  373. endef
  374. define Package/hamlib-tentec/install
  375. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  376. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-tentec.so* $(1)/usr/lib/hamlib
  377. endef
  378. define Package/hamlib-ts7400/install
  379. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  380. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-ts7400.so* $(1)/usr/lib/hamlib
  381. endef
  382. define Package/hamlib-tuner/install
  383. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  384. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-tuner.so* $(1)/usr/lib/hamlib
  385. endef
  386. define Package/hamlib-uniden/install
  387. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  388. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-uniden.so* $(1)/usr/lib/hamlib
  389. endef
  390. define Package/hamlib-wj/install
  391. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  392. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-wj.so* $(1)/usr/lib/hamlib
  393. endef
  394. define Package/hamlib-yaesu/install
  395. $(INSTALL_DIR) $(1)/usr/lib/hamlib
  396. $(CP) $(PKG_INSTALL_DIR)/usr/lib/hamlib/hamlib-yaesu.so* $(1)/usr/lib/hamlib
  397. endef
  398. $(eval $(call BuildPackage,hamlib))
  399. $(eval $(call BuildPackage,libhamlib))
  400. $(eval $(call BuildPackage,hamlib-adat))
  401. $(eval $(call BuildPackage,hamlib-alinco))
  402. $(eval $(call BuildPackage,hamlib-amsat))
  403. $(eval $(call BuildPackage,hamlib-aor))
  404. $(eval $(call BuildPackage,hamlib-ars))
  405. $(eval $(call BuildPackage,hamlib-celestron))
  406. $(eval $(call BuildPackage,hamlib-drake))
  407. $(eval $(call BuildPackage,hamlib-dummy))
  408. $(eval $(call BuildPackage,hamlib-easycomm))
  409. $(eval $(call BuildPackage,hamlib-flexradio))
  410. $(eval $(call BuildPackage,hamlib-fodtrack))
  411. $(eval $(call BuildPackage,hamlib-gs232a))
  412. $(eval $(call BuildPackage,hamlib-heathkit))
  413. $(eval $(call BuildPackage,hamlib-icom))
  414. $(eval $(call BuildPackage,hamlib-jrc))
  415. $(eval $(call BuildPackage,hamlib-kachina))
  416. $(eval $(call BuildPackage,hamlib-kenwood))
  417. $(eval $(call BuildPackage,hamlib-kit))
  418. $(eval $(call BuildPackage,hamlib-lowe))
  419. $(eval $(call BuildPackage,hamlib-m2))
  420. $(eval $(call BuildPackage,hamlib-pcr))
  421. $(eval $(call BuildPackage,hamlib-prm80))
  422. $(eval $(call BuildPackage,hamlib-racal))
  423. $(eval $(call BuildPackage,hamlib-rft))
  424. $(eval $(call BuildPackage,hamlib-rotorez))
  425. $(eval $(call BuildPackage,hamlib-rs))
  426. $(eval $(call BuildPackage,hamlib-sartek))
  427. $(eval $(call BuildPackage,hamlib-skanti))
  428. $(eval $(call BuildPackage,hamlib-spid))
  429. $(eval $(call BuildPackage,hamlib-tapr))
  430. $(eval $(call BuildPackage,hamlib-tentec))
  431. $(eval $(call BuildPackage,hamlib-ts7400))
  432. $(eval $(call BuildPackage,hamlib-tuner))
  433. $(eval $(call BuildPackage,hamlib-uniden))
  434. $(eval $(call BuildPackage,hamlib-wj))
  435. $(eval $(call BuildPackage,hamlib-yaesu))