1 | | --- makefile.osx.orig 2007-09-25 01:01:57.000000000 +0200 |
2 | | +++ makefile.osx 2007-09-25 01:03:53.000000000 +0200 |
3 | | @@ -42,7 +42,7 @@ |
4 | | TEMPLATE_NAME = Allegro\ Application |
5 | | TEMPLATE = $(TEMPLATE_DIR)/$(TEMPLATE_NAME) |
6 | | |
7 | | -MAN_DIR = /usr/local/man |
8 | | +MAN_DIR = $(DESTDIR)$(PREFIX)/share/man |
9 | | |
10 | | |
11 | | ifdef STATICLINK |
12 | | @@ -58,7 +58,7 @@ |
13 | | |
14 | | DYLINK_FLAGS = -compatibility_version $(compatibility_version) -current_version $(shared_version) |
15 | | |
16 | | -INSTALL_NAME = -install_name lib$(VERSION)-$(shared_major_minor).dylib |
17 | | +INSTALL_NAME = -install_name $(PREFIX)/lib/lib$(VERSION)-$(shared_version).dylib |
18 | | INSTALL_NAME_EMBED = -install_name "`echo "@executable_path/../Frameworks/$(FRAMEWORK_NAME).framework/Versions/$(shared_version)/$(FRAMEWORK_NAME)" | sed 's!//*!/!g'`" |
19 | | |
20 | | ifdef EMBED |
21 | | @@ -84,7 +84,7 @@ |
22 | | ifdef WARNMODE |
23 | | WFLAGS = -Wall -W -Werror -Wno-unused -Wno-long-double |
24 | | else |
25 | | - WFLAGS = -Wall -Wno-unused -Wno-long-double |
26 | | + WFLAGS = -Wall -Wno-unused |
27 | | endif |
28 | | |
29 | | ifdef TARGET_ARCH_COMPAT |
30 | | @@ -169,7 +169,7 @@ |
31 | | # -------- rules for installing and removing the library files -------- |
32 | | |
33 | | DESTDIR = |
34 | | -INSTALLDIR = $(DESTDIR)/usr/local |
35 | | +INSTALLDIR = $(DESTDIR)$(PREFIX) |
36 | | BINDIR = bin |
37 | | LIBDIR = lib |
38 | | INCDIR = include |
39 | | @@ -203,11 +203,11 @@ |
40 | | else |
41 | | @sed -e "s/@LINK_WITH_STATIC_LIBS@/no/" misc/allegro-config.in >temp |
42 | | endif |
43 | | - @sed -e "s#@prefix@#$(INSTALLDIR)#" temp > temp2 |
44 | | - @sed -e "s#@INCLUDE_PREFIX@#$(INSTALLDIR)#" temp2 > temp |
45 | | - @sed -e "s#@includedir@#$(INSTALLDIR)/include#" temp > temp2 |
46 | | - @sed -e "s#@libdir@#$(INSTALLDIR)/lib#" temp2 > temp |
47 | | - @sed -e "s#@bindir@#$(INSTALLDIR)/bin#" temp > temp2 |
48 | | + @sed -e "s#@prefix@#$(PREFIX)#" temp > temp2 |
49 | | + @sed -e "s#@INCLUDE_PREFIX@#$(PREFIX)#" temp2 > temp |
50 | | + @sed -e "s#@includedir@#$(PREFIX)/include#" temp > temp2 |
51 | | + @sed -e "s#@libdir@#$(PREFIX)/lib#" temp2 > temp |
52 | | + @sed -e "s#@bindir@#$(PREFIX)/bin#" temp > temp2 |
53 | | @sed -e "s/@LIB_TO_LINK@/$(VERSION)/" temp2 > temp |
54 | | @sed -e "s/@LDFLAGS@//" temp > temp2 |
55 | | @sed -e "s/@LIBS@/$(STATIC_LIBRARIES)/" temp2 > temp |