aboutsummaryrefslogtreecommitdiff
path: root/mail/claws-mail
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2010-12-29 07:24:16 +0000
committerMartin Wilke <miwi@FreeBSD.org>2010-12-29 07:24:16 +0000
commit18c3ad7f5341824306398942f73c373de9605209 (patch)
tree7c78193a52e872d72059317fccb91fe7fd362455 /mail/claws-mail
parent5fb15ff9cb5af29e5817a8f75ce808ce7f4b72a0 (diff)
downloadports-18c3ad7f5341824306398942f73c373de9605209.tar.gz
ports-18c3ad7f5341824306398942f73c373de9605209.zip
- Add LICENSE
- Due to popular demand on ports@ add a knob to disable manual building and installing which can add a lot of build dependencies. - Bump PORTREVISION PR: 153352 Submitted by: "Pawel Pekala" <c0rn@o2.pl> (maintainer)
Notes
Notes: svn path=/head/; revision=267116
Diffstat (limited to 'mail/claws-mail')
-rw-r--r--mail/claws-mail/Makefile20
-rw-r--r--mail/claws-mail/pkg-plist52
2 files changed, 41 insertions, 31 deletions
diff --git a/mail/claws-mail/Makefile b/mail/claws-mail/Makefile
index baf993a49a80..8a8d6a11cbc0 100644
--- a/mail/claws-mail/Makefile
+++ b/mail/claws-mail/Makefile
@@ -7,13 +7,13 @@
PORTNAME= claws-mail
PORTVERSION= 3.7.8
+PORTREVISION= 1
CATEGORIES= mail news ipv6
MASTER_SITES= SF/sylpheed-claws/Claws%20Mail/${PORTVERSION}
MAINTAINER= c0rn@o2.pl
COMMENT= A lightweight and very featureful GTK+ based e-mail and news client
-BUILD_DEPENDS= ${LOCALBASE}/bin/docbook2html:${PORTSDIR}/textproc/docbook-utils
LIB_DEPENDS= etpan:${PORTSDIR}/mail/libetpan \
cairo:${PORTSDIR}/graphics/cairo \
expat:${PORTSDIR}/textproc/expat2 \
@@ -26,6 +26,8 @@ RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
CONFLICTS= sylpheed-claws
+LICENSE= GPLv3
+
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GMAKE= yes
@@ -40,16 +42,14 @@ MAKE_JOBS_SAFE= yes
MAN1= claws-mail.1
-CONFIGURE_ARGS= \
- --with-libiconv-prefix=${LOCALBASE} \
- --with-manualdir=${DOCSDIR}/manual \
+CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE}
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-OPTIONS= ALL "Enable all options except GNUTLS." off \
+OPTIONS= ALL "Enable all options." off \
ENCHANT "Enable spell checking support." on \
BOGOFILTER "Enable bogofilter support." off \
COMPFACE "Enable X-Face support." on \
@@ -59,6 +59,7 @@ OPTIONS= ALL "Enable all options except GNUTLS." off \
IPV6 "Enable ipv6 support." on \
JPILOT "Enable JPilot support." off \
LDAP "Enable LDAP support." off \
+ MANUAL "Build and install manual files" on \
SA_PLUG "Enable SpamAssassin support." off \
STARTUP "Enable startup notification support." on \
THEMES "Install additional themes." on
@@ -99,6 +100,14 @@ CONFIGURE_ARGS+= --enable-ldap
.else
CONFIGURE_ARGS+= --disable-ldap
.endif
+.if defined(WITH_MANUAL) || defined(WITH_ALL)
+BUILD_DEPENDS= ${LOCALBASE}/bin/docbook2html:${PORTSDIR}/textproc/docbook-utils
+CONFIGURE_ARGS+= --enable-manual --with-manualdir=${DOCSDIR}/manual
+PLIST_SUB+= MANUAL=""
+.else
+CONFIGURE_ARGS+= --disable-manual
+PLIST_SUB+= MANUAL="@comment "
+.endif
.if defined(WITH_SA_PLUG) || defined(WITH_ALL)
RUN_DEPENDS+= spamd:${PORTSDIR}/mail/p5-Mail-SpamAssassin
CONFIGURE_ARGS+= --enable-spamassassin-plugin
@@ -162,6 +171,7 @@ post-patch:
post-install:
.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
.for i in NEWS RELEASE_NOTES README TODO
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
diff --git a/mail/claws-mail/pkg-plist b/mail/claws-mail/pkg-plist
index 67d8a6aa62aa..b0cc887fc040 100644
--- a/mail/claws-mail/pkg-plist
+++ b/mail/claws-mail/pkg-plist
@@ -277,26 +277,26 @@ share/applications/claws-mail.desktop
%%PORTDOCS%%%%DOCSDIR%%/README.tools
%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%DOCSDIR%%/manual/de/claws-mail-manual.html
-%%DOCSDIR%%/manual/de/claws-mail-manual.pdf
-%%DOCSDIR%%/manual/de/claws-mail-manual.ps
-%%DOCSDIR%%/manual/de/claws-mail-manual.txt
-%%DOCSDIR%%/manual/en/claws-mail-manual.html
-%%DOCSDIR%%/manual/en/claws-mail-manual.pdf
-%%DOCSDIR%%/manual/en/claws-mail-manual.ps
-%%DOCSDIR%%/manual/en/claws-mail-manual.txt
-%%DOCSDIR%%/manual/es/claws-mail-manual.html
-%%DOCSDIR%%/manual/es/claws-mail-manual.pdf
-%%DOCSDIR%%/manual/es/claws-mail-manual.ps
-%%DOCSDIR%%/manual/es/claws-mail-manual.txt
-%%DOCSDIR%%/manual/fr/claws-mail-manual.html
-%%DOCSDIR%%/manual/fr/claws-mail-manual.pdf
-%%DOCSDIR%%/manual/fr/claws-mail-manual.ps
-%%DOCSDIR%%/manual/fr/claws-mail-manual.txt
-%%DOCSDIR%%/manual/pl/claws-mail-manual.html
-%%DOCSDIR%%/manual/pl/claws-mail-manual.pdf
-%%DOCSDIR%%/manual/pl/claws-mail-manual.ps
-%%DOCSDIR%%/manual/pl/claws-mail-manual.txt
+%%MANUAL%%%%DOCSDIR%%/manual/de/claws-mail-manual.html
+%%MANUAL%%%%DOCSDIR%%/manual/de/claws-mail-manual.pdf
+%%MANUAL%%%%DOCSDIR%%/manual/de/claws-mail-manual.ps
+%%MANUAL%%%%DOCSDIR%%/manual/de/claws-mail-manual.txt
+%%MANUAL%%%%DOCSDIR%%/manual/en/claws-mail-manual.html
+%%MANUAL%%%%DOCSDIR%%/manual/en/claws-mail-manual.pdf
+%%MANUAL%%%%DOCSDIR%%/manual/en/claws-mail-manual.ps
+%%MANUAL%%%%DOCSDIR%%/manual/en/claws-mail-manual.txt
+%%MANUAL%%%%DOCSDIR%%/manual/es/claws-mail-manual.html
+%%MANUAL%%%%DOCSDIR%%/manual/es/claws-mail-manual.pdf
+%%MANUAL%%%%DOCSDIR%%/manual/es/claws-mail-manual.ps
+%%MANUAL%%%%DOCSDIR%%/manual/es/claws-mail-manual.txt
+%%MANUAL%%%%DOCSDIR%%/manual/fr/claws-mail-manual.html
+%%MANUAL%%%%DOCSDIR%%/manual/fr/claws-mail-manual.pdf
+%%MANUAL%%%%DOCSDIR%%/manual/fr/claws-mail-manual.ps
+%%MANUAL%%%%DOCSDIR%%/manual/fr/claws-mail-manual.txt
+%%MANUAL%%%%DOCSDIR%%/manual/pl/claws-mail-manual.html
+%%MANUAL%%%%DOCSDIR%%/manual/pl/claws-mail-manual.pdf
+%%MANUAL%%%%DOCSDIR%%/manual/pl/claws-mail-manual.ps
+%%MANUAL%%%%DOCSDIR%%/manual/pl/claws-mail-manual.txt
share/icons/hicolor/128x128/apps/claws-mail-128x128.png
share/icons/hicolor/48x48/apps/claws-mail.png
share/icons/hicolor/64x64/apps/claws-mail-64x64.png
@@ -325,12 +325,12 @@ share/pixmaps/claws-mail-128x128.png
share/pixmaps/claws-mail-64x64.png
share/pixmaps/claws-mail.png
@dirrm %%DATADIR%%
-@dirrm %%DOCSDIR%%/manual/pl
-@dirrm %%DOCSDIR%%/manual/fr
-@dirrm %%DOCSDIR%%/manual/es
-@dirrm %%DOCSDIR%%/manual/en
-@dirrm %%DOCSDIR%%/manual/de
-@dirrm %%DOCSDIR%%/manual
+%%MANUAL%%@dirrm %%DOCSDIR%%/manual/pl
+%%MANUAL%%@dirrm %%DOCSDIR%%/manual/fr
+%%MANUAL%%@dirrm %%DOCSDIR%%/manual/es
+%%MANUAL%%@dirrm %%DOCSDIR%%/manual/en
+%%MANUAL%%@dirrm %%DOCSDIR%%/manual/de
+%%MANUAL%%@dirrm %%DOCSDIR%%/manual
@dirrmtry %%DOCSDIR%%
@dirrmtry share/applications
@dirrmtry lib/claws-mail/plugins