File libSGE-030809-makefile.patch of Package libSGE
--- Makefile
+++ Makefile
@@ -71,13 +71,13 @@
endif
install: shared
- @mkdir -p $(PREFIX_H)
- install -c -m 644 sge*.h $(PREFIX_H)
- @mkdir -p $(PREFIX)/lib
- install -c -m 644 libSGE.a $(PREFIX)/lib
- install -c libSGE.so $(PREFIX)/lib/libSGE.so.$(API_VER).$(SGE_VER)
- @cd $(PREFIX)/lib;\
+ @mkdir -p $(DESTDIR)$(PREFIX_H)
+ install -c -m 644 sge*.h $(DESTDIR)$(PREFIX_H)
+ @mkdir -p $(DESTDIR)$(PREFIX)/lib
+ install -c -m 644 libSGE.a $(DESTDIR)$(PREFIX)/lib
+ install -c libSGE.so $(DESTDIR)$(PREFIX)/lib/libSGE.so.$(API_VER).$(SGE_VER)
+ @cd $(DESTDIR)$(PREFIX)/lib;\
ln -sf libSGE.so.$(API_VER).$(SGE_VER) libSGE.so.$(API_VER);\
ln -sf libSGE.so.$(API_VER) libSGE.so
- @echo "** Headerfiles installed in $(PREFIX_H)"
- @echo "** Library files installed in $(PREFIX)/lib"
+ @echo "** Headerfiles installed in $(DESTDIR)$(PREFIX_H)"
+ @echo "** Library files installed in $(DESTDIR)$(PREFIX)/lib"
--- Makefile.conf
+++ Makefile.conf
@@ -25,7 +25,7 @@
PREFIX_H =$(shell sdl-config --prefix)/include/SDL
# Flags passed to the compiler
-CFLAGS =-Wall -O3 -ffast-math
+CFLAGS :=-Wall -O3 -ffast-math $(CFLAGS)
SGE_CFLAGS =$(shell sdl-config --cflags)
# Uncomment to make some more optimizations
#CFLAGS =-Wall -O9 -ffast-math -march=i686