acfc74b734126c55478356c2cb0ec524156a5a54
[openwrt/svn-archive/packages.git] / mail / alpine / Makefile
1 #
2 # Copyright (C) 2013 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.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=http://patches.freeiz.com/alpine/release/src/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
16 PKG_MD5SUM:=a3bba218787691080d706b36215eec06
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/alpine
23 SECTION:=mail
24 CATEGORY:=Mail
25 DEPENDS:=+libopenssl +libncurses +libpthread +libpam
26 TITLE:=Alternatively Licensed Program for Internet News and Email
27 URL:=http://www.washington.edu/alpine
28 endef
29
30 define Package/alpine/description
31 Alpine (Alternatively Licenced Program for Internet News and Email) is a
32 free software email client developed at the University of Washington.
33 It is suitable for both the inexperienced email user as well as for
34 the most demanding power user.
35 endef
36
37 CONFIGURE_ARGS += \
38 --with-ssl-include-dir=$(STAGING_DIR)/usr/include/openssl/. \
39 --with-ssl-lib-dir=$(STAGING_DIR)/usr/lib \
40 --without-tcl \
41 --without-ldap \
42 --without-krb5 \
43 --with-system-pinerc=/etc/pine.conf \
44 --with-system-fixed-pinerc=/etc/pine.conf.fixed \
45 --disable-debug \
46 --disable-mouse \
47 --with-c-client-target=slx \
48
49 ifeq ($(CONFIG_IPV6),y)
50 DISABLE_IPV6:=
51 else
52 DISABLE_IPV6:=--without-ipv6
53 endif
54
55 define Build/Compile
56 ( cd $(PKG_BUILD_DIR)/pith ; \
57 $(HOSTCC) help_h_gen.c -c -o help_h_gen.o ; \
58 $(HOSTCC) help_h_gen.o -o help_h_gen ; \
59 $(HOSTCC) help_c_gen.c -c -o help_c_gen.o ; \
60 $(HOSTCC) help_c_gen.o -o help_c_gen ; \
61 )
62 $(call Build/Compile/Default)
63 endef
64
65 define Package/alpine/install
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alpine $(1)/usr/bin/
68 endef
69
70 $(eval $(call BuildPackage,alpine))