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
:=http
://alpine.x10host.com
/alpine
/release
/src
16 PKG_HASH
:=793a61215c005b5fcffb48f642f125915276b7ec7827508dd9e83d4c4da91f7b
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
)
61 define Package
/alpine-nossl
/description
62 $(call Package
/alpine
/Default
/description
)
63 This package is built without OpenSSL support.
67 --with-libiconv-prefix
=$(ICONV_PREFIX
) \
68 --with-libintl-prefix
=$(INTL_PREFIX
) \
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 \
78 --with-c-client-target
=slx \
79 $(if
$(CONFIG_IPV6
),--with
,--without
)-ipv6
82 top_builddir
=$(PKG_BUILD_DIR
)
84 ifeq ($(BUILD_VARIANT
),ssl
)
86 --with-ssl-include-dir
=$(STAGING_DIR
)/usr
/include/openssl
/. \
87 --with-ssl-lib-dir
=$(STAGING_DIR
)/usr
/lib
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
; \
100 $(call Build
/Compile
/Default
)
103 define Package
/alpine
/install
104 $(INSTALL_DIR
) $(1)/usr
/bin
105 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/alpine
$(1)/usr
/bin
/
108 Package
/alpine-nossl
/install = $(Package
/alpine
/install)
110 $(eval
$(call BuildPackage
,alpine
))
111 $(eval
$(call BuildPackage
,alpine-nossl
))