freebsd-ports/graphics/exiv2/files/patch-src-Makefile
John Marino 919bf169e2 graphics/exiv2: Not jobs safe, so make it jobs safe
A dependency on a header was not listed in the vendor makefile, so it
is possible that exiv2 breaks on multi-job building.  This fixes at least
that specific problem.

PR:		197749
Submitted by:	marino
approved by:	maintainer timeout
2015-03-11 18:37:04 +00:00

20 lines
731 B
Text

--- src/Makefile.orig 2013-12-01 12:13:42 UTC
+++ src/Makefile
@@ -215,7 +215,7 @@ ifdef DEP_TRACKING
endif
# Be sure to rewrite exv_conf.h before compiling anything
-$(SRC): exv_conf.h
+$(SRC) $(EXIV2SRC): exv_conf.h
exv_conf.h: $(top_srcdir)/config/config.h
LC_ALL=C sed 's/#define \([A-Z]\)/#define EXV_\1/; s/#undef \([A-Z]\)/#undef EXV_\1/' < $< > $@
@@ -231,7 +231,7 @@ lib: $(OBJ)
$(EXIV2BIN): lib $(EXIV2OBJ) $(EXIV2COBJ)
-mkdir ../bin >/dev/null 2>&1
- @$(LIBTOOL) --mode=link $(LINK.cc) -o $@ $(LIBRARY) $(EXIV2OBJ) $(EXIV2COBJ) -rpath $(libdir)
+ @$(LIBTOOL) --mode=link $(LINK.cc) -o $@ $(LIBRARY) $(EXIV2OBJ) $(EXIV2COBJ) -rpath $(libdir) $(LIBS)
install-header:
$(INSTALL_DIRS) $(DESTDIR)$(incdir)