opnsense-ports/graphics/exiv2/files/patch-src-Makefile
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02: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)