Ticket #25779: patch-Makefile.diff

File patch-Makefile.diff, 1.1 KB (added by someuser12, 14 years ago)

New patch for qiv version 2.2.3

  • Makefile

    old new  
    44#######################################################################
    55
    66# Directory where qiv will be installed under.
    7 PREFIX = /usr/local
     7PREFIX = $(DESTDIR)@PREFIX@
    88
    99# Font to use for statusbar in fullscreen mode
    1010STATUSBAR_FONT = "fixed"
     
    3838
    3939# Comment this line out if you do not want to use libmagic to
    4040# identify if a file is an image
    41 MAGIC = -DHAVE_MAGIC
     41#MAGIC = -DHAVE_MAGIC
    4242
    4343######################################################################
    4444# Variables and Rules
     
    127127
    128128install: $(PROGRAM)
    129129        @echo "Installing QIV..."
     130        mkdir -p $(PREFIX)/bin
    130131        install -s -m 0755 $(PROGRAM) $(PREFIX)/bin
    131         install -m 0644 $(PROGRAM).1 $(PREFIX)/man/man1
    132         $(COMPRESS_PROG) $(PREFIX)/man/man1/$(PROGRAM).1
     132        mkdir -p $(PREFIX)/share/man/man1
     133        install -m 0644 $(PROGRAM).1 $(PREFIX)/share/man/man1
     134        $(COMPRESS_PROG) $(PREFIX)/share/man/man1/$(PROGRAM).1
    133135        @if ./qiv -f ./intro.jpg ; \
    134136        then echo "-- Test Passed --" ; \
    135137        else echo "-- Test Failed --" ; \