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.

123 lines
3.0 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. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=alpine
  9. PKG_VERSION:=2.20
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=http://patches.freeiz.com/alpine/release/src/
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_MD5SUM:=043b67666af73b26f9627ad97e2aaf92
  14. PKG_MAINTAINER:=Antti Seppälä <a.seppala@gmail.com>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_INSTALL:=1
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/alpine/Default
  22. SECTION:=mail
  23. CATEGORY:=Mail
  24. DEPENDS:=+libopenssl +libncurses +libpthread +libpam $(ICONV_DEPENDS) $(INTL_DEPENDS)
  25. TITLE:=Alternatively Licensed Program for Internet News and Email
  26. URL:=http://www.washington.edu/alpine
  27. endef
  28. define Package/alpine/Default/description
  29. Alpine (Alternatively Licenced Program for Internet News and Email) is a
  30. free software email client developed at the University of Washington.
  31. It is suitable for both the inexperienced email user as well as for
  32. the most demanding power user.
  33. endef
  34. define Package/alpine
  35. $(call Package/alpine/Default)
  36. TITLE+= (with OpenSSL support)
  37. DEPENDS+= +libcrypto +libopenssl
  38. VARIANT:=ssl
  39. endef
  40. define Package/alpine/description
  41. $(call Package/alpine/Default/description)
  42. This package is built with OpenSSL support.
  43. endef
  44. define Package/alpine-nossl
  45. $(call Package/alpine/Default)
  46. TITLE+= (without OpenSSL support)
  47. VARIANT:=nossl
  48. endef
  49. define Package/alpine-nossl/description
  50. $(call Package/alpine/Default/description)
  51. This package is built without OpenSSL support.
  52. endef
  53. CONFIGURE_ARGS += \
  54. --with-libiconv-prefix=$(ICONV_PREFIX) \
  55. --with-libintl-prefix=$(INTL_PREFIX) \
  56. --without-tcl \
  57. --without-ldap \
  58. --without-krb5 \
  59. --with-system-pinerc=/etc/pine.conf \
  60. --with-system-fixed-pinerc=/etc/pine.conf.fixed \
  61. --with-supplied-regex \
  62. --with-default-sshpath=/usr/bin/ssh \
  63. --disable-debug \
  64. --disable-mouse \
  65. --with-c-client-target=slx \
  66. CONFIGURE_VARS += \
  67. top_builddir=$(PKG_BUILD_DIR)
  68. ifeq ($(BUILD_VARIANT),ssl)
  69. CONFIGURE_ARGS += \
  70. --with-ssl-include-dir=$(STAGING_DIR)/usr/include/openssl/. \
  71. --with-ssl-lib-dir=$(STAGING_DIR)/usr/lib
  72. endif
  73. ifeq ($(BUILD_VARIANT),nossl)
  74. CONFIGURE_ARGS += \
  75. --without-ssl
  76. endif
  77. ifeq ($(CONFIG_BUILD_NLS),y)
  78. DISABLE_NLS:=
  79. endif
  80. ifeq ($(CONFIG_IPV6),y)
  81. DISABLE_IPV6:=
  82. else
  83. DISABLE_IPV6:=--without-ipv6
  84. endif
  85. define Build/Compile
  86. ( cd $(PKG_BUILD_DIR)/pith ; \
  87. $(HOSTCC) help_h_gen.c -c -o help_h_gen.o ; \
  88. $(HOSTCC) help_h_gen.o -o help_h_gen ; \
  89. $(HOSTCC) help_c_gen.c -c -o help_c_gen.o ; \
  90. $(HOSTCC) help_c_gen.o -o help_c_gen ; \
  91. )
  92. $(call Build/Compile/Default)
  93. endef
  94. define Package/alpine/install
  95. $(INSTALL_DIR) $(1)/usr/bin
  96. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
  97. endef
  98. Package/alpine-nossl/install = $(Package/alpine/install)
  99. $(eval $(call BuildPackage,alpine))
  100. $(eval $(call BuildPackage,alpine-nossl))