diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2014-10-12 08:32:24 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2014-10-12 08:32:24 +0000 |
commit | 37be35c40e391fe0db7e0796fe62e7f7ec9ec698 (patch) | |
tree | cbee2f94ef0a8339d52bbc3061ccaf35807be230 /math/libproj4/files/patch-Makefile | |
parent | - Update to upstream version 0.3.1.20140829 (diff) |
Add libproj4, a cartographic projections C library.
Notes
Notes:
svn path=/head/; revision=370687
Diffstat (limited to 'math/libproj4/files/patch-Makefile')
-rw-r--r-- | math/libproj4/files/patch-Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/math/libproj4/files/patch-Makefile b/math/libproj4/files/patch-Makefile new file mode 100644 index 000000000000..bcc08ade2578 --- /dev/null +++ b/math/libproj4/files/patch-Makefile @@ -0,0 +1,59 @@ +--- Makefile.orig 2008-11-20 18:40:28.000000000 +0100 ++++ Makefile 2014-10-11 18:03:23.000000000 +0200 +@@ -31,7 +31,7 @@ + + #prefix = /usr/local + #prefix = /usr +-prefix = $(HOME) ++prefix = $(PREFIX) + + # edit to reflect directory where system defaults and inits are located + LIB = $(prefix)/lib +@@ -45,7 +45,7 @@ + THREADS=1 + + # select local compiler to use +-CC = gcc ++#CC = gcc + + # normally set on runline when debugging or testing file + T = +@@ -134,18 +134,20 @@ + thrf = -DPROJ_HAVE_THREADS=1 + endif + +-CFLAGS = -g -O -I./ $(gslf) $(thrf) ++CFLAGS+= -fPIC -I./ $(gslf) $(thrf) + #CFLAGS = -g -I./ $(gslf) $(thrf) + +-LDFLAGS = -L./ -lproj4 $(gsll) $(thrl) -lm ++LDFLAGS+= -L./ -lproj4 $(gsll) $(thrl) -lm + + lproj: lproj.o $T $L +- $(CC) -o lproj -I./ lproj.o $T -L./ -lproj4 $(gsll) $(thrl) -lm ++ $(CC) -o lproj -I./ lproj.o $T -L./ -lproj4 $(LDFLAGS) + + lproj.o: lib_proj.h + + libproj4: $(RLIB) + if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib $L ; fi ++ $(CC) -shared $(LDFLAGS) -o libproj4.so.0 *.o ++ ln -sf libproj4.so.0 libproj4.so + + $(RLIB): lib_proj.h + +@@ -154,9 +156,11 @@ + all: libproj4 + + install: +- install -D libproj4.a $(LIB)/libproj4.a +- install -D lproj $(BIN)/lproj +- install -D lib_proj.h $(INC)/lib_proj.h ++ install libproj4.a $(DESTDIR)$(LIB)/libproj4.a ++ install libproj4.so $(DESTDIR)$(LIB)/libproj4.so ++ install libproj4.so.0 $(DESTDIR)$(LIB)/libproj4.so.0 ++ install -s lproj $(DESTDIR)$(BIN)/lproj ++ install lib_proj.h $(DESTDIR)$(INC)/lib_proj.h + + clean: + /bin/rm -f core *.o |