$OpenBSD: patch-Makefile,v 1.1.1.1 2009/06/03 22:28:37 landry Exp $
--- Makefile.orig	Tue Apr 14 04:54:18 2009
+++ Makefile	Tue Jun  2 10:05:07 2009
@@ -4,7 +4,7 @@ build: index.theme
 
 # intltool merging
 index.theme:
-	for f in `find -name *.icon.in -o -name *.theme.in`; do \
+	for f in `find . -name *.icon.in -o -name *.theme.in`; do \
 	    intltool-merge -d -u po $$f $${f%.in}; \
 	done
 	cd po; intltool-update -p --verbose -g $(GETTEXT_DOMAIN)
@@ -14,22 +14,24 @@ clean:
 	rm -f po/*.pot index.theme
 
 install: index.theme
+	find [0-9]* scalable -type d -exec \
+	    install -d -m 755 $$DESTDIR/${PREFIX}/share/icons/Human/'{}' \;
 	find [0-9]* scalable \( -name '*.png' -o -name '*.svg' -o -name '*.icon' \) -exec \
-	    install -D -m 644 '{}' $$DESTDIR/usr/share/icons/Human/'{}' \;
+	    install -m 644 '{}' $$DESTDIR/${PREFIX}/share/icons/Human/'{}' \;
 
 	# run icon-naming-utils
-	for d in $$DESTDIR/usr/share/icons/Human/*; do \
-	    (cd $$d; for c in *; do /usr/lib/icon-naming-utils/icon-name-mapping -c $$c; done); \
+	for d in $$DESTDIR/${PREFIX}/share/icons/Human/*; do \
+	    (cd $$d; for c in *; do ${LOCALBASE}/libexec/icon-name-mapping -c $$c; done); \
 	done
 
 	# install mo files
 	for f in po/*.po; do \
-	    D=$$DESTDIR/usr/share/locale/`basename $$f .po`/LC_MESSAGES/; \
+	    D=$$DESTDIR/${PREFIX}/share/locale/`basename $$f .po`/LC_MESSAGES/; \
 	    install -d -m 755 $$D; \
 	    msgfmt -o $$D/$(GETTEXT_DOMAIN).mo $$f; \
 	done
 
 	# install index
-	install -D -m 644 index.theme $$DESTDIR/usr/share/icons/Human/index.theme
+	install -m 644 index.theme $$DESTDIR/${PREFIX}/share/icons/Human/index.theme
 
 .PHONY: build i18n clean install
