patch-common_mak 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. --- common.mak.orig Thu Mar 26 22:01:02 2009
  2. +++ common.mak Wed Apr 15 18:36:48 2009
  3. @@ -31,16 +31,16 @@ COMMON_CFLAGS += -DCYGWIN
  4. endif
  5. ifeq ($(SQLITE), true)
  6. - COMMON_CFLAGS += -I/usr/local/include -DHAVE_SQLITE
  7. + COMMON_CFLAGS += -I${LOCALBASE}/include -DHAVE_SQLITE
  8. else
  9. ifeq ($(sqlite), true)
  10. - COMMON_CFLAGS += -I/usr/local/include -DHAVE_SQLITE
  11. + COMMON_CFLAGS += -I${LOCALBASE}/include -DHAVE_SQLITE
  12. else
  13. ifeq ($(SQLITE), TRUE)
  14. - COMMON_CFLAGS += -I/usr/local/include -DHAVE_SQLITE
  15. + COMMON_CFLAGS += -I${LOCALBASE}/include -DHAVE_SQLITE
  16. else
  17. ifeq ($(sqlite), TRUE)
  18. - COMMON_CFLAGS += -I/usr/local/include -DHAVE_SQLITE
  19. + COMMON_CFLAGS += -I${LOCALBASE}/include -DHAVE_SQLITE
  20. endif
  21. endif
  22. endif
  23. @@ -70,7 +70,7 @@ OPTFLAGS = -D_FILE_OFFSET_BITS=64
  24. CFLAGS ?= -g -W -Wall -Werror -O3
  25. CFLAGS += $(OPTFLAGS) $(REVFLAGS) $(COMMON_CFLAGS)
  26. -prefix = /usr/local
  27. +prefix = ${LOCALBASE}
  28. bindir = $(prefix)/bin
  29. sbindir = $(prefix)/sbin
  30. mandir = $(prefix)/man/man1