2014-08-23 14:33:07 +00:00
|
|
|
$OpenBSD: patch-Makefile,v 1.8 2014/08/23 14:33:07 kirby Exp $
|
|
|
|
--- Makefile.orig Fri Dec 20 04:50:37 2013
|
|
|
|
+++ Makefile Thu Aug 14 14:06:52 2014
|
2012-03-29 06:05:14 +00:00
|
|
|
@@ -4,7 +4,7 @@
|
2005-02-05 16:40:29 +00:00
|
|
|
#######################################################################
|
2001-04-13 20:56:05 +00:00
|
|
|
|
2012-03-29 06:05:14 +00:00
|
|
|
# Directory where qiv will be installed under.
|
2001-04-13 20:56:05 +00:00
|
|
|
-PREFIX = /usr/local
|
2012-03-29 06:05:14 +00:00
|
|
|
+PREFIX ?= /usr/local
|
|
|
|
|
2001-04-13 20:56:05 +00:00
|
|
|
# Font to use for statusbar in fullscreen mode
|
2014-08-23 14:33:07 +00:00
|
|
|
STATUSBAR_FONT = "Monospace 9"
|
2012-03-29 06:05:14 +00:00
|
|
|
@@ -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
|
2001-04-13 20:56:05 +00:00
|
|
|
|
2014-08-23 14:33:07 +00:00
|
|
|
# Comment this line out if your system doesn't have lcms2 installed
|
|
|
|
# (for minimal Color Management support)
|
|
|
|
@@ -49,11 +49,11 @@ EXIF = -DHAVE_EXIF
|
2002-10-27 01:06:48 +00:00
|
|
|
# Do not edit below here!
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
-CC = gcc
|
2012-03-29 06:05:14 +00:00
|
|
|
+CC ?= gcc
|
2014-08-23 14:33:07 +00:00
|
|
|
#CFLAGS = -O0 -g -Wall
|
2009-08-20 18:58:39 +00:00
|
|
|
-CFLAGS = -O2 -Wall \
|
2002-12-22 03:45:52 +00:00
|
|
|
- -fcaller-saves -ffast-math -fno-strength-reduce \
|
|
|
|
- -fthread-jumps #-march=pentium #-DSTAT_MACROS_BROKEN
|
2012-03-29 06:05:14 +00:00
|
|
|
+#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
|
2014-08-23 14:33:07 +00:00
|
|
|
@@ -159,10 +159,6 @@ install: $(PROGRAM)
|
|
|
|
install -d -m 0755 $(PREFIX)/share/applications; \
|
2012-03-29 06:05:14 +00:00
|
|
|
fi
|
2014-08-23 14:33:07 +00:00
|
|
|
install -m 0644 qiv.desktop $(PREFIX)/share/applications/qiv.desktop
|
2005-02-05 16:40:29 +00:00
|
|
|
- @if ./qiv -f ./intro.jpg ; \
|
2001-04-13 20:56:05 +00:00
|
|
|
- then echo "-- Test Passed --" ; \
|
|
|
|
- else echo "-- Test Failed --" ; \
|
|
|
|
- fi
|
2014-08-23 14:33:07 +00:00
|
|
|
@echo "\nDont forget to look into the \"qiv-command\" file and install it!\n-> cp qiv-command.example $(PREFIX)/bin/qiv-command\n\n"
|
2001-04-13 20:56:05 +00:00
|
|
|
|
2009-08-20 18:58:39 +00:00
|
|
|
# the end... ;-)
|