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.

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