# This is an easy patch to add DESTDIR support to the Makefiles in splix # Written by Robby Workman - http://rlworkman.net # Permission is granted to use the patch as you see fit diff -Nur splix-1.0.1-1.orig/ppd/Makefile splix-1.0.1-1/ppd/Makefile --- splix-1.0.1-1.orig/ppd/Makefile 2007-02-10 08:20:17.000000000 -0600 +++ splix-1.0.1-1/ppd/Makefile 2007-06-19 16:19:16.855484608 -0500 @@ -37,11 +37,11 @@ .PHONY: install: - install -d -m 755 ${CUPSPPD}/samsung + install -d -m 755 $(DESTDIR)/${CUPSPPD}/samsung for filename in ${DRIVERS}; do \ - install -m 644 $$filename.${DRIVERSEXT} ${CUPSPPD}/samsung;\ + install -m 644 $$filename.${DRIVERSEXT} $(DESTDIR)/${CUPSPPD}/samsung;\ for lang in ${LANGUAGES}; do \ - install -m 644 $$filename$$lang.${DRIVERSEXT} ${CUPSPPD}/samsung;\ + install -m 644 $$filename$$lang.${DRIVERSEXT} $(DESTDIR)/${CUPSPPD}/samsung;\ done; \ done \ diff -Nur splix-1.0.1-1.orig/src/Makefile splix-1.0.1-1/src/Makefile --- splix-1.0.1-1.orig/src/Makefile 2007-02-10 08:20:18.000000000 -0600 +++ splix-1.0.1-1/src/Makefile 2007-06-19 16:19:35.356307118 -0500 @@ -24,7 +24,7 @@ $(CXX) $(CXXFLAGS) -c $< install: rastertospl2 - install -m 755 -s rastertospl2 ${CUPSFILTER} + install -m 755 -s rastertospl2 $(DESTDIR)/${CUPSFILTER} .PHONY: clean distclean clean: