No Description

Makefile 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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.11
  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:=a3bba218787691080d706b36215eec06
  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/Configure
  86. $(call Build/Configure/Default)
  87. ( cd $(PKG_BUILD_DIR)/regex ; \
  88. make ; \
  89. )
  90. $(call Build/Configure/Default)
  91. endef
  92. define Build/Compile
  93. ( cd $(PKG_BUILD_DIR)/pith ; \
  94. $(HOSTCC) help_h_gen.c -c -o help_h_gen.o ; \
  95. $(HOSTCC) help_h_gen.o -o help_h_gen ; \
  96. $(HOSTCC) help_c_gen.c -c -o help_c_gen.o ; \
  97. $(HOSTCC) help_c_gen.o -o help_c_gen ; \
  98. )
  99. $(call Build/Compile/Default)
  100. endef
  101. define Package/alpine/install
  102. $(INSTALL_DIR) $(1)/usr/bin
  103. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
  104. endef
  105. Package/alpine-nossl/install = $(Package/alpine/install)
  106. $(eval $(call BuildPackage,alpine))
  107. $(eval $(call BuildPackage,alpine-nossl))