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.

112 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.24
  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:=651a9ffa0a29e2b646a0a6e0d5a2c8c50f27a07a26a61640b7c783d06d0abcef
  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. DEPENDS+= @BROKEN
  48. VARIANT:=nossl
  49. endef
  50. define Package/alpine-nossl/description
  51. $(call Package/alpine/Default/description)
  52. This package is built without OpenSSL support.
  53. endef
  54. CONFIGURE_ARGS += \
  55. --with-libiconv-prefix=$(ICONV_PREFIX) \
  56. --with-libintl-prefix=$(INTL_PREFIX) \
  57. --without-tcl \
  58. --without-ldap \
  59. --without-krb5 \
  60. --with-system-pinerc=/etc/pine.conf \
  61. --with-system-fixed-pinerc=/etc/pine.conf.fixed \
  62. --with-supplied-regex \
  63. --with-default-sshpath=/usr/bin/ssh \
  64. --disable-debug \
  65. --disable-mouse \
  66. --with-c-client-target=slx \
  67. $(if $(CONFIG_IPV6),--with,--without)-ipv6
  68. CONFIGURE_VARS += \
  69. top_builddir=$(PKG_BUILD_DIR)
  70. ifeq ($(BUILD_VARIANT),ssl)
  71. CONFIGURE_ARGS += \
  72. --with-ssl-include-dir=$(STAGING_DIR)/usr/include/openssl/. \
  73. --with-ssl-lib-dir=$(STAGING_DIR)/usr/lib
  74. else
  75. CONFIGURE_ARGS += \
  76. --without-ssl
  77. endif
  78. define Build/Compile
  79. ( cd $(PKG_BUILD_DIR)/pith ; \
  80. $(HOSTCC) help_h_gen.c -c -o help_h_gen.o ; \
  81. $(HOSTCC) help_h_gen.o -o help_h_gen ; \
  82. $(HOSTCC) help_c_gen.c -c -o help_c_gen.o ; \
  83. $(HOSTCC) help_c_gen.o -o help_c_gen ; \
  84. )
  85. $(call Build/Compile/Default)
  86. endef
  87. define Package/alpine/install
  88. $(INSTALL_DIR) $(1)/usr/bin
  89. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alpine $(1)/usr/bin/
  90. endef
  91. Package/alpine-nossl/install = $(Package/alpine/install)
  92. $(eval $(call BuildPackage,alpine))
  93. $(eval $(call BuildPackage,alpine-nossl))