Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2021 18:35:55 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r564974 - in head/x11/nvidia-settings: . files
Message-ID:  <202102111835.11BIZtH4068451@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Feb 11 18:35:55 2021
New Revision: 564974
URL: https://svnweb.freebsd.org/changeset/ports/564974

Log:
  When listing a directory as a target's order-only-prerequisite, there must
  be a target to handle this dependency, which I've wrongly assumed there is.
  Switch to explicit directory creation as part of the target recipe for now.
  
  Reported by:	leres

Added:
  head/x11/nvidia-settings/files/
  head/x11/nvidia-settings/files/patch-src_Makefile   (contents, props changed)
Modified:
  head/x11/nvidia-settings/Makefile

Modified: head/x11/nvidia-settings/Makefile
==============================================================================
--- head/x11/nvidia-settings/Makefile	Thu Feb 11 18:11:06 2021	(r564973)
+++ head/x11/nvidia-settings/Makefile	Thu Feb 11 18:35:55 2021	(r564974)
@@ -50,8 +50,6 @@ post-patch:	.SILENT
 		${WRKSRC}/doc/nvidia-settings.desktop
 	${REINPLACE_CMD} -e 's|/usr/share/nvidia/|${LOCALBASE}/share/doc/NVIDIA_GLX-1.0/|' \
 		${WRKSRC}/src/gtk+-2.x/ctkappprofile.c
-	${REINPLACE_CMD} -e 's,notdir $$(1)).h:,& | $$$$(OUTPUTDIR),' \
-		${WRKSRC}/src/Makefile
 
 post-install:	.SILENT
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnvidia-gtk2.so.${PORTVERSION}

Added: head/x11/nvidia-settings/files/patch-src_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/nvidia-settings/files/patch-src_Makefile	Thu Feb 11 18:35:55 2021	(r564974)
@@ -0,0 +1,10 @@
+--- src/Makefile.orig	2021-01-26 17:16:45 UTC
++++ src/Makefile
+@@ -242,6 +242,7 @@ endif
+ 
+ define BINARY_DATA_HEADER_RULE
+   $$(OUTPUTDIR)/$(notdir $(1)).h:
++	$(at_if_quiet)$(MKDIR) $$(OUTPUTDIR)
+ 	$(at_if_quiet){ \
+ 	  $$(PRINTF) "extern const char _binary_$(subst .,_,$(notdir $(1)))_start[];\n"; \
+ 	  $$(PRINTF) "extern const char _binary_$(subst .,_,$(notdir $(1)))_end[];\n"; \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102111835.11BIZtH4068451>