patch-Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. $OpenBSD: patch-Makefile,v 1.4 2015/12/24 21:54:09 mmcc Exp $
  2. --- Makefile.orig Sun Dec 20 07:21:25 2015
  3. +++ Makefile Wed Dec 23 20:01:02 2015
  4. @@ -11,11 +11,11 @@ LIBS := -lX11 -lImlib2
  5. # optional dependencies:
  6. # giflib: gif animations
  7. - CPPFLAGS += -DHAVE_GIFLIB
  8. - LIBS += -lgif
  9. +CPPFLAGS += -DHAVE_GIFLIB
  10. +LIBS += -lgif
  11. # libexif: jpeg auto-orientation, exif thumbnails
  12. - CPPFLAGS += -DHAVE_LIBEXIF
  13. - LIBS += -lexif
  14. +CPPFLAGS += -DHAVE_LIBEXIF
  15. +LIBS += -lexif
  16. .PHONY: clean install uninstall
  17. @@ -30,7 +30,7 @@ $(OBJ): Makefile
  18. -include $(DEP)
  19. -%.o: %.c
  20. +.c.o:
  21. $(CC) $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -MMD -MP -c -o $@ $<
  22. config.h:
  23. @@ -43,15 +43,15 @@ clean:
  24. rm -f $(OBJ) $(DEP) sxiv
  25. install: all
  26. - mkdir -p $(DESTDIR)$(PREFIX)/bin
  27. - cp sxiv $(DESTDIR)$(PREFIX)/bin/
  28. - chmod 755 $(DESTDIR)$(PREFIX)/bin/sxiv
  29. - mkdir -p $(DESTDIR)$(MANPREFIX)/man1
  30. - sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
  31. - chmod 644 $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
  32. - mkdir -p $(DESTDIR)$(PREFIX)/share/sxiv/exec
  33. - cp exec/* $(DESTDIR)$(PREFIX)/share/sxiv/exec/
  34. - chmod 755 $(DESTDIR)$(PREFIX)/share/sxiv/exec/*
  35. + ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
  36. + ${BSD_INSTALL_PROGRAM} sxiv ${DESTDIR}${PREFIX}/bin
  37. + ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
  38. + sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" sxiv.1 > sxiv.1.tmp
  39. + mv sxiv.1.tmp sxiv.1
  40. + ${BSD_INSTALL_MAN} sxiv.1 ${DESTDIR}${MANPREFIX}/man1
  41. + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/sxiv
  42. + ${BSD_INSTALL_DATA} exec/image-info ${DESTDIR}${PREFIX}/share/examples/sxiv
  43. + ${BSD_INSTALL_DATA} exec/key-handler ${DESTDIR}${PREFIX}/share/examples/sxiv
  44. uninstall:
  45. rm -f $(DESTDIR)$(PREFIX)/bin/sxiv