freebsd-ports/net/spideroak/Makefile

69 lines
2.2 KiB
Makefile
Raw Normal View History

# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= spideroak
PORTVERSION= 6.0
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://nivit.altervista.org/FreeBSD/ports/distfiles/${PORTNAME}/ \
https://spideroak.com/getbuild?platform=slackware&arch=i386&dummy=/
2015-02-18 21:49:13 +01:00
DISTNAME= SpiderOak-${PORTVERSION}-i686-1
MAINTAINER= nivit@FreeBSD.org
COMMENT= SpiderOak Client (Linux version)
LICENSE= TOU
LICENSE_NAME= Terms Of Use
LICENSE_TEXT= http://spideroak.com/terms_of_use
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
DEPRECATED= Uses deprecated version of python
EXPIRATION_DATE= 2020-09-15
NO_BUILD= yes
NO_WRKSUBDIR= yes
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= binary distribution
OPTIONS_DEFINE= DOCS MANPAGES
OPTIONS_DEFAULT= MANPAGES
OPTIONS_SUB= yes
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,} \
BINMODE=${BINMODE}
SUB_LIST= LINUXBASE=${LINUXBASE}
SUB_FILES= pkg-message
USES= desktop-file-utils linux python:2.7 tar:tgz
- Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk with Mk/Uses/linux.mk. - Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with USES+=linux:\1 in all ports. - Replace USE_LINUX_APPS with USE_LINUX in all ports. - Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some ports. - When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY are defined. - Remove BRANDELF_DIRS and BRANDELF_FILES handling. In the very rare cases that it is still necessary ports can run ${BRANDELF} from post-patch. - Remove AUTOMATIC_PLIST handling. Only one port used it. - Fix Linux MASTER_SITES. - Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with default versions framework. - bsd.port.mk: - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX. - Put USE_LINUX_PREFIX handling after USES processing. - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can give these variables a different default value. - When a package needs to run Linux ldconfig check before installation if Linux support is enabled. - emulators/linux_base-*: - Use USES=linux and remove duplication. - Remove files/lp. FreeBSD or CUPS lp(1) should work. - Remove files/yp.conf. No longer seems to be used. - Remove pkg-deinstall and move pkg-install into pkg-plist. - Update pkg-descr and pkg-message. - Fix handling of ldconfig cache in pkg-plist. - devel/fb-adb: Use a Linux shell to run a Linux script but patch the script to use FreeBSD mkdir so mkdir -p $path creates $path and not /compat/linux/$path. PR: 211645 Exp-run by: antoine Approved by: portmgr (antoine)
2016-09-05 21:23:42 +02:00
USE_LINUX= xorglibs
post-patch:
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},1' \
-e 's,%%DATADIR%%,${DATADIR},1' \
${WRKSRC}/usr/share/applications/SpiderOakONE.desktop \
${WRKSRC}/usr/bin/SpiderOakONE
do-install:
@(cd ${WRKSRC}/etc && \
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/etc/)
@${MKDIR} ${STAGEDIR}${DATADIR}
@(cd ${WRKSRC}/opt/SpiderOakONE/lib && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "-not -name SpiderOak")
${INSTALL_PROGRAM} ${WRKSRC}/opt/SpiderOakONE/lib/SpiderOakONE ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/SpiderOakONE ${STAGEDIR}${PREFIX}/bin/SpiderOakONE
${LN} -sf SpiderOakONE ${STAGEDIR}${PREFIX}/bin/spideroak
${LOCALBASE}/bin/desktop-file-install \
--mode=${SHAREMODE} --dir=${STAGEDIR}${DESKTOPDIR} \
${WRKSRC}/usr/share/applications/SpiderOakONE.desktop
${INSTALL_DATA} ${WRKSRC}/usr/share/pixmaps/*.png ${STAGEDIR}${PREFIX}/share/pixmaps/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/usr/share/doc/SpiderOakONE/Getting\ Started\ Guide.pdf ${STAGEDIR}${DOCSDIR}
do-install-MANPAGES-on:
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/SpiderOakONE.1.gz ${STAGEDIR}${MANPREFIX}/man/man1/
.include <bsd.port.mk>