diff --git a/net/teddycloud/Makefile b/net/teddycloud/Makefile index 149676c166f2..a1750d0242a9 100644 --- a/net/teddycloud/Makefile +++ b/net/teddycloud/Makefile @@ -1,81 +1,81 @@ PORTNAME= teddycloud DISTVERSIONPREFIX= tc_v DISTVERSION= 0.6.4 PORTREVISION= 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/c874ca0c33eb929ee1c94983f53f3f8a55445c6b/: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= armv6 armv7 i386 powerpc powerpcspe NOT_FOR_ARCHS_REASON= 32bit targets do not build due to type issues. Upstream library assumes FreeBSD to be 64bit. 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.18:cJSON \ v1.3.5-9-gdb5c7a4:ogg \ v1.4-7-g101a71e0:opus \ tcw_v${DISTVERSION}: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 \ GIT_DIRTY=0 \ GIT_BUILD_TIME="2025-03-05 08:01:37 +0000" \ GIT_SHORT_SHA=f13703a \ GIT_SHA=f13703ad110b6c42f693d35b7ac211e487d37c83 \ GIT_TAG=tc_v${DISTVERSION} \ WEB_GIT_DIRTY=0 \ WEB_GIT_BUILD_TIME="2025-03-03 18:54:08 +0000" \ WEB_GIT_SHORT_SHA=d24276e \ WEB_GIT_SHA=d24276e8d0972477d988449c566879974795d02a \ WEB_GIT_TAG=tcw_v${DISTVERSION} # 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/ + @${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}${EXAMPLESDIR} @(cd ${WRKSRC}/install/pre/config && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include