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