6 |
|
# |
7 |
|
|
8 |
|
PORTNAME?= alpine |
9 |
< |
PORTVERSION= 2.20 |
10 |
< |
PORTREVISION?= 2 |
9 |
> |
DISTVERSION= 2.21.9999 |
10 |
> |
PORTREVISION?= 0 |
11 |
|
CATEGORIES?= mail news ipv6 |
12 |
< |
MASTER_SITES= http://patches.freeiz.com/alpine/release/src/ |
13 |
< |
DIST_SUBDIR= alpine-${PORTVERSION} |
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 |
< |
OPTIONS_DEFINE= DOCS SSL THREADS MOUSE NLS ISPELL NOSPELL |
20 |
< |
OPTIONS_DEFAULT+= DOCS SSL THREADS MOUSE |
21 |
< |
SSL_DESC= Build with SSL (installs: security/openssl if pre 10.x) |
22 |
< |
MOUSE_DESC= Enable mouse support for xterm |
23 |
< |
ISPELL_DESC= Use ispell instead of aspell as default speller |
24 |
< |
NOSPELL_DESC= Use no default speller (overrides both) |
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 |
< |
.if !defined(PICO_ALPINE_SLAVE) |
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 |
|
|
29 |
– |
OPTIONS_DEFINE+= PICO IPV6 LDAP PASSFILE CONS25 MAILDIR SSL |
30 |
– |
OPTIONS_DEFAULT+= PICO SSL |
31 |
– |
PICO_DESC= Build and install pico, the default editor |
32 |
– |
PASSFILE_DESC= Support for a stored password file (DANGEROUS) |
48 |
|
CONS25_DESC= Add a patch to support color for default console |
49 |
< |
MAILDIR_DESC= Add a patch for maildir support |
50 |
< |
.endif |
49 |
> |
NTLM_DESC= Support for Windows NT Lan Manager authentication |
50 |
> |
PASSFILE_DESC= Support for a stored password file |
51 |
|
|
52 |
< |
USES= libtool ncurses tar:xz |
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 |
< |
MAKE_JOBS_UNSAFE= yes |
58 |
> |
# Option CONS25 |
59 |
> |
CONS25_EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c |
60 |
|
|
61 |
< |
GNU_CONFIGURE= yes |
61 |
> |
# Option IPV6 |
62 |
> |
IPV6_CONFIGURE_WITH= ipv6 |
63 |
|
|
64 |
< |
THREADS_CONFIGURE_WITH= pthread |
65 |
< |
MOUSE_CONFIGURE_ENABLE= mouse |
66 |
< |
NLS_CONFIGURE_ENABLE= nls |
67 |
< |
IPV6_CONFIGURE_WITH= ipv6 |
47 |
< |
SSL_USES= ssl |
64 |
> |
# Option LDAP |
65 |
> |
LDAP_USE= openldap=yes |
66 |
> |
LDAP_CONFIGURE_WITH= ldap |
67 |
> |
LDAP_CONFIGURE_ON= --with-ldap-dir=${LOCALBASE} |
68 |
|
|
69 |
< |
.if !defined(PICO_ALPINE_SLAVE) |
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 |
< |
PORTDOCSbase= LICENSE NOTICE README |
74 |
< |
PORTDOCSdoc= brochure.txt |
53 |
< |
PORTDOCShtml= tech-notes/background.html tech-notes/cmd-line.html \ |
54 |
< |
tech-notes/config-notes.html tech-notes/config.html \ |
55 |
< |
tech-notes/index.html tech-notes/installation.html \ |
56 |
< |
tech-notes/introduction.html tech-notes/low-level.html \ |
57 |
< |
tech-notes/tech-notes.txt |
58 |
< |
PORTDOCS= ${PORTDOCSbase} ${PORTDOCSdoc} ${PORTDOCShtml} |
73 |
> |
# Option MOUSE |
74 |
> |
MOUSE_CONFIGURE_ENABLE= mouse |
75 |
|
|
76 |
< |
CONFIGURE_ARGS+=--with-system-pinerc=${PREFIX}/etc/alpine.conf \ |
77 |
< |
--with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \ |
62 |
< |
--with-password-prog=/usr/bin/passwd \ |
63 |
< |
--with-system-mail-directory=/var/mail |
76 |
> |
# Option NLS |
77 |
> |
NLS_CONFIGURE_ENABLE= nls |
78 |
|
|
79 |
< |
.endif |
80 |
< |
CONFIGURE_ARGS+=--with-debug-level=2 \ |
81 |
< |
--enable-background-post --without-krb5 --without-tcl |
68 |
< |
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd9.1 |
79 |
> |
# Option NTLM |
80 |
> |
NTLM_CONFIGURE_WITH= ntlm |
81 |
> |
NTLM_LIB_DEPENDS= libntlm.so:security/libntlm |
82 |
|
|
83 |
< |
MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}" |
83 |
> |
# Option PASSFILE |
84 |
> |
PASSFILE_CONFIGURE_WITH= passfile |
85 |
> |
PASSFILE_CONFIGURE_ON= --with-passfile=.alpine.pwd |
86 |
|
|
87 |
< |
.include <bsd.mport.options.mk> |
87 |
> |
# Option THREADS |
88 |
> |
THREADS_CONFIGURE_WITH= pthread |
89 |
|
|
74 |
– |
.if ${PORT_OPTIONS:MSSL} |
75 |
– |
CONFIGURE_ARGS+= --with-ssl-dir=${OPENSSLDIR} \ |
76 |
– |
--with-ssl-include-dir=${OPENSSLINC} \ |
77 |
– |
--with-ssl-lib-dir=${OPENSSLLIB} \ |
78 |
– |
--with-ssl-certs-dir=${OPENSSLDIR}/certs |
79 |
– |
.else |
80 |
– |
CONFIGURE_ARGS+= --without-ssl |
81 |
– |
.endif |
82 |
– |
|
83 |
– |
.include <bsd.port.pre.mk> |
84 |
– |
|
85 |
– |
.if ! ${PORT_OPTIONS:MNOSPELL} |
86 |
– |
.if ! ${PORT_OPTIONS:MISPELL} |
87 |
– |
CONFIGURE_ARGS+=--with-interactive-spellcheck=${LOCALBASE}/bin/aspell |
88 |
– |
BUILD_DEPENDS+= aspell:textproc/aspell |
89 |
– |
RUN_DEPENDS+= aspell:textproc/aspell |
90 |
– |
.else |
91 |
– |
CONFIGURE_ARGS+= --with-interactive-spellcheck=${LOCALBASE}/bin/ispell |
92 |
– |
BUILD_DEPENDS+= ispell:textproc/aspell-ispell |
93 |
– |
RUN_DEPENDS+= ispell:textproc/aspell-ispell |
94 |
– |
.endif |
95 |
– |
.else |
96 |
– |
CONFIGURE_ARGS+=--without-simple-spellcheck --without-interactive-spellcheck |
97 |
– |
.endif |
98 |
– |
|
90 |
|
.if !defined(PICO_ALPINE_SLAVE) |
91 |
< |
.if ${PORT_OPTIONS:MPICO} |
92 |
< |
RUN_DEPENDS+= pico:editors/pico-alpine |
93 |
< |
.endif |
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 |
|
|
104 |
– |
.if ${PORT_OPTIONS:MLDAP} |
105 |
– |
USE_OPENLDAP= yes |
106 |
– |
CONFIGURE_ARGS+= --with-ldap-dir=${LOCALBASE} |
107 |
– |
.else |
108 |
– |
CONFIGURE_ARGS+= --without-ldap |
109 |
– |
.endif |
110 |
– |
|
111 |
– |
.if ${PORT_OPTIONS:MPASSFILE} |
112 |
– |
ALPINE_PASSFILE?= .alpine.pwd |
113 |
– |
CONFIGURE_ARGS+= --with-passfile=.alpine.pwd |
114 |
– |
.endif |
115 |
– |
|
116 |
– |
.if ${PORT_OPTIONS:MMAILDIR} |
117 |
– |
PATCH_SITES= http://patches.freeiz.com/alpine/patches/alpine-${PORTVERSION}/ |
118 |
– |
PATCHFILES+= maildir.patch.gz:-p1 |
119 |
– |
.endif |
120 |
– |
|
121 |
– |
.if ${PORT_OPTIONS:MCONS25} |
122 |
– |
EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c |
123 |
– |
.endif |
124 |
– |
|
100 |
|
post-patch: |
101 |
|
@${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed |
102 |
|
@${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \ |
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/pico.1 doc/pilot.1 ##" \ |
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/alpine.1 \ |
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 \ |
129 |
|
|
130 |
|
post-install: |
131 |
|
${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample |
157 |
– |
.if ${PORT_OPTIONS:MDOCS} |
132 |
|
${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes |
133 |
|
.for f in ${PORTDOCSbase} |
134 |
< |
${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} |
134 |
> |
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} |
135 |
|
.endfor |
136 |
|
.for f in ${PORTDOCSdoc} |
137 |
< |
${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR} |
137 |
> |
${INSTALL_DATA} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR} |
138 |
|
.endfor |
139 |
|
.for f in ${PORTDOCShtml} |
140 |
< |
${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes |
140 |
> |
${INSTALL_DATA} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes |
141 |
|
.endfor |
142 |
< |
.endif |
142 |
> |
.endif # !defined(PICO_ALPINE_SLAVE) |
143 |
|
|
144 |
< |
# PKG_PREFIX=${STAGEDIR}${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
171 |
< |
# @${CAT} ${PKGMESSAGE} |
172 |
< |
|
173 |
< |
.endif # !defined(PICO_ALPINE_SLAVE) |
174 |
< |
|
175 |
< |
.include <bsd.port.post.mk> |
144 |
> |
.include <bsd.port.mk> |