Merge pull request #4940 from diizzyy/patch-95
[feed/packages.git] / lang / perl-device-serialport / Makefile
1 #
2 # Copyright (C) 2014, 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=perl-device-serialport
11 PKG_VERSION:=1.04
12 PKG_RELEASE:=3
13
14 PKG_SOURCE_URL:=http://www.cpan.org/authors/id/C/CO/COOK/
15 PKG_SOURCE:=Device-SerialPort-$(PKG_VERSION).tar.gz
16 PKG_HASH:=d392567cb39b4ea606c0e0acafd8ed72320311b995336ece5fcefcf9b150e9d7
17
18 PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
19 PKG_MAINTAINER:=Paul Oranje <por@xs4all.nl>
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Device-SerialPort-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24 include ../perl/perlmod.mk
25
26 define Package/perl-device-serialport
27 SUBMENU:=Perl
28 SECTION:=lang
29 CATEGORY:=Languages
30 TITLE:=A POSIX-based version of the Win32::SerialPort module
31 URL:=http://search.cpan.org/dist/Device-SerialPort/
32 DEPENDS:=perl +perlbase-essential +perlbase-io +perlbase-posix +perlbase-test +perlbase-xsloader
33 endef
34
35 define Package/perl-device-serialport/description
36 A POSIX-based version of the Win32::SerialPort module
37 that provides modem support to Perl applications
38 endef
39
40 define Build/Configure
41 $(call perlmod/Configure,,)
42 endef
43
44 define Build/Compile
45 $(call perlmod/Compile,,)
46 endef
47
48 define Package/perl-device-serialport/install
49 $(call perlmod/Install,$(1),Device auto/Device)
50 endef
51
52
53 $(eval $(call BuildPackage,perl-device-serialport))