ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/alpine/Makefile
Revision: 7559
Committed: Sun Apr 5 21:22:31 2009 UTC (15 years ago) by laffer1
File size: 5279 byte(s)
Log Message:
rmd160 freebsd local

File Contents

# User Rev Content
1 laffer1 3797 # New ports collection makefile for: alpine
2     # Date created: December 21, 2007
3     # Whom: Lucas Holt <luke@midnightbsd.org>
4     #
5 laffer1 7559 # $MidnightBSD: mports/mail/alpine/Makefile,v 1.5 2009/04/02 23:24:13 laffer1 Exp $
6 laffer1 3797 #
7    
8     PORTNAME?= alpine
9 crash 4911 PORTVERSION= 1.10
10 laffer1 6091 PORTREVISION= 1
11 laffer1 3797 CATEGORIES?= mail news ipv6
12     MASTER_SITES= ftp://ftp.cac.washington.edu/alpine/ \
13     http://dougbarton.us/Downloads/alpine-${PORTVERSION}/
14     DIST_SUBDIR= alpine-${PORTVERSION}
15    
16     MAINTAINER= ports@MidnightBSD.org
17     COMMENT= Mail and news client descended from Pine
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
25     .if !defined(PICO_ALPINE_SLAVE)
26     OPTIONS+= PICO "Build and install pico, the default editor" on \
27     IPV6 "Add support for IPv6" on \
28     LDAP "Add support for LDAP" off \
29     PASSFILE "Support for a stored password file (DANGEROUS)" off \
30     CONS25 "Add a patch to support color for default console" off \
31     QUOTA "Add a patch for disk quota checking on IMAP" off \
32     MAILDIR "Add a patch for maildir support" off
33     .endif
34    
35     USE_BZIP2= yes
36    
37     GNU_CONFIGURE= yes
38    
39     .if !defined(PICO_ALPINE_SLAVE)
40     CONFIGURE_ARGS+=--with-system-pinerc=${PREFIX}/etc/alpine.conf \
41     --with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \
42     --with-password-prog=/usr/bin/passwd \
43     --with-system-mail-directory=/var/mail \
44     --enable-background-post --without-krb5 --without-tcl
45     .endif
46     CONFIGURE_ARGS+=--with-debug-level=2
47    
48     USE_OPENSSL= yes
49    
50     .include <bsd.port.pre.mk>
51    
52     .if !defined(WITHOUT_THREADS)
53     CONFIGURE_ARGS+= --with-pthread
54     .else
55     CONFIGURE_ARGS+= --without-pthread
56     .endif
57    
58     .if !defined(WITHOUT_MOUSE)
59     CONFIGURE_ARGS+= --enable-mouse
60     .else
61     CONFIGURE_ARGS+= --disable-mouse
62     .endif
63    
64     .if defined(WITH_NLS)
65     CONFIGURE_ARGS+= --with-nls
66     .else
67     CONFIGURE_ARGS+= --without-nls
68     .endif
69    
70     .if !defined(WITH_NOSPELL)
71     .if !defined(WITH_ISPELL)
72     CONFIGURE_ARGS+=--with-spellcheck-prog="${LOCALBASE}/bin/aspell --dont-backup --mode=email check"
73     RUN_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
74     .else
75 laffer1 5626 CONFIGURE_ARGS+= --with-spellcheck-prog="${LOCALBASE}/bin/ispell"
76 laffer1 3797 RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
77     .endif
78     .endif
79    
80     .if !defined(PICO_ALPINE_SLAVE)
81     .if !defined(WITHOUT_PICO)
82     RUN_DEPENDS+= pico:${PORTSDIR}/editors/pico-alpine
83     .endif
84    
85     .if !defined(WITHOUT_IPV6)
86     CONFIGURE_ARGS+= --with-ipv6
87     .else
88     CONFIGURE_ARGS+= --without-ipv6
89     .endif
90    
91     .if defined(WITH_LDAP)
92     USE_OPENLDAP= yes
93     CONFIGURE_ARGS+= --with-ldap --with-ldap-dir=${LOCALBASE}
94     .else
95     CONFIGURE_ARGS+= --without-ldap
96     .endif
97    
98     .if defined(WITH_PASSFILE)
99     ALPINE_PASSFILE?= .alpine.pwd
100     CONFIGURE_ARGS+= --with-passfile=".alpine.pwd"
101     .endif
102    
103     .if defined(WITH_CONS25)
104     EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c
105     .endif
106    
107     .if defined(WITH_QUOTA) || defined(WITH_MAILDIR)
108     PATCH_SITES= http://staff.washington.edu/chappa/alpine/patches/alpine-${PORTVERSION}/ \
109     http://dougbarton.us/Downloads/alpine-${PORTVERSION}/ \
110 laffer1 7559 ${MASTER_SITE_FREEBSD_LOCAL}
111 laffer1 3797 PATCH_SITE_SUBDIR= dougb/alpine-${PORTVERSION}/
112     PATCH_DIST_ARGS+= -E --quiet -d ${PATCH_WRKSRC} -p1
113     .endif
114    
115     .if defined(WITH_QUOTA)
116     PATCHFILES+= quota.patch.gz
117     .endif
118    
119     .if defined(WITH_MAILDIR)
120     PATCHFILES+= maildir.patch.gz
121     .endif
122    
123     .if defined(WITHOUT_SSL)
124     MAKE_ARGS+= SSLTYPE=none
125     .else
126     EXTRA_OPTS+= SSLINCLUDE=${OPENSSLINC} SSLLIB=${OPENSSLLIB}
127     .if defined(WITH_SSL_AND_PLAINTEXT)
128     EXTRA_OPTS+= SSLTYPE=nopwd
129     .else
130     EXTRA_OPTS+= SSLTYPE=unix
131     .endif
132     .endif
133    
134     MAN1= alpine.1 rpdump.1 rpload.1
135    
136     pre-patch:
137     @${CHMOD} -R u+w ${WRKSRC}
138    
139     post-patch:
140     @${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed
141     @${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \
142     ${WRKSRC}/imap/Makefile.presed > ${WRKSRC}/imap/Makefile
143     @${CP} ${WRKSRC}/pico/Makefile.in ${WRKSRC}/pico/Makefile.in.presed
144     @${SED} -e "s#^bin_PROGRAMS = pico.*#bin_PROGRAMS =#" \
145     -e "s#\$$(pico_SOURCES) \$$(pilot_SOURCES)##" \
146     ${WRKSRC}/pico/Makefile.in.presed > ${WRKSRC}/pico/Makefile.in
147     @${CP} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.presed
148     @${SED} -e "s#doc/pico.1 doc/pilot.1 ##" \
149     ${WRKSRC}/Makefile.in.presed > ${WRKSRC}/Makefile.in
150     @for i in ${WRKSRC}/README ${WRKSRC}/doc/alpine.1 \
151     ${WRKSRC}/doc/tech-notes.txt ${WRKSRC}/doc/tech-notes/*.html \
152     ${WRKSRC}/pith/pine.hlp ; do \
153     ${CP} $$i $$i.presed ; \
154     ${SED} -e "s:/usr/local/etc/:${PREFIX}/etc/:g" \
155     -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \
156     -e "s:@@PREFIX@@:${PREFIX}:g" \
157     -e "s:/usr/local/pine.conf:${PREFIX}/etc/alpine.conf:g" \
158     $$i.presed > $$i ; \
159     done
160    
161     post-install:
162     .if !defined(NOPORTDOCS)
163     ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} ${DOCSDIR} \
164     ${DOCSDIR}/tech-notes
165     ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
166     ${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR}
167     ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
168     ${INSTALL_DATA} ${WRKSRC}/doc/brochure.txt ${DOCSDIR}
169     ${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${DOCSDIR}
170     ${INSTALL_DATA} ${WRKSRC}/doc/tech-notes/*.html ${DOCSDIR}/tech-notes
171     .endif
172     ${PREFIX}/bin/alpine -P ${PREFIX}/etc/alpine.conf -conf >${WRKSRC}/alpine.conf
173     ${INSTALL_DATA} ${WRKSRC}/alpine.conf ${PREFIX}/etc/alpine.conf
174    
175     .endif # !defined(PICO_ALPINE_SLAVE)
176    
177     .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.6