build: pass SRC_BASE so ports know about correct SRCDIR; closes #294

This commit is contained in:
Franco Fichtner 2022-12-08 14:50:21 +01:00
parent 6b61fb18d4
commit 73da6bb488
3 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,7 @@ echo "${PORTSLIST}" | while read PORT_ORIGIN; do
PACKAGES=${PACKAGESDIR}
PRODUCT_ABI=${PRODUCT_ABI}
PRODUCT_FLAVOUR=${PRODUCT_FLAVOUR}
SRC_BASE=${SRCDIR}
TRYBROKEN=yes
UNAME_r=\$(freebsd-version)
USE_PACKAGE_DEPENDS=yes

View File

@ -112,6 +112,7 @@ PACKAGES=${PACKAGESDIR}-cache
PRODUCT_ABI=${PRODUCT_ABI}
PRODUCT_ARCH=${PRODUCT_ARCH}
PRODUCT_FLAVOUR=${PRODUCT_FLAVOUR}
SRC_BASE=${SRCDIR}
UNAME_r=\$(freebsd-version)
"

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (c) 2015-2021 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2015-2022 Franco Fichtner <franco@opnsense.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@ -79,6 +79,7 @@ while read PORT_ORIGIN PORT_BROKEN; do
__MAKE_CONF=${STAGEDIR}/make.conf
PRODUCT_ABI=${PRODUCT_ABI}
PRODUCT_FLAVOUR=${PRODUCT_FLAVOUR}
SRC_BASE=${SRCDIR}
"
if [ ${FLAVOR} != ${PORT} ]; then