$OpenBSD$

Fix PREFIX and install commands

Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -4,7 +4,7 @@ PKG_CONFIG?=pkg-config
 CFLAGS?=-g -O2 -Wall
 LDFLAGS?=
 
-PREFIX?=/usr/local
+PREFIX=${TRUEPREFIX}
 
 # arch hardening
 #CPPFLAGS+=-D_FORTIFY_SOURCE=2
@@ -30,8 +30,8 @@ hsetroot: hsetroot.o
 hsr-outputs: hsr-outputs.o
 
 install: hsetroot hsr-outputs
-	install -st $(PREFIX)/bin/ hsetroot
-	install -st $(PREFIX)/bin/ hsr-outputs
+	install -sm 0755 -D hsetroot $(DESTDIR)$(PREFIX)/bin/
+	install -sm 0755 -D hsr-outputs $(DESTDIR)$(PREFIX)/bin/
 
 clean:
 	rm -f *.o hsetroot hsr-outputs
