$OpenBSD: patch-Makefile,v 1.2 2019/03/20 13:58:23 sthen Exp $
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -2,7 +2,7 @@
 
 VERSION = $(shell sed -n <NEWS '/::/s/^\([^:]*\).*/\1/p' | head -1)
 
-CFLAGS = -DVERSION=\"$(VERSION)\" -O2
+CFLAGS += -DVERSION=\"$(VERSION)\"
 LDFLAGS = -s
 
 SOURCES = 437_l1.c gif2png.c gifread.c memory.c version.c
@@ -41,9 +41,9 @@ prefix?=/usr
 
 install: gif2png gif2png.1 web2png.1
 	mkdir -p $(prefix)/bin
-	mkdir -p $(prefix)/share/man/man1
+	mkdir -p $(prefix)/man/man1
 	cp gif2png web2png $(prefix)/bin/
-	cp gif2png.1 web2png.1 $(prefix)/share/man/man1/
+	cp gif2png.1 web2png.1 $(prefix)/man/man1/
 
 uninstall:
 	rm $(prefix)/bin/gif2png $(prefix)/bin/web2png
