diff options
author | adamw <adamw@FreeBSD.org> | 2014-07-04 02:18:02 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-07-04 02:18:02 +0800 |
commit | c26fe43e8a72cff2575818dc5b7dd0bc3e7f9649 (patch) | |
tree | b536625912e0dbf4d80e3e4ce6844a97d066e3da /ftp | |
parent | 2af463a232ffc193db01e274d26c03a57826513b (diff) | |
download | freebsd-ports-gnome-c26fe43e8a72cff2575818dc5b7dd0bc3e7f9649.tar.gz freebsd-ports-gnome-c26fe43e8a72cff2575818dc5b7dd0bc3e7f9649.tar.zst freebsd-ports-gnome-c26fe43e8a72cff2575818dc5b7dd0bc3e7f9649.zip |
Resolve unnecessary bsd.port.options.mk inclusion by using OPTIONS helpers.
Approved by: portmgr (blanket)
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/bftpd/Makefile | 1 | ||||
-rw-r--r-- | ftp/bsdftpd-ssl/Makefile | 4 | ||||
-rw-r--r-- | ftp/filezilla/Makefile | 20 | ||||
-rw-r--r-- | ftp/ftpcopy/Makefile | 4 | ||||
-rw-r--r-- | ftp/p5-Net-FTPServer/Makefile | 2 | ||||
-rw-r--r-- | ftp/p5-POE-Component-Client-FTP/Makefile | 2 | ||||
-rw-r--r-- | ftp/py-pyftpdlib/Makefile | 15 | ||||
-rw-r--r-- | ftp/scythia/Makefile | 6 | ||||
-rw-r--r-- | ftp/tnftpd/Makefile | 5 | ||||
-rw-r--r-- | ftp/weex/Makefile | 12 | ||||
-rw-r--r-- | ftp/yafc/Makefile | 43 |
11 files changed, 29 insertions, 85 deletions
diff --git a/ftp/bftpd/Makefile b/ftp/bftpd/Makefile index f0e380e54ead..6f4660884d05 100644 --- a/ftp/bftpd/Makefile +++ b/ftp/bftpd/Makefile @@ -18,7 +18,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME} PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf.sample \ man/man8/bftpd.8.gz -MAN8= bftpd.8 PORTDOCS= en pl sk .include <bsd.port.pre.mk> diff --git a/ftp/bsdftpd-ssl/Makefile b/ftp/bsdftpd-ssl/Makefile index cea885b7b972..69e08697412e 100644 --- a/ftp/bsdftpd-ssl/Makefile +++ b/ftp/bsdftpd-ssl/Makefile @@ -15,7 +15,7 @@ USE_OPENSSL= yes MAKE_ENV+= OBJFORMAT=elf MAKE_JOBS_UNSAFE= yes -OPTIONS_DEFINE= SERVER +OPTIONS_DEFINE= SERVER DOCS EXAMPLES SERVER_DESC= Build/install FTP server as well OPTIONS_SUB= yes USE_RC_SUBR= ${PORTNAME} @@ -59,13 +59,11 @@ do-install: .endif post-install: -.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} . for file in COPYRIGHT README INSTALL ChangeLog ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} . endfor -.endif .if ${PORT_OPTIONS:MSERVER} && ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/cert diff --git a/ftp/filezilla/Makefile b/ftp/filezilla/Makefile index 827b00c685a9..0ec3398f65ca 100644 --- a/ftp/filezilla/Makefile +++ b/ftp/filezilla/Makefile @@ -33,23 +33,13 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} OPTIONS_DEFINE= DBUS NLS OPTIONS_DEFAULT=DBUS NLS +OPTIONS_SUB= yes -.include <bsd.port.options.mk> +DBUS_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus +DBUS_CONFIGURE_WITH= dbus -.if ${PORT_OPTIONS:MDBUS} -LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus -CONFIGURE_ARGS+= --with-dbus -.else -CONFIGURE_ARGS+= --without-dbus -.endif - -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+= --disable-locales -PLIST_SUB+= NLS="@comment " -.endif +NLS_USES= gettext +NLS_CONFIGURE_OFF= --disable-locales .if !defined(MAINTAINER_MODE) CONFIGURE_ARGS+= --disable-manualupdatecheck diff --git a/ftp/ftpcopy/Makefile b/ftp/ftpcopy/Makefile index b46ee171a1b9..feee578c822f 100644 --- a/ftp/ftpcopy/Makefile +++ b/ftp/ftpcopy/Makefile @@ -16,8 +16,6 @@ WRKSRC= ${WRKDIR}/web/${DISTNAME} OPTIONS_DEFINE= DOCS -.include <bsd.port.options.mk> - pre-build: ${ECHO} "${CC}" >${WRKSRC}/src/conf-cc ${ECHO} "${CPPFLAGS} ${CFLAGS}" >${WRKSRC}/src/conf-cflags @@ -28,11 +26,9 @@ do-install: ${INSTALL_PROGRAM} ftpcopy ftpls ${STAGEDIR}${PREFIX}/bin && \ ${INSTALL_MAN} *.1 ${STAGEDIR}${PREFIX}/man/man1 && \ ${INSTALL_SCRIPT} ftpcp ${STAGEDIR}${PREFIX}/bin -.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} && \ cd ${WRKSRC}/compile && \ ${INSTALL_DATA} ChangeLog NEWS \ README THANKS ftpcopy.html ftpls.html ${STAGEDIR}${DOCSDIR} -.endif .include <bsd.port.mk> diff --git a/ftp/p5-Net-FTPServer/Makefile b/ftp/p5-Net-FTPServer/Makefile index 68702cc4f3d2..2818b16805fd 100644 --- a/ftp/p5-Net-FTPServer/Makefile +++ b/ftp/p5-Net-FTPServer/Makefile @@ -31,8 +31,6 @@ PORTEXAMPLES= ftpd.conf OPTIONS_DEFINE= DOCS EXAMPLES -.include <bsd.port.options.mk> - post-patch: @${REINPLACE_CMD} -e "s/root,root/root,wheel/" \ -e "s,/usr/sbin,${PREFIX}/sbin," \ diff --git a/ftp/p5-POE-Component-Client-FTP/Makefile b/ftp/p5-POE-Component-Client-FTP/Makefile index 756fac8dc0b0..63db590b17df 100644 --- a/ftp/p5-POE-Component-Client-FTP/Makefile +++ b/ftp/p5-POE-Component-Client-FTP/Makefile @@ -23,8 +23,6 @@ PORTEXAMPLES= dotfer.pl list.pl sync.pl OPTIONS_DEFINE= EXAMPLES -.include <bsd.port.options.mk> - post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} diff --git a/ftp/py-pyftpdlib/Makefile b/ftp/py-pyftpdlib/Makefile index 01cf33ce4199..5780a11e38ed 100644 --- a/ftp/py-pyftpdlib/Makefile +++ b/ftp/py-pyftpdlib/Makefile @@ -16,7 +16,7 @@ LICENSE= MIT USE_PYTHON= 2 USE_PYDISTUTILS= yes -OPTIONS_DEFINE= SENDFILE OPENSSL +OPTIONS_DEFINE= SENDFILE OPENSSL EXAMPLES OPTIONS_DEFAULT= SENDFILE OPENSSL SENDFILE_DESC= Enable sendfile(2) support OPENSSL_DESC= Enable FTP over SSL/TLS (RFC4217) @@ -24,23 +24,14 @@ OPENSSL_DESC= Enable FTP over SSL/TLS (RFC4217) # Workaround ports infrastructure bug OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MSENDFILE} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pysendfile>0:${PORTSDIR}/net/py-pysendfile -.endif - -.if ${PORT_OPTIONS:MOPENSSL} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openssl>0:${PORTSDIR}/security/py-openssl -.endif +SENDFILE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pysendfile>0:${PORTSDIR}/net/py-pysendfile +OPENSSL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>0:${PORTSDIR}/security/py-openssl EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} post-install: -.if !defined(NOPORTEXAMPLES) @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${CP} -R ${WRKSRC}/demo/ ${STAGEDIR}${EXAMPLESDIR} -.endif test: build ${TOUCH} ${WRKSRC}/test/__init__.py diff --git a/ftp/scythia/Makefile b/ftp/scythia/Makefile index b0d3242a6829..c78851e7b10b 100644 --- a/ftp/scythia/Makefile +++ b/ftp/scythia/Makefile @@ -17,9 +17,9 @@ USE_QT4= gui network corelib uic_build moc_build rcc_build INSTALLS_ICONS= yes WRKSRC= ${WRKDIR}/${PORTNAME} -.if defined(NOPORTDOCS) -INSTALL_TARGET=install_lang install_icon install_icon2 install_target -.endif +OPTIONS_DEFINE= DOCS + +DOCS_INSTALL_TARGET_OFF= install_lang install_icon install_icon2 install_target DESKTOP_ENTRIES= "Scythia" \ "Small ftp client unpretentious" \ diff --git a/ftp/tnftpd/Makefile b/ftp/tnftpd/Makefile index b03f99d6eea2..100195cf69e4 100644 --- a/ftp/tnftpd/Makefile +++ b/ftp/tnftpd/Makefile @@ -18,6 +18,7 @@ PLIST_FILES= libexec/tnftpd \ PORTDOCS= ChangeLog NEWS README THANKS COPYING PORTEXAMPLES= ftpd.conf ftpusers +OPTIONS_DEFINE= DOCS EXAMPLES SUB_FILES= pkg-message .include <bsd.port.pre.mk> @@ -33,17 +34,13 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.man ${STAGEDIR}${PREFIX}/man/man5/ftpd.conf.5 ${INSTALL_MAN} ${WRKSRC}/src/ftpusers.man ${STAGEDIR}${PREFIX}/man/man5/ftpusers.5 ${INSTALL_MAN} ${WRKSRC}/src/tnftpd.man ${STAGEDIR}${PREFIX}/man/man8/tnftpd.8 -.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor -.endif -.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for f in ${PORTEXAMPLES} ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR} .endfor -.endif .include <bsd.port.post.mk> diff --git a/ftp/weex/Makefile b/ftp/weex/Makefile index 22d48242a8eb..6eaf9337c275 100644 --- a/ftp/weex/Makefile +++ b/ftp/weex/Makefile @@ -15,16 +15,10 @@ GNU_CONFIGURE= yes PORTDOCS= ChangeLog README OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.endif +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls post-patch: @${REINPLACE_CMD} -e 's|^\(SUBDIRS.*\)debian|\1|' \ diff --git a/ftp/yafc/Makefile b/ftp/yafc/Makefile index 14c3ea25b6aa..3b8085de026e 100644 --- a/ftp/yafc/Makefile +++ b/ftp/yafc/Makefile @@ -29,42 +29,25 @@ PLIST_FILES= bin/yafc \ info/yafc.info \ man/man1/yafc.1.gz -.include <bsd.port.options.mk> +NLS_USES= gettext +NLS_USE= GNOME=intltool +NLS_CONFIGURE_WITH= gettext=${LOCALBASE} +NLS_PLIST_FILES= share/locale/de/LC_MESSAGES/yafc.mo \ + share/locale/sv/LC_MESSAGES/yafc.mo -.if ${PORT_OPTIONS:MNLS} -USE_GNOME+= intltool -USES+= gettext -CONFIGURE_ARGS+= --with-gettext=${LOCALBASE} -PLIST_FILES+= share/locale/de/LC_MESSAGES/yafc.mo \ - share/locale/sv/LC_MESSAGES/yafc.mo -.else -CONFIGURE_ARGS+= --without-gettext -.endif +READLINE_USES= readline +READLINE_CONFIGURE_WITH=readline -.if ${PORT_OPTIONS:MREADLINE} -USES+= readline -.else -CONFIGURE_ARGS+= --without-readline -.endif +SSH_LIB_DEPENDS= libssh.so:${PORTSDIR}/security/libssh +SSH_CONFIGURE_OFF= --without-ssh -.if ${PORT_OPTIONS:MSSH} -LIB_DEPENDS+= libssh.so:${PORTSDIR}/security/libssh -.else -CONFIGURE_ARGS+= --without-ssh -.endif - -.if ${PORT_OPTIONS:MBASH} -CONFIGURE_ARGS+= --with-bash-completion=yes -PLIST_FILES+= etc/bash_completion.d/yafc -PLIST_DIRSTRY= etc/bash_completion.d -.else -CONFIGURE_ARGS+= --with-bash-completion=no -.endif +BASH_CONFIGURE_ON= --with-bash-completion=yes +BASH_PLIST_FILES= etc/bash_completion.d/yafc +BASH_PLIST_DIRSTRY= etc/bash_completion.d +BASH_CONFIGURE_OFF= --with-bash-completion=no post-install: -.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR} -.endif .include <bsd.port.mk> |