ae6b83f99d
magic. Fixes build on macOS (Monterey and Snow Leopard tested) when file is not already installed.
15 lines
389 B
Text
15 lines
389 B
Text
$NetBSD: patch-magic_myfile,v 1.2 2022/01/29 13:06:26 schmonz Exp $
|
|
|
|
Use the just-built libmagic, not whatever might be already installed.
|
|
|
|
--- magic/myfile.orig 2022-01-29 13:08:32.000000000 +0000
|
|
+++ magic/myfile
|
|
@@ -0,0 +1,8 @@
|
|
+#!@SH@
|
|
+
|
|
+set -e
|
|
+
|
|
+magicdir=$(pwd)
|
|
+cd ../src/.libs
|
|
+DYLD_LIBRARY_PATH=. LD_PRELOAD=./libmagic.so.1 ./file -C -m "${magicdir}/$1"
|
|
+cp magic.mgc ${magicdir}
|