Adapted makefile for new imagemagick versions

This commit is contained in:
louis 2013-02-07 14:25:09 +01:00
parent 14f677a767
commit 063094f442

View File

@ -43,10 +43,13 @@ SOFILE = libvdr-$(PLUGIN).so
### Includes and Defines (add further entries here):
INCLUDES +=
INCLUDES += -I/usr/include/ImageMagick
INCLUDES += $(shell pkg-config --cflags-only-I Magick++)
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
DEFINES += -DMAGICKCORE_HDRI_ENABLE=0
DEFINES += -DMAGICKCORE_QUANTUM_DEPTH=16
LIBS += $(shell pkg-config --libs Magick++)
### The object files (add further files here):
@ -98,7 +101,7 @@ install-i18n: $(I18Nmsgs)
### Targets:
$(SOFILE): $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -lMagick++ -o $@
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@
install-lib: $(SOFILE)
install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)