diff options
author | pawel <pawel@FreeBSD.org> | 2013-07-11 03:41:30 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2013-07-11 03:41:30 +0800 |
commit | 4682c2c61dcb7a63ae78f7c087ba5d0bda84f154 (patch) | |
tree | f00883f68004a81b9e525ad5cc94de309898b666 /mail | |
parent | 31dd4fd824aafa89c7f4eb95e23f32974c053110 (diff) | |
download | freebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.tar.gz freebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.tar.zst freebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.zip |
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
Diffstat (limited to 'mail')
-rw-r--r-- | mail/claws-mail/Makefile | 82 | ||||
-rw-r--r-- | mail/claws-mail/Makefile.claws | 2 | ||||
-rw-r--r-- | mail/clawsker/Makefile | 12 | ||||
-rw-r--r-- | mail/libetpan/Makefile | 24 |
4 files changed, 39 insertions, 81 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 diff --git a/mail/clawsker/Makefile b/mail/clawsker/Makefile index f104f2b9b1f6..e25bbe4192cc 100644 --- a/mail/clawsker/Makefile +++ b/mail/clawsker/Makefile @@ -22,14 +22,12 @@ USE_PERL5= yes MAN1= clawsker.1 PORTDOCS= NEWS README -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -PLIST_SUB+= NLS="@comment " -.endif +NLS_USES= gettext + +.include <bsd.port.options.mk> post-patch: @${REINPLACE_CMD} '/^DATADIR/s|/share||' ${WRKSRC}/Makefile diff --git a/mail/libetpan/Makefile b/mail/libetpan/Makefile index a3eed9098c55..c6bcfb3bdb30 100644 --- a/mail/libetpan/Makefile +++ b/mail/libetpan/Makefile @@ -18,8 +18,7 @@ LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \ USE_AUTOTOOLS= libtool autoconf AUTOTOOLSFILES= aclocal.m4 -USE_GMAKE= yes -USES= iconv +USES= gmake iconv USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes @@ -31,23 +30,18 @@ OPTIONS_SINGLE= CRYPTO OPTIONS_SINGLE_CRYPTO= GNUTLS OPENSSL OPTIONS_DEFAULT= OPENSSL -.include <bsd.port.options.mk> +GNUTLS_CONFIGURE_ON= --without-openssl --with-gnutls +GNUTLS_LIB_DEPENDS= gnutls:${PORTSDIR}/security/gnutls \ + gcrypt:${PORTSDIR}/security/libgcrypt -.if ${PORT_OPTIONS:MGNUTLS} -LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls \ - gcrypt:${PORTSDIR}/security/libgcrypt -CONFIGURE_ARGS+= --without-openssl --with-gnutls -.endif +IPV6_CONFIGURE_ENABLE= ipv6 + +OPENSSL_CONFIGURE_ON= --without-gnutls + +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MOPENSSL} USE_OPENSSL= yes -CONFIGURE_ARGS+= --without-gnutls -.endif - -.if ${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+= --enable-ipv6 -.else -CONFIGURE_ARGS+= --disable-ipv6 .endif post-patch: |