aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mk/bsd.port.mk4
-rw-r--r--net/libilbc/Makefile1
-rw-r--r--net/libsrtp/Makefile1
-rw-r--r--net/syncthing/Makefile2
-rw-r--r--security/libzrtpcppcore/Makefile1
5 files changed, 4 insertions, 5 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 9020890b563d..0659f327ce97 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1554,7 +1554,11 @@ WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work
. if defined(GH_COMMIT)
WRKSRC?= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}
. else
+. if defined(GH_TAGNAME)
WRKSRC?= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME}
+. else
+WRKSRC?= ${WRKDIR}/${GH_PROJECT}-${DISTVERSION}
+. endif
. endif
.endif
.if defined(NO_WRKSUBDIR)
diff --git a/net/libilbc/Makefile b/net/libilbc/Makefile
index 9db8ecc02b3e..e9f80e7961ca 100644
--- a/net/libilbc/Makefile
+++ b/net/libilbc/Makefile
@@ -15,7 +15,6 @@ CONFLICTS= ilbc-r[0-9]*
USE_GITHUB= yes
GH_ACCOUNT= TimothyGu
-WRKSRC= ${WRKDIR}/${GH_PROJECT}-${DISTVERSION}
USES= cmake
USE_LDCONFIG= yes
diff --git a/net/libsrtp/Makefile b/net/libsrtp/Makefile
index b7da387f0932..72775f43e482 100644
--- a/net/libsrtp/Makefile
+++ b/net/libsrtp/Makefile
@@ -15,7 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= cisco
-WRKSRC= ${WRKDIR}/${GH_PROJECT}-${DISTVERSION}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-openssl
diff --git a/net/syncthing/Makefile b/net/syncthing/Makefile
index 71f9d221dfd9..a636c160f6fb 100644
--- a/net/syncthing/Makefile
+++ b/net/syncthing/Makefile
@@ -19,8 +19,6 @@ PORTDOCS= *
USERS= syncthing
GROUPS= syncthing
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
STRIP= # stripping can break go binaries
post-patch:
diff --git a/security/libzrtpcppcore/Makefile b/security/libzrtpcppcore/Makefile
index 99e0d33ae6fd..e2c680b1497f 100644
--- a/security/libzrtpcppcore/Makefile
+++ b/security/libzrtpcppcore/Makefile
@@ -15,7 +15,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= wernerd
GH_PROJECT= ZRTPCPP
-WRKSRC= ${WRKDIR}/${GH_PROJECT}-${DISTVERSION}
USES= cmake:outsource
CMAKE_ARGS= -DCORE_LIB=true