1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/net/spideroak/Makefile
Mathieu Arnold 065c026fe5 Fix ports that confused the meaning of WRKDIR and WRKSRC.
PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
2015-11-05 12:36:25 +00:00

67 lines
2.1 KiB
Makefile

# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= spideroak
PORTVERSION= 6.0
PORTREVISION= 0
CATEGORIES= net
MASTER_SITES= http://nivit.altervista.org/FreeBSD/ports/distfiles/${PORTNAME}/ \
https://spideroak.com/getbuild?platform=slackware&arch=i386&dummy=/
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
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
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
USES= desktop-file-utils python:2 tar:tgz
.include <bsd.port.options.mk>
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
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/usr/share/doc/SpiderOakONE/Getting\ Started\ Guide.pdf ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MMANPAGES}
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/SpiderOakONE.1.gz ${STAGEDIR}${MANPREFIX}/man/man1/
.endif
${INSTALL_DATA} ${WRKSRC}/usr/share/pixmaps/*.png ${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>