bluez-tools: Add package bluezetools
[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.24
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://alpine.x10host.com/alpine/release/src
16 PKG_HASH:=651a9ffa0a29e2b646a0a6e0d5a2c8c50f27a07a26a61640b7c783d06d0abcef
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 DEPENDS+= @BROKEN
59 VARIANT:=nossl
60 endef
61
62 define Package/alpine-nossl/description
63 $(call Package/alpine/Default/description)
64 This package is built without OpenSSL support.
65 endef
66
67 CONFIGURE_ARGS += \
68 --with-libiconv-prefix=$(ICONV_PREFIX) \
69 --with-libintl-prefix=$(INTL_PREFIX) \
70 --without-tcl \
71 --without-ldap \
72 --without-krb5 \
73 --with-system-pinerc=/etc/pine.conf \
74 --with-system-fixed-pinerc=/etc/pine.conf.fixed \
75 --with-supplied-regex \
76 --with-default-sshpath=/usr/bin/ssh \
77 --disable-debug \
78 --disable-mouse \
79 --with-c-client-target=slx \
80 $(if $(CONFIG_IPV6),--with,--without)-ipv6
81
82 CONFIGURE_VARS += \
83 top_builddir=$(PKG_BUILD_DIR)
84
85 ifeq ($(BUILD_VARIANT),ssl)
86 CONFIGURE_ARGS += \
87 --with-ssl-include-dir=$(STAGING_DIR)/usr/include/openssl/. \
88 --with-ssl-lib-dir=$(STAGING_DIR)/usr/lib
89 else
90 CONFIGURE_ARGS += \
91 --without-ssl
92 endif
93
94 define Build/Compile
95 ( cd $(PKG_BUILD_DIR)/pith ; \
96 $(HOSTCC) help_h_gen.c -c -o help_h_gen.o ; \
97 $(HOSTCC) help_h_gen.o -o help_h_gen ; \
98 $(HOSTCC) help_c_gen.c -c -o help_c_gen.o ; \
99 $(HOSTCC) help_c_gen.o -o help_c_gen ; \
100 )
101 $(call Build/Compile/Default)
102 endef
103
104 define Package/alpine/install
105 $(INSTALL_DIR) $(1)/usr/bin
106 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alpine $(1)/usr/bin/
107 endef
108
109 Package/alpine-nossl/install = $(Package/alpine/install)
110
111 $(eval $(call BuildPackage,alpine))
112 $(eval $(call BuildPackage,alpine-nossl))