summaryrefslogtreecommitdiff
path: root/homebrew/fileformula/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/fileformula/patches.sh')
-rwxr-xr-xhomebrew/fileformula/patches.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/homebrew/fileformula/patches.sh b/homebrew/fileformula/patches.sh
new file mode 100755
index 000000000..b9fc8cc07
--- /dev/null
+++ b/homebrew/fileformula/patches.sh
@@ -0,0 +1,24 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/src/Makefile.in b/src/Makefile.in
+index c096c71..583a0ba 100644
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -115,7 +115,6 @@ libmagic_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ PROGRAMS = $(bin_PROGRAMS)
+ am_file_OBJECTS = file.$(OBJEXT) seccomp.$(OBJEXT)
+ file_OBJECTS = $(am_file_OBJECTS)
+-file_DEPENDENCIES = libmagic.la
+ AM_V_P = $(am__v_P_@AM_V@)
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+ am__v_P_0 = false
+@@ -311,7 +310,7 @@ libmagic_la_LDFLAGS = -no-undefined -version-info 1:0:0
+ @MINGW_TRUE@MINGWLIBS = -lgnurx -lshlwapi
+ libmagic_la_LIBADD = $(LTLIBOBJS) $(MINGWLIBS)
+ file_SOURCES = file.c seccomp.c
+-file_LDADD = libmagic.la
++file_LDADD = $(LDADD)
+ CLEANFILES = magic.h
+ EXTRA_DIST = magic.h.in
+ HDR = $(top_srcdir)/src/magic.h.in
+EOF