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_URL
:=http
://patches.freeiz.com
/alpine
/release
/src
/
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_MD5SUM
:=043b67666af73b26f9627ad97e2aaf92
18 PKG_MAINTAINER
:=Antti Seppälä
<a.seppala@gmail.com
>
19 PKG_LICENSE
:=Apache-2.0
20 PKG_LICENSE_FILES
:=LICENSE
24 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/nls.mk
29 define Package
/alpine
/Default
32 DEPENDS
:=+libopenssl
+libncurses
+libpthread
+libpam
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
33 TITLE
:=Alternatively Licensed Program for Internet News and Email
34 URL
:=http
://www.washington.edu
/alpine
37 define Package
/alpine
/Default
/description
38 Alpine
(Alternatively Licensed Program for Internet News and Email
) is a
39 free software email client developed at the University of Washington.
40 It is suitable for both the inexperienced email user
as well
as for
41 the most demanding power user.
45 $(call Package
/alpine
/Default
)
46 TITLE
+= (with OpenSSL support
)
51 define Package
/alpine
/description
52 $(call Package
/alpine
/Default
/description
)
53 This package is built with OpenSSL support.
56 define Package
/alpine-nossl
57 $(call Package
/alpine
/Default
)
58 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 \
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
90 ifeq ($(BUILD_VARIANT
),nossl
)
95 ifeq ($(CONFIG_BUILD_NLS
),y
)
99 ifeq ($(CONFIG_IPV6
),y
)
102 DISABLE_IPV6
:=--without-ipv6
106 ( cd
$(PKG_BUILD_DIR
)/pith
; \
107 $(HOSTCC
) help_h_gen.c
-c
-o help_h_gen.o
; \
108 $(HOSTCC
) help_h_gen.o
-o help_h_gen
; \
109 $(HOSTCC
) help_c_gen.c
-c
-o help_c_gen.o
; \
110 $(HOSTCC
) help_c_gen.o
-o help_c_gen
; \
112 $(call Build
/Compile
/Default
)
115 define Package
/alpine
/install
116 $(INSTALL_DIR
) $(1)/usr
/bin
117 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/$(PKG_NAME
)
120 Package
/alpine-nossl
/install = $(Package
/alpine
/install)
122 $(eval
$(call BuildPackage
,alpine
))
123 $(eval
$(call BuildPackage
,alpine-nossl
))