pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

electron32: add PKG_FAIL_REASON to platform.mk



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Thu Mar 6 19:35:05 2025 +0100
Changeset:	a188eb5acdb06f1d19bffc38adf8c938a07585fd

Modified Files:
	electron32/platform.mk

Log Message:
electron32: add PKG_FAIL_REASON to platform.mk

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a188eb5acdb06f1d19bffc38adf8c938a07585fd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 electron32/platform.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diffs:
diff --git a/electron32/platform.mk b/electron32/platform.mk
index 96879098e4..bf74fc491e 100644
--- a/electron32/platform.mk
+++ b/electron32/platform.mk
@@ -15,6 +15,12 @@ ELECTRON=		electron${ELECTRON_MAJOR}
 # - "dependency" if the package uses electron as dependency
 USE_ELECTRON?=		electronpkg
 
+.if !empty(USE_ELECTRON:Melectronpkg) && empty(PKGBASE:M${ELECTRON})
+PKG_FAIL_REASON+=	"USE_ELECTRON not defined. Should be \"bundled\" or \"dependency\"."
+.elif !empty(PKGBASE:M${ELECTRON}) && empty(USE_ELECTRON:Melectronpkg)
+PKG_FAIL_REASON+=	"USE_ELECTRON is defined for ${PKGBASE} package."
+.endif
+
 TOOL_DEPENDS+=		nodejs-${NODE_VERSION_DEFAULT}.*:../../lang/nodejs${NODE_VERSION_DEFAULT}
 .if ${USE_ELECTRON} == "dependency"
 DEPENDS+=		${ELECTRON}>=${ELECTRON_VER}:../../wip/${ELECTRON}
@@ -40,9 +46,9 @@ FILES_SUBST+=		ELECTRONBIN=${ELECTRONBIN}
 .if ${USE_ELECTRON} == "bundled" || ${USE_ELECTRON} == "electronpkg"
 
 PLIST_VARS+=		swiftshader
-.if ${MACHINE_ARCH} == "x86_64"
+.  if ${MACHINE_ARCH} == "x86_64"
 PLIST.swiftshader=	yes
-.endif
+.  endif
 
 .include "../../archivers/bzip2/buildlink3.mk"
 .include "../../audio/libopus/buildlink3.mk"


Home | Main Index | Thread Index | Old Index