mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 20:06:29 -04:00
Does fail to build on i386 targets, ignore this arch. Replace space characters to tabs. PR: 283062 Approved by: submitter is maintainer
81 lines
3.1 KiB
Makefile
81 lines
3.1 KiB
Makefile
PORTNAME= teddycloud
|
|
DISTVERSIONPREFIX= tc_v
|
|
DISTVERSION= 0.6.2
|
|
CATEGORIES= net
|
|
# Get the latest commit hashes here: https://github.com/toniebox-reverse-engineering/tonies-json/commits/release/
|
|
# NOTE: remove the existing tonies.json and tonieboxes.json from DISTDIR before you do a `make makesum`
|
|
MASTER_SITES= https://raw.githubusercontent.com/toniebox-reverse-engineering/tonies-json/85a888e355f20ef300e581ad11feb4ac623e62d6/:toniesjson
|
|
DISTFILES= tonies.json:toniesjson \
|
|
tonieboxes.json:toniesjson
|
|
EXTRACT_ONLY= ${DISTFILES:N*\:toniesjson:C/\:.*//}
|
|
|
|
MAINTAINER= freebsd@pe82.de
|
|
COMMENT= Alternative cloud server for the Toniebox
|
|
WWW= https://tonies-wiki.revvox.de/docs/tools/teddycloud/
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
NOT_FOR_ARCHS= i386
|
|
|
|
BUILD_DEPENDS+= curl:ftp/curl \
|
|
protoc-c:devel/protobuf-c
|
|
|
|
USES= gmake
|
|
USE_GCC= yes
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= toniebox-reverse-engineering:DEFAULT,teddycloud_web \
|
|
DaveGamble:cJSON \
|
|
xiph:ogg,opus \
|
|
Oryx-Embedded:cyclone_common,cyclone_crypto,cyclone_ssl,cyclone_tcp
|
|
GH_PROJECT= cJSON:cJSON ogg:ogg opus:opus teddycloud_web:teddycloud_web \
|
|
Common:cyclone_common CycloneCRYPTO:cyclone_crypto \
|
|
CycloneSSL:cyclone_ssl CycloneTCP:cyclone_tcp
|
|
GH_SUBDIR= cJSON:cJSON ogg:ogg opus:opus teddycloud_web:teddycloud_web \
|
|
cyclone/common:cyclone_common cyclone/cyclone_crypto:cyclone_crypto \
|
|
cyclone/cyclone_ssl:cyclone_ssl cyclone/cyclone_tcp:cyclone_tcp
|
|
# find versions here clone the repository and switch to tag
|
|
# git submodule update
|
|
# git submodule
|
|
GH_TAGNAME= v1.7.15-33-gacc7623:cJSON \
|
|
v1.3.5-9-gdb5c7a4:ogg \
|
|
v1.4-7-g101a71e0:opus \
|
|
tcw_v0.6.2:teddycloud_web \
|
|
v2.3.2:cyclone_common,cyclone_crypto,cyclone_ssl,cyclone_tcp
|
|
|
|
USE_RC_SUBR= teddycloudd
|
|
MAKE_ENV+= CONFIG_RUNTIME_BASE_PATH=${PREFIX}/etc/teddycloud \
|
|
RUNTIME_BASE_PATH=${PREFIX}/share/teddycloud \
|
|
NO_SANITIZERS=1
|
|
# can be used if https://github.com/toniebox-reverse-engineering/teddycloud/pull/243 is included
|
|
# and patch for Makefile is then obsolete
|
|
# GIT_DIRTY=0 \
|
|
# GIT_BUILD_TIME="2024-10-26 18:14:34 +0000" \
|
|
# GIT_SHORT_SHA=203f12d \
|
|
# GIT_SHA=203f12d3d357d16268b83c7bdedb332820b9e87a \
|
|
# GIT_TAG=tc_v0.6.2 \
|
|
# WEB_GIT_DIRTY=0 \
|
|
# WEB_GIT_BUILD_TIME="2024-10-26 06:25:22 +0200" \
|
|
# WEB_GIT_SHORT_SHA=e4d9fc1 \
|
|
# WEB_GIT_SHA=e4d9fc19e493933c2020be2d40ee5de2f07d7eef \
|
|
# WEB_GIT_TAG=tcw_v0.6.2
|
|
# This did reliably fail due to some unknown deps when using parallel build
|
|
MAKE_JOBS_UNSAFE= yes
|
|
ALL_TARGET= preinstall
|
|
|
|
post-extract:
|
|
|
|
pre-install:
|
|
@${CP} ${DISTFILES:M*\:toniesjson:C/\:.*//:S,^,${_DISTDIR},} ${WRKSRC}/install/pre/config/
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/install/pre/teddycloud ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/certs
|
|
@(cd ${WRKSRC}/install/pre/certs && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/certs)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/data
|
|
@(cd ${WRKSRC}/install/pre/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/data)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/certs
|
|
@(cd ${WRKSRC}/install/pre/certs && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/certs)
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/teddycloud
|
|
@(cd ${WRKSRC}/install/pre/config && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/etc/teddycloud)
|
|
|
|
.include <bsd.port.mk>
|