Browse Source

hamlib: Add package

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
Vasilis Tsiligiannis 10 years ago
parent
commit
13d6e6f3b4
1 changed files with 528 additions and 0 deletions
  1. 528
    0
      utils/hamlib/Makefile

+ 528
- 0
utils/hamlib/Makefile View File

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