pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/gst-plugins0.10-bad (multimedia/gst-plugins...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c5d01373272
branches:  trunk
changeset: 458905:8c5d01373272
user:      mef <mef%pkgsrc.org@localhost>
date:      Thu Sep 23 13:25:43 2021 +0000

description:
(multimedia/gst-plugins0.10-bad) Adhoc fix for \#include line problem

# really adhoc fix
# intention is that the file gst-libs/gst/interfaces/photography-enumtypes.c
# has the line
#    #include "photography.h"
# instead of
#   \#include "photography.h"
# To do that, modify generating Makefile to insert sed command.
# It may be some problems on glib-mkenums (in glib2-tools)

diffstat:

 multimedia/gst-plugins0.10-bad/Makefile |  20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 770d1fabbc13 -r 8c5d01373272 multimedia/gst-plugins0.10-bad/Makefile
--- a/multimedia/gst-plugins0.10-bad/Makefile   Thu Sep 23 12:06:24 2021 +0000
+++ b/multimedia/gst-plugins0.10-bad/Makefile   Thu Sep 23 13:25:43 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2021/04/21 11:40:31 adam Exp $
+# $NetBSD: Makefile,v 1.35 2021/09/23 13:25:43 mef Exp $
 #
 
 USE_LANGUAGES= c c++
@@ -8,6 +8,24 @@
 
 COMMENT+=      Bad plugins
 
+# really adhoc fix
+# intention is that the file gst-libs/gst/interfaces/photography-enumtypes.c
+# has the line
+#    #include "photography.h"
+# instead of
+#   \#include "photography.h"
+# To do that, modify generating Makefile to insert sed command
+# It may be some problems on glib-mkenums (in glib2-tools)
+
+SED_STRING=    ',$$^ > $$@,$$^ | sed -e "s/\\\\\\\#include/\#include/" > $$@,'
+
+SUBST_CLASSES+=                        backslash
+SUBST_FILES.backslash=         gst-libs/gst/interfaces/Makefile
+SUBST_MESSAGE.backslash=       Remove unnecessary bachslash
+SUBST_SED.backslash=           -e '/enumtypes.c:/,/ a hack rule to make sure/'s${SED_STRING}
+SUBST_STAGE.backslash=         post-configure
+
+
 # builds gsettings module
 BUILDLINK_API_DEPENDS.glib2+=  glib2>=2.26.0
 



Home | Main Index | Thread Index | Old Index