audtty-0.1.9a-cc-and-destdir.patch 1018 B

12345678910111213141516171819202122232425262728293031
  1. diff -ur audtty.orig/Makefile.in audtty/Makefile.in
  2. --- audtty.orig/Makefile.in 2008-05-08 09:50:26.000000000 +0300
  3. +++ audtty/Makefile.in 2008-07-05 09:36:31.000000000 +0300
  4. @@ -20,18 +20,18 @@
  5. all: audtty
  6. audtty: ${BINS}
  7. - cc -Wall -lncurses -laudclient ${LDFLAGS} -o audtty $(BINS)
  8. + $(CC) -Wall ${LDFLAGS} -o audtty $(BINS) -lncurses -laudclient
  9. .c.o:
  10. - cc -Wall ${AUDACIOUS_CFLAGS} ${CFLAGS} -o $@ -c $<
  11. + $(CC) -Wall ${AUDACIOUS_CFLAGS} ${CFLAGS} -o $@ -c $<
  12. install: audtty
  13. - mkdir -p ${bindir}
  14. - install -m 0755 audtty ${bindir}/audtty
  15. - mkdir -p ${mandir}
  16. - install -m 0644 audtty.1 ${mandir}/audtty.1
  17. - mkdir -p ${sysconfdir}
  18. - install -m 0644 audtty.conf ${sysconfdir}/audtty.conf
  19. + mkdir -p $(DESTDIR)${bindir}
  20. + install -m 0755 audtty $(DESTDIR)${bindir}/audtty
  21. + mkdir -p $(DESTDIR)${mandir}
  22. + install -m 0644 audtty.1 $(DESTDIR)${mandir}/audtty.1
  23. + mkdir -p $(DESTDIR)${sysconfdir}
  24. + install -m 0644 audtty.conf $(DESTDIR)${sysconfdir}/audtty.conf
  25. uninstall:
  26. rm ${bindir}/audtty || false