Browse Source

libical: add new package

Signed-off-by: Nicolas Thill <nico@openwrt.org>
Nicolas Thill 10 years ago
parent
commit
fb486744ab
1 changed files with 62 additions and 0 deletions
  1. 62
    0
      libs/libical/Makefile

+ 62
- 0
libs/libical/Makefile View File

@@ -0,0 +1,62 @@
1
+#
2
+# Copyright (C) 2009-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:=libical
11
+PKG_VERSION:=1.0
12
+PKG_RELEASE:=1
13
+
14
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
+PKG_SOURCE_URL:=@SF/freeassociation
16
+PKG_MD5SUM:=
17
+
18
+PKG_LICENSE:=GPL-2.0
19
+PKG_LICENSE_FILE:=COPYING
20
+PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
21
+
22
+PKG_FIXUP:=libtool
23
+PKG_INSTALL:=1
24
+
25
+include $(INCLUDE_DIR)/package.mk
26
+
27
+define Package/libical
28
+  SECTION:=libs
29
+  CATEGORY:=Libraries
30
+  TITLE:=iCal (RFC 2445) library
31
+  URL:=http://www.nabber.org/projects/ical/
32
+  DEPENDS:=+libpthread
33
+endef
34
+
35
+define Package/libical/description
36
+ This package provides a a read/write library of classes for object oriented
37
+ languages (Initial goals of PHP and Python) that implement and enforce the iCal
38
+ standard (RFC 2445).
39
+endef
40
+
41
+CONFIGURE_ARGS += \
42
+	--enable-shared \
43
+	--enable-static \
44
+	--disable-cxx \
45
+	--disable-java \
46
+	--disable-python \
47
+
48
+define Build/InstallDev
49
+	$(INSTALL_DIR) $(1)/usr/include
50
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/{ical.h,libical} $(1)/usr/include/
51
+	$(INSTALL_DIR) $(1)/usr/lib
52
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libical{,ss,vcal}.{a,so*} $(1)/usr/lib/
53
+	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
54
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libical.pc $(1)/usr/lib/pkgconfig/
55
+endef
56
+
57
+define Package/libical/install
58
+	$(INSTALL_DIR) $(1)/usr/lib
59
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libical{,ss,vcal}.so.* $(1)/usr/lib/
60
+endef
61
+
62
+$(eval $(call BuildPackage,libical))