patch-Makefile 887 B

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: patch-Makefile,v 1.4 2010/10/13 17:34:26 jasper Exp $
  2. --- Makefile.orig Sun Jan 11 18:15:02 2009
  3. +++ Makefile Sat Apr 10 10:38:33 2010
  4. @@ -1,9 +1,8 @@
  5. PKGNAME = gkrellweather
  6. VERSION = 2.0.8
  7. -CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
  8. -LIBS = `pkg-config gtk+-2.0 --libs`
  9. -LFLAGS = -shared
  10. -PREFIX = /usr/local
  11. +CFLAGS += -fPIC `pkg-config gkrellm --cflags`
  12. +LIBS = `pkg-config gkrellm --libs`
  13. +LFLAGS = -shared -pthread
  14. LOCALEDIR := $(PREFIX)/share/locale
  15. @@ -14,13 +13,11 @@ endif
  16. CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
  17. export PKGNAME LOCALEDIR
  18. -CC = gcc
  19. -
  20. OBJS = gkrellweather.o
  21. gkrellweather.so: $(OBJS)
  22. (cd po && ${MAKE} all )
  23. - $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
  24. + $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS)
  25. clean:
  26. (cd po && ${MAKE} clean )