# HG changeset patch # User John Tsiombikas # Date 1317770828 -10800 # Node ID 0c60394f6737682edfb74e5ef17fe6c645b412d1 # Parent 6bbf23363c6cb6736b0fa12800e8acb8618ca187 fixed to work on freebsd diff -r 6bbf23363c6c -r 0c60394f6737 Makefile.in --- a/Makefile.in Tue Sep 20 15:22:52 2011 +0300 +++ b/Makefile.in Wed Oct 05 02:27:08 2011 +0300 @@ -23,8 +23,8 @@ endif CC = gcc -CFLAGS = -pedantic -Wall -g -fPIC $(ft2_cflags) -LDFLAGS = $(ft2_libs) $(libgl) +CFLAGS = -pedantic -Wall -g -fPIC -I$(PREFIX)/include $(ft2_cflags) +LDFLAGS = -L$(PREFIX)/lib $(ft2_libs) $(libgl) .PHONY: all all: $(lib_a) $(lib_so) @@ -55,13 +55,15 @@ cp $(lib_a) $(PREFIX)/lib/$(lib_a) cp $(lib_so) $(PREFIX)/lib/$(lib_so) cp src/drawtext.h $(PREFIX)/include/drawtext.h - [ -n "$(linkname)" ] && rm -f $(PREFIX)/lib/$(linkname) || true - [ -n "$(linkname)" ] && cd $(PREFIX)/lib && ln -s $(lib_so) $(linkname) || true + [ -n "$(linkname)" ] && rm -f $(PREFIX)/lib/$(linkname) \ + && cd $(PREFIX)/lib && ln -s $(lib_so) $(linkname) \ + && ln -s $(lib_so) $(soname) || true .PHONY: uninstall uninstall: rm -f $(PREFIX)/lib/$(lib_a) rm -f $(PREFIX)/lib/$(lib_so) - rm -f $(PREFIX)/lib/$(name).so + rm -f $(PREFIX)/lib/$(linkname) + rm -f $(PREFIX)/lib/$(soname) rm -f $(PREFIX)/include/drawtext.h diff -r 6bbf23363c6c -r 0c60394f6737 examples/simple/Makefile --- a/examples/simple/Makefile Tue Sep 20 15:22:52 2011 +0300 +++ b/examples/simple/Makefile Wed Oct 05 02:27:08 2011 +0300 @@ -2,8 +2,8 @@ bin = simple CC = gcc -CFLAGS = -pedantic -Wall -g -I../../src -LDFLAGS = -L. -ldrawtext $(libgl) +CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include +LDFLAGS = -L. -L/usr/local/lib -ldrawtext $(libgl) font = serif.ttf diff -r 6bbf23363c6c -r 0c60394f6737 examples/unicode/Makefile --- a/examples/unicode/Makefile Tue Sep 20 15:22:52 2011 +0300 +++ b/examples/unicode/Makefile Wed Oct 05 02:27:08 2011 +0300 @@ -2,8 +2,8 @@ bin = unicode CC = gcc -CFLAGS = -pedantic -Wall -g -I../../src -LDFLAGS = -L. -ldrawtext $(libgl) +CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include +LDFLAGS = -L. -L/usr/local/lib -ldrawtext $(libgl) fonts = serif.ttf cjk.ttf klingon.ttf