Ticket #25866: patch-Makefile.diff

File patch-Makefile.diff, 1.1 KB (added by fclaire@…, 14 years ago)
  • Makefile

    old new  
    1 PREFIX = /usr/local
     1PREFIX = /opt/local
    22INSTALL = install
    33MANPAGE_XSL = /sw/share/xml/xsl/docbook-xsl/manpages/docbook.xsl
    44
     
    1111OPTIMIZE = -O2
    1212#PROFILE = -pg
    1313
    14 MACOS_LDOPTS = -L/sw/lib
    15 MACOS_CCOPTS = -I/sw/include
     14MACOS_LDOPTS = -L/opt/local/lib
     15MACOS_CCOPTS = -I/opt/local/include
    1616
    1717FORMATDEFS = -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF
    1818
     
    5252        $(MAKE) -C rwimg
    5353
    5454install : metapixel metapixel.1
    55         $(INSTALL) -d $(BINDIR)
    56         $(INSTALL) metapixel $(BINDIR)
    57         $(INSTALL) metapixel-prepare $(BINDIR)
    58         $(INSTALL) metapixel.1 $(MANDIR)/man1
    59         $(INSTALL) metapixel-imagesize $(BINDIR)
    60         $(INSTALL) metapixel-sizesort $(BINDIR)
     55        $(INSTALL) -d $(DESTDIR)$(BINDIR)
     56        $(INSTALL) metapixel $(DESTDIR)$(BINDIR)
     57        $(INSTALL) metapixel-prepare $(DESTDIR)$(BINDIR)
     58        $(INSTALL) metapixel.1 $(DESTDIR)$(MANDIR)/man1
     59        $(INSTALL) metapixel-imagesize $(DESTDIR)$(BINDIR)
     60        $(INSTALL) metapixel-sizesort $(DESTDIR)$(BINDIR)
    6161
    6262clean :
    6363        rm -f *.o metapixel convert metapixel-imagesize *~