Convert REINPLACE_CMD to patch file
This commit is contained in:
parent
53f945c5cd
commit
86a479ffcd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531126
2 changed files with 14 additions and 2 deletions
|
@ -25,9 +25,8 @@ DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
|||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${ARCH} == i386 || ${ARCH} == powerpc
|
||||
@${REINPLACE_CMD} -e 's|deadbeef||; s|f00baa23||' ${WRKSRC}/lo/lo_macros.h
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-32bit
|
||||
.endif
|
||||
|
||||
post-install-DOCS-on:
|
||||
|
|
13
audio/liblo/files/extra-patch-32bit
Normal file
13
audio/liblo/files/extra-patch-32bit
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- lo/lo_macros.h.orig 2018-07-05 18:48:15 UTC
|
||||
+++ lo/lo_macros.h
|
||||
@@ -46,8 +46,8 @@ extern "C" {
|
||||
|
||||
/* an internal value, ignored in transmission but check against LO_MARKER in the
|
||||
* argument list. Used to do primitive bounds checking */
|
||||
-# define LO_MARKER_A (void *)0xdeadbeefdeadbeefLLU
|
||||
-# define LO_MARKER_B (void *)0xf00baa23f00baa23LLU
|
||||
+# define LO_MARKER_A (void *)0xdeadbeefLLU
|
||||
+# define LO_MARKER_B (void *)0xf00baa23LLU
|
||||
|
||||
#define LO_ARGS_END LO_MARKER_A, LO_MARKER_B
|
||||
|
Loading…
Reference in a new issue