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.

111 lines
2.9 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.23
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://alpine.x10host.com/alpine/release/src
  13. PKG_HASH:=793a61215c005b5fcffb48f642f125915276b7ec7827508dd9e83d4c4da91f7b
  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_PARALLEL:=1
  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://alpine.x10host.com/alpine/
  27. endef
  28. define Package/alpine/Default/description
  29. Alpine (Alternatively Licensed 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+= +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. $(if $(CONFIG_IPV6),--with,--without)-ipv6
  67. CONFIGURE_VARS += \
  68. top_builddir=$(PKG_BUILD_DIR)
  69. ifeq ($(BUILD_VARIANT),ssl)
  70. CONFIGURE_ARGS += \
  71. --with-ssl-include-dir=$(STAGING_DIR)/usr/include/openssl/. \
  72. --with-ssl-lib-dir=$(STAGING_DIR)/usr/lib
  73. else
  74. CONFIGURE_ARGS += \
  75. --without-ssl
  76. endif
  77. define Build/Compile
  78. ( cd $(PKG_BUILD_DIR)/pith ; \
  79. $(HOSTCC) help_h_gen.c -c -o help_h_gen.o ; \
  80. $(HOSTCC) help_h_gen.o -o help_h_gen ; \
  81. $(HOSTCC) help_c_gen.c -c -o help_c_gen.o ; \
  82. $(HOSTCC) help_c_gen.o -o help_c_gen ; \
  83. )
  84. $(call Build/Compile/Default)
  85. endef
  86. define Package/alpine/install
  87. $(INSTALL_DIR) $(1)/usr/bin
  88. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alpine $(1)/usr/bin/
  89. endef
  90. Package/alpine-nossl/install = $(Package/alpine/install)
  91. $(eval $(call BuildPackage,alpine))
  92. $(eval $(call BuildPackage,alpine-nossl))