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.

62 lines
1.5 KiB

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