summaryrefslogtreecommitdiff
path: root/mail/claws-mail
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-07-10 19:41:30 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-07-10 19:41:30 +0000
commite482e392f687b2248d2975d68327324a858e1273 (patch)
treef00883f68004a81b9e525ad5cc94de309898b666 /mail/claws-mail
parent- update to apache-2.2.25 (diff)
Convert my ports to current standards
- Switch USE_GMAKE to USES=gmake - Define supported options so users can see them in config dialogs - Use OPTIONS_SUB for plist alteration - Convert to options macros for better readability - Use PORTDOCS where it makes sense
Notes
Notes: svn path=/head/; revision=322729
Diffstat (limited to 'mail/claws-mail')
-rw-r--r--mail/claws-mail/Makefile82
-rw-r--r--mail/claws-mail/Makefile.claws2
2 files changed, 25 insertions, 59 deletions
diff --git a/mail/claws-mail/Makefile b/mail/claws-mail/Makefile
index d8470b007075..f6de105c7ec7 100644
--- a/mail/claws-mail/Makefile
+++ b/mail/claws-mail/Makefile
@@ -20,6 +20,7 @@ MAN1= claws-mail.1
OPTIONS_DEFINE= COMPFACE DEBUG DOCS ENCHANT IPV6 JPILOT LDAP \
MANUAL NLS STARTUP THEMES
+OPTIONS_SUB= yes
COMPFACE_DESC= X-Face support
ENCHANT_DESC= Spell checking support
@@ -30,74 +31,39 @@ THEMES_DESC= Additional themes
OPTIONS_DEFAULT= COMPFACE ENCHANT MANUAL STARTUP THEMES
-.include "Makefile.claws"
-.include <bsd.port.options.mk>
+COMPFACE_CONFIGURE_ENABLE= compface
+COMPFACE_LIB_DEPENDS= compface:${PORTSDIR}/mail/faces
-.if ${PORT_OPTIONS:MCOMPFACE}
-LIB_DEPENDS+= compface:${PORTSDIR}/mail/faces
-CONFIGURE_ARGS+= --enable-compface
-.else
-CONFIGURE_ARGS+= --disable-compface
-.endif
+DEBUG_CONFIGURE_ON= --enable-maintainer-mode
-.if ${PORT_OPTIONS:MENCHANT}
-LIB_DEPENDS+= enchant:${PORTSDIR}/textproc/enchant
-CONFIGURE_ARGS+= --enable-enchant
-.else
-CONFIGURE_ARGS+= --disable-enchant
-.endif
+ENCHANT_CONFIGURE_ENABLE= enchant
+ENCHANT_LIB_DEPENDS= enchant:${PORTSDIR}/textproc/enchant
-.if ${PORT_OPTIONS:MJPILOT}
-LIB_DEPENDS+= pisock:${PORTSDIR}/palm/pilot-link
-RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
-CONFIGURE_ARGS+= --enable-jpilot
-.else
-CONFIGURE_ARGS+= --disable-jpilot
-.endif
+IPV6_CONFIGURE_ENABLE= ipv6
-.if ${PORT_OPTIONS:MLDAP}
-USE_OPENLDAP= yes
-CONFIGURE_ARGS+= --enable-ldap
-.else
-CONFIGURE_ARGS+= --disable-ldap
-.endif
+JPILOT_CONFIGURE_ENABLE= jpilot
+JPILOT_LIB_DEPENDS= pisock:${PORTSDIR}/palm/pilot-link
+JPILOT_RUN_DEPENDS= jpilot:${PORTSDIR}/palm/jpilot
-.if ${PORT_OPTIONS:MMANUAL}
-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
+LDAP_CONFIGURE_ENABLE= ldap
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@Comment "
-.endif
+MANUAL_CONFIGURE_ON= --enable-manual --with-manualdir=${DOCSDIR}/manual
+MANUAL_CONFIGURE_OFF= --disable-manual
+MANUAL_BUILD_DEPENDS= ${LOCALBASE}/bin/docbook2html:${PORTSDIR}/textproc/docbook-utils
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+= --enable-maintainer-mode
-.endif
+NLS_CONFIGURE_OFF= --disable-nls
+NLS_USES= gettext
-.if ${PORT_OPTIONS:MIPV6}
-CONFIGURE_ARGS+= --enable-ipv6
-.else
-CONFIGURE_ARGS+= --disable-ipv6
-.endif
+STARTUP_CONFIGURE_ENABLE= startup-notification
+STARTUP_LIB_DEPENDS= startup-notification-1:${PORTSDIR}/x11/startup-notification
-.if ${PORT_OPTIONS:MSTARTUP}
-LIB_DEPENDS+= startup-notification-1:${PORTSDIR}/x11/startup-notification
-CONFIGURE_ARGS+= --enable-startup-notification
-.else
-CONFIGURE_ARGS+= --disable-startup-notification
-.endif
+THEMES_RUN_DEPENDS= ${LOCALBASE}/share/claws-mail/themes/ZX-0_1.1/down_arrow.xpm:${PORTSDIR}/x11-themes/claws-mail-themes
-.if ${PORT_OPTIONS:MTHEMES}
-RUN_DEPENDS+= ${LOCALBASE}/share/claws-mail/themes/ZX-0_1.1/down_arrow.xpm:${PORTSDIR}/x11-themes/claws-mail-themes
+.include "Makefile.claws"
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MLDAP}
+USE_OPENLDAP= yes
.endif
post-patch:
diff --git a/mail/claws-mail/Makefile.claws b/mail/claws-mail/Makefile.claws
index a4afab537bb9..c7da62baf3c9 100644
--- a/mail/claws-mail/Makefile.claws
+++ b/mail/claws-mail/Makefile.claws
@@ -9,7 +9,7 @@ MAINTAINER= pawel@FreeBSD.org
LICENSE= GPLv3
USE_BZIP2= yes
-USE_GMAKE= yes
+USES+= gmake
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes