2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=https
://alpineapp.email
/alpine
/release
/src
/Old
16 PKG_HASH
:=658a150982f6740bb4128e6dd81188eaa1212ca0bf689b83c2093bb518ecf776
18 PKG_MAINTAINER
:=Antti Seppälä
<a.seppala@gmail.com
>
19 PKG_LICENSE
:=Apache-2.0
20 PKG_LICENSE_FILES
:=LICENSE
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/nls.mk
28 define Package
/alpine
/Default
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
/
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.
44 $(call Package
/alpine
/Default
)
45 TITLE
+= (with OpenSSL support
)
50 define Package
/alpine
/description
51 $(call Package
/alpine
/Default
/description
)
52 This package is built with OpenSSL support.
55 define Package
/alpine-nossl
56 $(call Package
/alpine
/Default
)
57 TITLE
+= (without OpenSSL support
)
62 define Package
/alpine-nossl
/description
63 $(call Package
/alpine
/Default
/description
)
64 This package is built without OpenSSL support.
68 --with-libiconv-prefix
=$(ICONV_PREFIX
) \
69 --with-libintl-prefix
=$(INTL_PREFIX
) \
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 \
79 --with-c-client-target
=slx \
80 $(if
$(CONFIG_IPV6
),--with
,--without
)-ipv6
83 top_builddir
=$(PKG_BUILD_DIR
)
85 ifeq ($(BUILD_VARIANT
),ssl
)
87 --with-ssl-include-dir
=$(STAGING_DIR
)/usr
/include/openssl
/. \
88 --with-ssl-lib-dir
=$(STAGING_DIR
)/usr
/lib
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
; \
101 $(call Build
/Compile
/Default
)
104 define Package
/alpine
/install
105 $(INSTALL_DIR
) $(1)/usr
/bin
106 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/alpine
$(1)/usr
/bin
/
109 Package
/alpine-nossl
/install = $(Package
/alpine
/install)
111 $(eval
$(call BuildPackage
,alpine
))
112 $(eval
$(call BuildPackage
,alpine-nossl
))