View | Details | Raw Unified | Return to bug 219895 | Differences between
and this patch

Collapse All | Expand All

(-)mail/alpine/Makefile (-100 / +59 lines)
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
32
OPTIONS_DEFINE=		ASPELL DOCS MOUSE NLS THREADS
33
OPTIONS_DEFAULT=	ASPELL MOUSE THREADS
22
.if !defined(PICO_ALPINE_SLAVE)
34
.if !defined(PICO_ALPINE_SLAVE)
35
OPTIONS_DEFINE+=	CONS25 IPV6 LDAP MAILDIR PASSFILE THREADS
23
36
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
37
CONS25_DESC=	Add a patch to support color for default console
29
MAILDIR_DESC=	Add a patch for maildir support
38
MAILDIR_DESC=	Add a patch for maildir support
39
PASSFILE_DESC=	Support for a stored password file
30
.endif
40
.endif
31
41
32
USES+=		libtool ncurses tar:xz gettext-runtime
42
# Option ASPELL
43
ASPELL_CONFIGURE_ON=		--with-interactive-spellcheck=${LOCALBASE}/bin/aspell
44
ASPELL_CONFIGURE_OFF=		--with-simple-spellcheck
45
ASPELL_BUILD_DEPENDS=		aspell:textproc/aspell
46
ASPELL_RUN_DEPENDS=		aspell:textproc/aspell
33
47
34
MAKE_JOBS_UNSAFE=	yes
48
# Option CONS25
49
CONS25_EXTRA_PATCHES=		${FILESDIR}/cons25-alpine_keymenu.c
35
50
36
GNU_CONFIGURE=	yes
51
# Option IPV6
52
IPV6_CONFIGURE_WITH=		ipv6
37
53
38
THREADS_CONFIGURE_WITH=	pthread
54
# Option LDAP
39
MOUSE_CONFIGURE_ENABLE=	mouse
55
LDAP_USE=			openldap=yes
40
NLS_CONFIGURE_ENABLE=	nls
56
LDAP_CONFIGURE_WITH=		ldap
41
IPV6_CONFIGURE_WITH=	ipv6
57
LDAP_CONFIGURE_ON=		--with-ldap-dir=${LOCALBASE}
42
SSL_USES=		ssl
43
58
44
.if !defined(PICO_ALPINE_SLAVE)
59
# Option MAILDIR
60
MAILDIR_PATCH_SITES=		http://alpine.freeiz.com/alpine/patches/alpine-${PORTVERSION}/
61
MAILDIR_PATCHFILES+=		maildir.patch.gz:-p1
45
62
46
PORTDOCSbase=	LICENSE NOTICE README
63
# Option MOUSE
47
PORTDOCSdoc=	brochure.txt
64
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
65
55
CONFIGURE_ARGS+=--with-system-pinerc=${PREFIX}/etc/alpine.conf \
66
# Option NLS
56
		--with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \
67
NLS_CONFIGURE_ENABLE=		nls
57
		--with-password-prog=/usr/bin/passwd \
58
		--with-system-mail-directory=/var/mail
59
68
60
.endif
69
# Option PASSFILE
61
CONFIGURE_ARGS+=--with-debug-level=2 \
70
PASSFILE_CONFIGURE_WITH=	passfile
62
		--enable-background-post --without-krb5 --without-tcl
71
PASSFILE_CONFIGURE_ON=		--with-passfile=.alpine.pwd
63
72
64
MAKE_ARGS+=	CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}"
73
# Option THREADS
74
THREADS_CONFIGURE_WITH=		pthread
65
75
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)
76
.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:
77
post-patch:
124
	@${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed
78
	@${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed
125
	@${SED}	-e "s#^\(all:.*\) bundled\$$#\1#" \
79
	@${SED}	-e "s#^\(all:.*\) bundled\$$#\1#" \
Lines 150-158 Link Here
150
		    $$i.presed > $$i ; \
104
		    $$i.presed > $$i ; \
151
	done
105
	done
152
106
107
PORTDOCSbase=		LICENSE NOTICE README
108
PORTDOCSdoc=		brochure.txt
109
PORTDOCShtml=		tech-notes/background.html tech-notes/cmd-line.html \
110
			tech-notes/config-notes.html tech-notes/config.html \
111
			tech-notes/index.html tech-notes/installation.html \
112
			tech-notes/introduction.html tech-notes/low-level.html \
113
			tech-notes/tech-notes.txt
114
PORTDOCS=		${PORTDOCSbase} ${PORTDOCSdoc} ${PORTDOCShtml}
115
153
post-install:
116
post-install:
154
	${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample
117
	${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample
155
.if ${PORT_OPTIONS:MDOCS}
118
119
post-install-DOCS-on:
156
	${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes
120
	${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes
157
.for f in ${PORTDOCSbase}
121
.for f in ${PORTDOCSbase}
158
	${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
122
	${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
Lines 163-173 Link Here
163
.for f in ${PORTDOCShtml}
127
.for f in ${PORTDOCShtml}
164
	${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes
128
	${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes
165
.endfor
129
.endfor
166
.endif
130
.endif # !defined(PICO_ALPINE_SLAVE)
167
131
168
#	PKG_PREFIX=${STAGEDIR}${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
132
.include <bsd.port.mk>
169
#	@${CAT} ${PKGMESSAGE}
170
171
.endif	# !defined(PICO_ALPINE_SLAVE)
172
173
.include <bsd.port.post.mk>
(-)mail/alpine/pkg-descr (-1 / +1 lines)
Lines 18-21 Link Here
18
Alpine supports MIME (Multipurpose Internet Mail Extensions), an Internet
18
Alpine supports MIME (Multipurpose Internet Mail Extensions), an Internet
19
Standard for representing multipart and multimedia data in email.
19
Standard for representing multipart and multimedia data in email.
20
20
21
WWW: http://patches.freeiz.com/alpine/
21
WWW: http://alpine.freeiz.com/alpine/

Return to bug 219895