File gimp-separate+0.5.8-makefile.patch of Package gimp-separate+
Description: Correct install directories and options in Makefile.
Author: Kyrill Detinov <lazy.kent@opensuse.org>
Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -1,9 +1,9 @@
GIMP_VER = 2.4
-#USE_LCMS2 = yes
+USE_LCMS2 = yes
PREFIX = /usr
-INSTALLDIR = $(PREFIX)/lib/gimp/2.0/plug-ins
+INSTALLDIR = $(DESTDIR)/$(PREFIX)/$(LIB)/gimp/2.0/plug-ins
#INSTALLDIR = $(HOME)/.gimp-$(GIMP_VER)/plug-ins
ifdef USE_LCMS2
@@ -36,8 +36,8 @@ MAKE = make PREFIX="$(PREFIX)"
CM = -DENABLE_COLOR_MANAGEMENT
NLS = -DENABLE_NLS -DGETTEXT_PACKAGE="\"$(GETTEXT_PACKAGE)\""
CFLAGS += $(GIMP_INCLUDE) $(GTK_INCLUDE) $(LCMS_INCLUDE) $(CM) $(NLS) \
- -DUSE_ICC_BUTTON
-LIBS = $(GIMP_LIB) $(GTK_LIB) $(LCMS_LIB) $(TIFF_LIB) $(JPEG_LIB)
+ -DUSE_ICC_BUTTON -fno-strict-aliasing
+LIBS = $(GIMP_LIB) $(GTK_LIB) $(LCMS_LIB) $(TIFF_LIB) $(JPEG_LIB) -lm
SOURCES = $(SEPARATE_SOURCES) $(IMPORT_SOURCES) \
$(ICC_COLORSPACE_SOURCES) $(EXTRA_SOURCES)
@@ -94,7 +94,7 @@ install-catalogs:
install-plugins: $(TARGETS)
install -d "$(INSTALLDIR)"
- install -c -s $^ "$(INSTALLDIR)"
+ install -c $^ "$(INSTALLDIR)"
install: install-plugins install-catalogs
Index: po/Makefile
===================================================================
--- po/Makefile.orig
+++ po/Makefile
@@ -18,7 +18,7 @@ clean:
install: $(CATALOGS)
linguas="$(LINGUAS)"; \
for lang in $$linguas; do \
- dir="$(LOCALEDIR)/$$lang/LC_MESSAGES"; \
+ dir="$(DESTDIR)/$(LOCALEDIR)/$$lang/LC_MESSAGES"; \
mkdir -p "$$dir"; \
install -m 644 -c $$lang.gmo "$$dir/$(GETTEXT_PACKAGE).mo"; \
echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \