Lines 2-8
Link Here
|
2 |
|
2 |
|
3 |
PORTNAME?= alpine |
3 |
PORTNAME?= alpine |
4 |
PORTVERSION= 2.21 |
4 |
PORTVERSION= 2.21 |
5 |
PORTREVISION?= 0 |
5 |
PORTREVISION?= 1 |
6 |
CATEGORIES?= mail news ipv6 |
6 |
CATEGORIES?= mail news ipv6 |
7 |
MASTER_SITES= http://alpine.freeiz.com/alpine/release/src/ |
7 |
MASTER_SITES= http://alpine.freeiz.com/alpine/release/src/ |
8 |
DIST_SUBDIR= alpine-${PORTVERSION} |
8 |
DIST_SUBDIR= alpine-${PORTVERSION} |
Lines 12-125
Link Here
|
12 |
|
12 |
|
13 |
LICENSE= APACHE20 |
13 |
LICENSE= APACHE20 |
14 |
|
14 |
|
15 |
OPTIONS_DEFINE= DOCS SSL THREADS MOUSE NLS ISPELL NOSPELL |
15 |
USES+= ssl libtool ncurses tar:xz gettext-runtime |
16 |
OPTIONS_DEFAULT+= SSL THREADS MOUSE |
16 |
GNU_CONFIGURE= yes |
17 |
SSL_DESC= Build with SSL (installs: security/openssl if pre 10.x) |
17 |
MAKE_JOBS_UNSAFE= yes |
18 |
MOUSE_DESC= Enable mouse support for xterm |
18 |
CONFIGURE_ARGS+= --with-debug-level=2 \ |
19 |
ISPELL_DESC= Use ispell instead of aspell as default speller |
19 |
--enable-background-post \ |
20 |
NOSPELL_DESC= Use no default speller (overrides both) |
20 |
--without-krb5 \ |
|
|
21 |
--without-tcl \ |
22 |
--with-system-pinerc=${PREFIX}/etc/alpine.conf \ |
23 |
--with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \ |
24 |
--with-password-prog=/usr/bin/passwd \ |
25 |
--with-system-mail-directory=/var/mail \ |
26 |
--with-ssl-dir=${OPENSSLDIR} \ |
27 |
--with-ssl-include-dir=${OPENSSLINC} \ |
28 |
--with-ssl-lib-dir=${OPENSSLLIB} \ |
29 |
--with-ssl-certs-dir=${OPENSSLDIR}/certs |
30 |
MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}" |
21 |
|
31 |
|
22 |
.if !defined(PICO_ALPINE_SLAVE) |
32 |
.if !defined(PICO_ALPINE_SLAVE) |
|
|
33 |
OPTIONS_DEFINE= ASPELL CONS25 DOCS IPV6 LDAP MAILDIR MOUSE NLS PASSFILE THREADS |
34 |
OPTIONS_DEFAULT+= ASPELL MOUSE THREADS |
23 |
|
35 |
|
24 |
OPTIONS_DEFINE+= PICO IPV6 LDAP PASSFILE CONS25 MAILDIR SSL |
|
|
25 |
OPTIONS_DEFAULT+= PICO SSL |
26 |
PICO_DESC= Build and install pico, the default editor |
27 |
PASSFILE_DESC= Support for a stored password file (DANGEROUS) |
28 |
CONS25_DESC= Add a patch to support color for default console |
36 |
CONS25_DESC= Add a patch to support color for default console |
29 |
MAILDIR_DESC= Add a patch for maildir support |
37 |
MAILDIR_DESC= Add a patch for maildir support |
|
|
38 |
PASSFILE_DESC= Support for a stored password file |
30 |
.endif |
39 |
.endif |
31 |
|
40 |
|
32 |
USES+= libtool ncurses tar:xz gettext-runtime |
41 |
# Option ASPELL |
|
|
42 |
ASPELL_CONFIGURE_ON= --with-interactive-spellcheck=${LOCALBASE}/bin/aspell |
43 |
ASPELL_CONFIGURE_OFF= --with-simple-spellcheck |
44 |
ASPELL_BUILD_DEPENDS= aspell:textproc/aspell |
45 |
ASPELL_RUN_DEPENDS= aspell:textproc/aspell |
33 |
|
46 |
|
34 |
MAKE_JOBS_UNSAFE= yes |
47 |
# Option CONS25 |
|
|
48 |
CONS25_EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c |
35 |
|
49 |
|
36 |
GNU_CONFIGURE= yes |
50 |
# Option IPV6 |
|
|
51 |
IPV6_CONFIGURE_WITH= ipv6 |
37 |
|
52 |
|
38 |
THREADS_CONFIGURE_WITH= pthread |
53 |
# Option LDAP |
39 |
MOUSE_CONFIGURE_ENABLE= mouse |
54 |
LDAP_USE= openldap=yes |
40 |
NLS_CONFIGURE_ENABLE= nls |
55 |
LDAP_CONFIGURE_WITH= ldap |
41 |
IPV6_CONFIGURE_WITH= ipv6 |
56 |
LDAP_CONFIGURE_ON= --with-ldap-dir=${LOCALBASE} |
42 |
SSL_USES= ssl |
|
|
43 |
|
57 |
|
44 |
.if !defined(PICO_ALPINE_SLAVE) |
58 |
# Option MAILDIR |
|
|
59 |
MAILDIR_PATCH_SITES= http://alpine.freeiz.com/alpine/patches/alpine-${PORTVERSION}/ |
60 |
MAILDIR_PATCHFILES+= maildir.patch.gz:-p1 |
45 |
|
61 |
|
46 |
PORTDOCSbase= LICENSE NOTICE README |
62 |
# Option MOUSE |
47 |
PORTDOCSdoc= brochure.txt |
63 |
MOUSE_CONFIGURE_ENABLE= mouse |
48 |
PORTDOCShtml= tech-notes/background.html tech-notes/cmd-line.html \ |
|
|
49 |
tech-notes/config-notes.html tech-notes/config.html \ |
50 |
tech-notes/index.html tech-notes/installation.html \ |
51 |
tech-notes/introduction.html tech-notes/low-level.html \ |
52 |
tech-notes/tech-notes.txt |
53 |
PORTDOCS= ${PORTDOCSbase} ${PORTDOCSdoc} ${PORTDOCShtml} |
54 |
|
64 |
|
55 |
CONFIGURE_ARGS+=--with-system-pinerc=${PREFIX}/etc/alpine.conf \ |
65 |
# Option NLS |
56 |
--with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \ |
66 |
NLS_CONFIGURE_ENABLE= nls |
57 |
--with-password-prog=/usr/bin/passwd \ |
|
|
58 |
--with-system-mail-directory=/var/mail |
59 |
|
67 |
|
60 |
.endif |
68 |
# Option PASSFILE |
61 |
CONFIGURE_ARGS+=--with-debug-level=2 \ |
69 |
PASSFILE_CONFIGURE_WITH= passfile |
62 |
--enable-background-post --without-krb5 --without-tcl |
70 |
PASSFILE_CONFIGURE_ON= --with-passfile=.alpine.pwd |
63 |
|
71 |
|
64 |
MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}" |
72 |
# Option THREADS |
|
|
73 |
THREADS_CONFIGURE_WITH= pthread |
65 |
|
74 |
|
66 |
.include <bsd.port.options.mk> |
|
|
67 |
|
68 |
.if ${PORT_OPTIONS:MSSL} |
69 |
CONFIGURE_ARGS+= --with-ssl-dir=${OPENSSLDIR} \ |
70 |
--with-ssl-include-dir=${OPENSSLINC} \ |
71 |
--with-ssl-lib-dir=${OPENSSLLIB} \ |
72 |
--with-ssl-certs-dir=${OPENSSLDIR}/certs |
73 |
.else |
74 |
CONFIGURE_ARGS+= --without-ssl |
75 |
.endif |
76 |
|
77 |
.include <bsd.port.pre.mk> |
78 |
|
79 |
.if ${PORT_OPTIONS:MSSL} && ${SSL_DEFAULT:Mopenssl-devel} |
80 |
BROKEN= Does not build with openssl-devel |
81 |
.endif |
82 |
|
83 |
.if ! ${PORT_OPTIONS:MNOSPELL} |
84 |
.if ! ${PORT_OPTIONS:MISPELL} |
85 |
CONFIGURE_ARGS+=--with-interactive-spellcheck=${LOCALBASE}/bin/aspell |
86 |
BUILD_DEPENDS+= aspell:textproc/aspell |
87 |
RUN_DEPENDS+= aspell:textproc/aspell |
88 |
.else |
89 |
CONFIGURE_ARGS+= --with-interactive-spellcheck=${LOCALBASE}/bin/ispell |
90 |
BUILD_DEPENDS+= ispell:textproc/aspell-ispell |
91 |
RUN_DEPENDS+= ispell:textproc/aspell-ispell |
92 |
.endif |
93 |
.else |
94 |
CONFIGURE_ARGS+=--without-simple-spellcheck --without-interactive-spellcheck |
95 |
.endif |
96 |
|
97 |
.if !defined(PICO_ALPINE_SLAVE) |
75 |
.if !defined(PICO_ALPINE_SLAVE) |
98 |
.if ${PORT_OPTIONS:MPICO} |
|
|
99 |
RUN_DEPENDS+= pico:editors/pico-alpine |
100 |
.endif |
101 |
|
102 |
.if ${PORT_OPTIONS:MLDAP} |
103 |
USE_OPENLDAP= yes |
104 |
CONFIGURE_ARGS+= --with-ldap-dir=${LOCALBASE} |
105 |
.else |
106 |
CONFIGURE_ARGS+= --without-ldap |
107 |
.endif |
108 |
|
109 |
.if ${PORT_OPTIONS:MPASSFILE} |
110 |
ALPINE_PASSFILE?= .alpine.pwd |
111 |
CONFIGURE_ARGS+= --with-passfile=.alpine.pwd |
112 |
.endif |
113 |
|
114 |
.if ${PORT_OPTIONS:MMAILDIR} |
115 |
PATCH_SITES= http://alpine.freeiz.com/alpine/patches/alpine-${PORTVERSION}/ |
116 |
PATCHFILES+= maildir.patch.gz:-p1 |
117 |
.endif |
118 |
|
119 |
.if ${PORT_OPTIONS:MCONS25} |
120 |
EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c |
121 |
.endif |
122 |
|
123 |
post-patch: |
76 |
post-patch: |
124 |
@${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed |
77 |
@${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed |
125 |
@${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \ |
78 |
@${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \ |
Lines 150-158
Link Here
|
150 |
$$i.presed > $$i ; \ |
103 |
$$i.presed > $$i ; \ |
151 |
done |
104 |
done |
152 |
|
105 |
|
|
|
106 |
PORTDOCSbase= LICENSE NOTICE README |
107 |
PORTDOCSdoc= brochure.txt |
108 |
PORTDOCShtml= tech-notes/background.html tech-notes/cmd-line.html \ |
109 |
tech-notes/config-notes.html tech-notes/config.html \ |
110 |
tech-notes/index.html tech-notes/installation.html \ |
111 |
tech-notes/introduction.html tech-notes/low-level.html \ |
112 |
tech-notes/tech-notes.txt |
113 |
PORTDOCS= ${PORTDOCSbase} ${PORTDOCSdoc} ${PORTDOCShtml} |
114 |
|
153 |
post-install: |
115 |
post-install: |
154 |
${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample |
116 |
${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample |
155 |
.if ${PORT_OPTIONS:MDOCS} |
117 |
|
|
|
118 |
post-install-DOCS-on: |
156 |
${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes |
119 |
${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes |
157 |
.for f in ${PORTDOCSbase} |
120 |
.for f in ${PORTDOCSbase} |
158 |
${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} |
121 |
${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} |
Lines 163-173
Link Here
|
163 |
.for f in ${PORTDOCShtml} |
126 |
.for f in ${PORTDOCShtml} |
164 |
${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes |
127 |
${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes |
165 |
.endfor |
128 |
.endfor |
166 |
.endif |
129 |
.endif # !defined(PICO_ALPINE_SLAVE) |
167 |
|
130 |
|
168 |
# PKG_PREFIX=${STAGEDIR}${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
131 |
.include <bsd.port.mk> |
169 |
# @${CAT} ${PKGMESSAGE} |
|
|
170 |
|
171 |
.endif # !defined(PICO_ALPINE_SLAVE) |
172 |
|
173 |
.include <bsd.port.post.mk> |