ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/alpine/Makefile
Revision: 24838
Committed: Thu Jan 31 21:02:06 2019 UTC (5 years, 2 months ago) by laffer1
File size: 4923 byte(s)
Log Message:
update to 2.21

File Contents

# Content
1 # New ports collection makefile for: alpine
2 # Date created: December 21, 2007
3 # Whom: Lucas Holt <luke@midnightbsd.org>
4 #
5 # $MidnightBSD$
6 #
7
8 PORTNAME?= alpine
9 DISTVERSION= 2.21.9999
10 PORTREVISION?= 0
11 CATEGORIES?= mail news ipv6
12 MASTER_SITES= http://repo.or.cz/alpine.git/snapshot/${GIT_COMMIT}${EXTRACT_SUFX}?dummy=/
13
14 MAINTAINER= ports@MidnightBSD.org
15 COMMENT= Mail and news client descended from Pine
16
17 LICENSE= apache2
18
19 USES+= ssl libtool ncurses gettext-runtime
20 GNU_CONFIGURE= yes
21 MAKE_JOBS_UNSAFE= yes
22 CONFIGURE_ARGS+= --with-debug-level=2 \
23 --enable-background-post \
24 --without-krb5 \
25 --without-tcl \
26 --with-system-pinerc=${PREFIX}/etc/alpine.conf \
27 --with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \
28 --with-password-prog=/usr/bin/passwd \
29 --with-system-mail-directory=/var/mail \
30 --with-ssl-dir=${OPENSSLDIR} \
31 --with-ssl-include-dir=${OPENSSLINC} \
32 --with-ssl-lib-dir=${OPENSSLLIB} \
33 --with-ssl-certs-dir=${OPENSSLDIR}/certs
34 CONFIGURE_TARGET= ${ARCH}-portbld-freebsd10.4
35 MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}"
36 # When you update please double check that the commit corresponds to
37 # the actual version you've set in PORTVERSION.
38 GIT_COMMIT= d3e6f3932f2af9deca8eed09e30a55e9bd524362
39 GIT_COMMIT_SHORT= d3e6f39
40 WRKSRC= ${WRKDIR}/alpine-${GIT_COMMIT_SHORT}
41
42 OPTIONS_DEFINE= ASPELL CONS25 DOCS IPV6 LDAP MAILDIR MOUSE NLS NTLM PASSFILE THREADS
43 OPTIONS_DEFAULT= ASPELL MOUSE THREADS
44 .if defined(PICO_ALPINE_SLAVE)
45 OPTIONS_EXCLUDE= CONS25 IPV6 LDAP PASSFILE
46 .endif
47
48 CONS25_DESC= Add a patch to support color for default console
49 NTLM_DESC= Support for Windows NT Lan Manager authentication
50 PASSFILE_DESC= Support for a stored password file
51
52 # Option ASPELL
53 ASPELL_CONFIGURE_ON= --with-interactive-spellcheck=${LOCALBASE}/bin/aspell
54 ASPELL_CONFIGURE_OFF= --with-simple-spellcheck
55 ASPELL_BUILD_DEPENDS= aspell:textproc/aspell
56 ASPELL_RUN_DEPENDS= aspell:textproc/aspell
57
58 # Option CONS25
59 CONS25_EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c
60
61 # Option IPV6
62 IPV6_CONFIGURE_WITH= ipv6
63
64 # Option LDAP
65 LDAP_USE= openldap=yes
66 LDAP_CONFIGURE_WITH= ldap
67 LDAP_CONFIGURE_ON= --with-ldap-dir=${LOCALBASE}
68
69 # Option MAILDIR
70 MAILDIR_PATCH_SITES= http://alpine.x10host.com/alpine/patches/alpine-2.21/
71 MAILDIR_PATCHFILES+= maildir.patch.gz:-p1
72
73 # Option MOUSE
74 MOUSE_CONFIGURE_ENABLE= mouse
75
76 # Option NLS
77 NLS_CONFIGURE_ENABLE= nls
78
79 # Option NTLM
80 NTLM_CONFIGURE_WITH= ntlm
81 NTLM_LIB_DEPENDS= libntlm.so:security/libntlm
82
83 # Option PASSFILE
84 PASSFILE_CONFIGURE_WITH= passfile
85 PASSFILE_CONFIGURE_ON= --with-passfile=.alpine.pwd
86
87 # Option THREADS
88 THREADS_CONFIGURE_WITH= pthread
89
90 .if !defined(PICO_ALPINE_SLAVE)
91 PORTDOCSbase= NOTICE README
92 PORTDOCSdoc= brochure.txt
93 PORTDOCShtml= tech-notes/background.html tech-notes/cmd-line.html \
94 tech-notes/config-notes.html tech-notes/config.html \
95 tech-notes/index.html tech-notes/installation.html \
96 tech-notes/introduction.html tech-notes/low-level.html \
97 tech-notes/tech-notes.txt
98 PORTDOCS= ${PORTDOCSbase} ${PORTDOCSdoc} ${PORTDOCShtml}
99
100 post-patch:
101 @${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed
102 @${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \
103 ${WRKSRC}/imap/Makefile.presed > ${WRKSRC}/imap/Makefile
104 @${CP} ${WRKSRC}/pico/Makefile.in ${WRKSRC}/pico/Makefile.in.presed
105 @${SED} -e "s#^bin_PROGRAMS = pico.*#bin_PROGRAMS =#" \
106 -e "s#\$$(pico_SOURCES) \$$(pilot_SOURCES)##" \
107 ${WRKSRC}/pico/Makefile.in.presed > ${WRKSRC}/pico/Makefile.in
108 @${CP} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.presed
109 @${SED} -e "s#doc/man1/pico.1 doc/man1/pilot.1 ##" \
110 ${WRKSRC}/Makefile.in.presed > ${WRKSRC}/Makefile.in
111 @${CP} ${WRKSRC}/imap/src/osdep/unix/Makefile \
112 ${WRKSRC}/imap/src/osdep/unix/Makefile.presed
113 @${SED} -e "s#^LOCKPGM=.*#LOCKPGM= ${PREFIX}/libexec/mlock#" \
114 ${WRKSRC}/imap/src/osdep/unix/Makefile.presed \
115 > ${WRKSRC}/imap/src/osdep/unix/Makefile
116 @for i in ${WRKSRC}/README ${WRKSRC}/doc/man1/alpine.1 \
117 ${WRKSRC}/doc/*.txt \
118 ${WRKSRC}/doc/tech-notes/*.txt \
119 ${WRKSRC}/doc/tech-notes/*.html \
120 ${WRKSRC}/pith/pine.hlp ; do \
121 ${CP} $$i $$i.presed ; \
122 ${SED} -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \
123 -e "s:/usr/local/pine.conf:${PREFIX}/etc/pine.conf:g" \
124 -e "s:pine\.conf:alpine.conf:g" \
125 -e "s:/usr/local:${PREFIX}:g" \
126 -e "s:@@PREFIX@@:${PREFIX}:g" \
127 $$i.presed > $$i ; \
128 done
129
130 post-install:
131 ${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample
132 ${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes
133 .for f in ${PORTDOCSbase}
134 ${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
135 .endfor
136 .for f in ${PORTDOCSdoc}
137 ${INSTALL_DATA} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}
138 .endfor
139 .for f in ${PORTDOCShtml}
140 ${INSTALL_DATA} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes
141 .endfor
142 .endif # !defined(PICO_ALPINE_SLAVE)
143
144 .include <bsd.port.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H