ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/alpine/Makefile
(Generate patch)

Comparing trunk/mail/alpine/Makefile (file contents):
Revision 6091 by laffer1, Tue Aug 26 19:20:05 2008 UTC vs.
Revision 24511 by laffer1, Tue Oct 16 02:38:01 2018 UTC

# Line 2 | Line 2
2   # Date created:                         December 21, 2007
3   # Whom:                                 Lucas Holt <luke@midnightbsd.org>
4   #
5 < # $MidnightBSD: mports/mail/alpine/Makefile,v 1.3 2008/06/23 01:58:57 laffer1 Exp $
5 > # $MidnightBSD$
6   #
7  
8   PORTNAME?=      alpine
9 < PORTVERSION=    1.10
10 < PORTREVISION=   1
9 > PORTVERSION=    2.20
10 > PORTREVISION?=  2
11   CATEGORIES?=    mail news ipv6
12 < MASTER_SITES=   ftp://ftp.cac.washington.edu/alpine/ \
13 <                http://dougbarton.us/Downloads/alpine-${PORTVERSION}/
12 > MASTER_SITES=   http://patches.freeiz.com/alpine/release/src/
13   DIST_SUBDIR=    alpine-${PORTVERSION}
14  
15   MAINTAINER=     ports@MidnightBSD.org
16   COMMENT=        Mail and news client descended from Pine
17 +
18   LICENSE=        apache2
19  
20 < OPTIONS+=       THREADS "Support for pthreads" on \
21 <                MOUSE "Enable mouse support for xterm" on \
22 <                NLS "National Language Support" off \
23 <                ISPELL "Use ispell instead of aspell as default speller" off \
24 <                NOSPELL "Use no default speller (overrides both)" off
20 > OPTIONS_DEFINE=         DOCS SSL THREADS MOUSE NLS ISPELL NOSPELL
21 > OPTIONS_DEFAULT+=       DOCS SSL THREADS MOUSE
22 > SSL_DESC=       Build with SSL (installs: security/openssl if pre 10.x)
23 > MOUSE_DESC=     Enable mouse support for xterm
24 > ISPELL_DESC=    Use ispell instead of aspell as default speller
25 > NOSPELL_DESC=   Use no default speller (overrides both)
26 >
27   .if !defined(PICO_ALPINE_SLAVE)
28 < OPTIONS+=       PICO "Build and install pico, the default editor" on \
29 <                IPV6 "Add support for IPv6" on \
30 <                LDAP "Add support for LDAP" off \
31 <                PASSFILE "Support for a stored password file (DANGEROUS)" off \
32 <                CONS25 "Add a patch to support color for default console" off \
33 <                QUOTA "Add a patch for disk quota checking on IMAP" off \
34 <                MAILDIR "Add a patch for maildir support" off
28 >
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)
33 > CONS25_DESC=    Add a patch to support color for default console
34 > MAILDIR_DESC=   Add a patch for maildir support
35   .endif
36  
37 < USE_BZIP2=      yes
37 > USES=           libtool ncurses tar:xz
38  
39 + MAKE_JOBS_UNSAFE=       yes
40 +
41   GNU_CONFIGURE=  yes
42  
43 + THREADS_CONFIGURE_WITH= pthread
44 + MOUSE_CONFIGURE_ENABLE= mouse
45 + NLS_CONFIGURE_ENABLE=   nls
46 + IPV6_CONFIGURE_WITH=    ipv6
47 + SSL_USES=               ssl
48 +
49   .if !defined(PICO_ALPINE_SLAVE)
50 +
51 + PORTDOCSbase=   LICENSE NOTICE README
52 + 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}
59 +
60   CONFIGURE_ARGS+=--with-system-pinerc=${PREFIX}/etc/alpine.conf \
61                  --with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \
62                  --with-password-prog=/usr/bin/passwd \
63 <                --with-system-mail-directory=/var/mail \
64 <                --enable-background-post --without-krb5 --without-tcl
63 >                --with-system-mail-directory=/var/mail
64 >
65   .endif
66 < CONFIGURE_ARGS+=--with-debug-level=2
66 > CONFIGURE_ARGS+=--with-debug-level=2 \
67 >                --enable-background-post --without-krb5 --without-tcl
68 > CONFIGURE_TARGET=       ${ARCH}-portbld-freebsd9.1
69  
70 < CONFLICTS=      pico-4* pine4-4*
70 > MAKE_ARGS+=     CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}"
71  
72 < USE_OPENSSL=    yes
72 > .include <bsd.mport.options.mk>
73  
74 < .include <bsd.port.pre.mk>
75 <
76 < .if !defined(WITHOUT_THREADS)
77 < CONFIGURE_ARGS+=        --with-pthread
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-pthread
80 > CONFIGURE_ARGS+=        --without-ssl
81   .endif
82  
83 < .if !defined(WITHOUT_MOUSE)
61 < CONFIGURE_ARGS+=        --enable-mouse
62 < .else
63 < CONFIGURE_ARGS+=        --disable-mouse
64 < .endif
83 > .include <bsd.port.pre.mk>
84  
85 < .if defined(WITH_NLS)
86 < CONFIGURE_ARGS+=        --with-nls
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+=        --without-nls
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
71
72 .if !defined(WITH_NOSPELL)
73 .if !defined(WITH_ISPELL)
74 CONFIGURE_ARGS+=--with-spellcheck-prog="${LOCALBASE}/bin/aspell --dont-backup --mode=email check"
75 RUN_DEPENDS+=   aspell:${PORTSDIR}/textproc/aspell
95   .else
96 < CONFIGURE_ARGS+=        --with-spellcheck-prog="${LOCALBASE}/bin/ispell"
78 < RUN_DEPENDS+=   ispell:${PORTSDIR}/textproc/ispell
96 > CONFIGURE_ARGS+=--without-simple-spellcheck --without-interactive-spellcheck
97   .endif
80 .endif
98  
99   .if !defined(PICO_ALPINE_SLAVE)
100 < .if !defined(WITHOUT_PICO)
101 < RUN_DEPENDS+=   pico:${PORTSDIR}/editors/pico-alpine
100 > .if ${PORT_OPTIONS:MPICO}
101 > RUN_DEPENDS+=   pico:editors/pico-alpine
102   .endif
103  
104 < .if !defined(WITHOUT_IPV6)
88 < CONFIGURE_ARGS+=        --with-ipv6
89 < .else
90 < CONFIGURE_ARGS+=        --without-ipv6
91 < .endif
92 <
93 < .if defined(WITH_LDAP)
104 > .if ${PORT_OPTIONS:MLDAP}
105   USE_OPENLDAP=           yes
106 < CONFIGURE_ARGS+=        --with-ldap --with-ldap-dir=${LOCALBASE}
106 > CONFIGURE_ARGS+=        --with-ldap-dir=${LOCALBASE}
107   .else
108   CONFIGURE_ARGS+=        --without-ldap
109   .endif
110  
111 < .if defined(WITH_PASSFILE)
111 > .if ${PORT_OPTIONS:MPASSFILE}
112   ALPINE_PASSFILE?=       .alpine.pwd
113 < CONFIGURE_ARGS+=        --with-passfile=".alpine.pwd"
113 > CONFIGURE_ARGS+=        --with-passfile=.alpine.pwd
114   .endif
115  
116 < .if defined(WITH_CONS25)
117 < EXTRA_PATCHES=  ${FILESDIR}/cons25-alpine_keymenu.c
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 defined(WITH_QUOTA) || defined(WITH_MAILDIR)
122 < PATCH_SITES=    http://staff.washington.edu/chappa/alpine/patches/alpine-${PORTVERSION}/ \
111 <                http://dougbarton.us/Downloads/alpine-${PORTVERSION}/ \
112 <                ${MASTER_SITE_LOCAL}
113 < PATCH_SITE_SUBDIR=      dougb/alpine-${PORTVERSION}/
114 < PATCH_DIST_ARGS+=       -E --quiet -d ${PATCH_WRKSRC} -p1
121 > .if ${PORT_OPTIONS:MCONS25}
122 > EXTRA_PATCHES=          ${FILESDIR}/cons25-alpine_keymenu.c
123   .endif
124  
117 .if defined(WITH_QUOTA)
118 PATCHFILES+=    quota.patch.gz
119 .endif
120
121 .if defined(WITH_MAILDIR)
122 PATCHFILES+=    maildir.patch.gz
123 .endif
124
125 .if defined(WITHOUT_SSL)
126 MAKE_ARGS+=     SSLTYPE=none
127 .else
128 EXTRA_OPTS+=    SSLINCLUDE=${OPENSSLINC} SSLLIB=${OPENSSLLIB}
129 .if defined(WITH_SSL_AND_PLAINTEXT)
130 EXTRA_OPTS+=    SSLTYPE=nopwd
131 .else
132 EXTRA_OPTS+=    SSLTYPE=unix
133 .endif
134 .endif
135
136 MAN1=           alpine.1 rpdump.1 rpload.1
137
138 pre-patch:
139        @${CHMOD} -R u+w ${WRKSRC}
140
125   post-patch:
126          @${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed
127          @${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \
# Line 149 | Line 133 | post-patch:
133          @${CP} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.presed
134          @${SED} -e "s#doc/pico.1 doc/pilot.1 ##" \
135              ${WRKSRC}/Makefile.in.presed > ${WRKSRC}/Makefile.in
136 +        @${CP} ${WRKSRC}/imap/src/osdep/unix/Makefile \
137 +            ${WRKSRC}/imap/src/osdep/unix/Makefile.presed
138 +        @${SED} -e "s#^LOCKPGM=.*#LOCKPGM= ${PREFIX}/libexec/mlock#" \
139 +            ${WRKSRC}/imap/src/osdep/unix/Makefile.presed \
140 +            > ${WRKSRC}/imap/src/osdep/unix/Makefile
141          @for i in ${WRKSRC}/README ${WRKSRC}/doc/alpine.1 \
142 <            ${WRKSRC}/doc/tech-notes.txt ${WRKSRC}/doc/tech-notes/*.html \
142 >            ${WRKSRC}/doc/*.txt \
143 >            ${WRKSRC}/doc/tech-notes/*.txt \
144 >            ${WRKSRC}/doc/tech-notes/*.html \
145              ${WRKSRC}/pith/pine.hlp ; do \
146                  ${CP} $$i $$i.presed ; \
147 <                ${SED}  -e "s:/usr/local/etc/:${PREFIX}/etc/:g" \
148 <                    -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \
147 >                ${SED} -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \
148 >                    -e "s:/usr/local/pine.conf:${PREFIX}/etc/pine.conf:g" \
149 >                    -e "s:pine\.conf:alpine.conf:g" \
150 >                    -e "s:/usr/local:${PREFIX}:g" \
151                      -e "s:@@PREFIX@@:${PREFIX}:g" \
159                    -e "s:/usr/local/pine.conf:${PREFIX}/etc/alpine.conf:g" \
152                      $$i.presed > $$i ; \
153          done
154  
155   post-install:
156 < .if !defined(NOPORTDOCS)
157 <        ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} ${DOCSDIR} \
158 <            ${DOCSDIR}/tech-notes
159 <        ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
160 <        ${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR}
161 <        ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
162 <        ${INSTALL_DATA} ${WRKSRC}/doc/brochure.txt ${DOCSDIR}
163 <        ${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${DOCSDIR}
164 <        ${INSTALL_DATA} ${WRKSRC}/doc/tech-notes/*.html ${DOCSDIR}/tech-notes
156 >        ${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample
157 > .if ${PORT_OPTIONS:MDOCS}
158 >        ${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes
159 > .for f in ${PORTDOCSbase}
160 >        ${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
161 > .endfor
162 > .for f in ${PORTDOCSdoc}
163 >        ${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}
164 > .endfor
165 > .for f in ${PORTDOCShtml}
166 >        ${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes
167 > .endfor
168   .endif
169 <        ${PREFIX}/bin/alpine -P ${PREFIX}/etc/alpine.conf -conf >${WRKSRC}/alpine.conf
170 <        ${INSTALL_DATA} ${WRKSRC}/alpine.conf ${PREFIX}/etc/alpine.conf
169 >
170 > #       PKG_PREFIX=${STAGEDIR}${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
171 > #       @${CAT} ${PKGMESSAGE}
172  
173   .endif  # !defined(PICO_ALPINE_SLAVE)
174  

Comparing trunk/mail/alpine/Makefile (property cvs2svn:cvs-rev):
Revision 6091 by laffer1, Tue Aug 26 19:20:05 2008 UTC vs.
Revision 24511 by laffer1, Tue Oct 16 02:38:01 2018 UTC

# Line 1 | Line 0
1 1.4

Comparing trunk/mail/alpine/Makefile (property svn:keywords):
Revision 6091 by laffer1, Tue Aug 26 19:20:05 2008 UTC vs.
Revision 24511 by laffer1, Tue Oct 16 02:38:01 2018 UTC

# Line 0 | Line 1
1 + MidnightBSD=%H

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines