36583f5da7
from Gonzalo L. R. with some tweaks.
58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.7 2012/03/29 06:05:14 ajacoutot Exp $
|
|
--- Makefile.orig Fri May 13 15:11:24 2011
|
|
+++ Makefile Thu Mar 29 08:01:31 2012
|
|
@@ -4,7 +4,7 @@
|
|
#######################################################################
|
|
|
|
# Directory where qiv will be installed under.
|
|
-PREFIX = /usr/local
|
|
+PREFIX ?= /usr/local
|
|
|
|
# Font to use for statusbar in fullscreen mode
|
|
STATUSBAR_FONT = "fixed"
|
|
@@ -30,7 +30,7 @@ GETOPT_LONG = -DHAVE_GETOPT_LONG
|
|
|
|
# This program will be run on the manual page after it is installed.
|
|
# If you don't want to compress the manpage, change it to 'true'.
|
|
-COMPRESS_PROG = gzip -9f
|
|
+COMPRESS_PROG = true
|
|
|
|
# Comment this line out if your system doesn't have libXinerama
|
|
# installed (for centering on dual-screen)
|
|
@@ -45,11 +45,11 @@ MAGIC = -DHAVE_MAGIC
|
|
# Do not edit below here!
|
|
######################################################################
|
|
|
|
-CC = gcc
|
|
+CC ?= gcc
|
|
#CFLAGS = -O -g -Wall
|
|
-CFLAGS = -O2 -Wall \
|
|
- -fcaller-saves -ffast-math -fno-strength-reduce \
|
|
- -fthread-jumps #-march=pentium #-DSTAT_MACROS_BROKEN
|
|
+#CFLAGS = -O2 -Wall \
|
|
+# -fcaller-saves -ffast-math -fno-strength-reduce \
|
|
+# -fthread-jumps #-march=pentium #-DSTAT_MACROS_BROKEN
|
|
#CFLAGS = -O2 -Wall -fomit-frame-pointer -finline-functions \
|
|
# -fcaller-saves -ffast-math -fno-strength-reduce \
|
|
# -fthread-jumps #-march=pentium #-DSTAT_MACROS_BROKEN
|
|
@@ -83,7 +83,7 @@ OBJS_G += lib/getopt.g lib/getopt1.g
|
|
endif
|
|
|
|
ifdef GTD_XINERAMA
|
|
-LIBS += -L/usr/X11R6/lib -lXinerama
|
|
+LIBS += -L${X11BASE}/lib -lXinerama
|
|
endif
|
|
|
|
ifdef MAGIC
|
|
@@ -138,10 +138,6 @@ install: $(PROGRAM)
|
|
fi
|
|
install -m 0644 $(PROGRAM).1 $(PREFIX)/man/man1
|
|
$(COMPRESS_PROG) $(PREFIX)/man/man1/$(PROGRAM).1
|
|
- @if ./qiv -f ./intro.jpg ; \
|
|
- then echo "-- Test Passed --" ; \
|
|
- else echo "-- Test Failed --" ; \
|
|
- fi
|
|
@echo "\nDont forget to look into the \"qiv-command\" file and install it!\n-> cp qiv-command.example /usr/local/bin/qiv-command\n\n"
|
|
|
|
# the end... ;-)
|