summaryrefslogtreecommitdiff
path: root/misc/gctpc/files/patch-Makefile
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 01:16:45 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 01:16:45 +0000
commit0d36ec3c7937d274f501258ddf1798b05e4f33c2 (patch)
treeb35c705d3b36af5129c9a15430528661add3b428 /misc/gctpc/files/patch-Makefile
parentStage net-mgmt/routers2-extras and cleanup (diff)
Rename misc/ patch-xy patches to reflect the files they modify.
Notes
Notes: svn path=/head/; revision=363282
Diffstat (limited to 'misc/gctpc/files/patch-Makefile')
-rw-r--r--misc/gctpc/files/patch-Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/misc/gctpc/files/patch-Makefile b/misc/gctpc/files/patch-Makefile
new file mode 100644
index 000000000000..49af39fa6c91
--- /dev/null
+++ b/misc/gctpc/files/patch-Makefile
@@ -0,0 +1,32 @@
+
+$FreeBSD$
+
+--- Makefile.orig Fri Feb 24 17:05:37 1995
++++ Makefile Thu May 31 15:33:40 2001
+@@ -1,10 +1,12 @@
+
+ INCDIR =
+-ARCHIVE = geolib.a
++SHLIB = libgctpc.so.1
++ARCHIVE = libgctpc.a
+ LIBDIR =
+ SRCDIR = .
+ INCS = cproj.h proj.h
+-CC = cc
++CC ?= cc
++CFLAGS += -fPIC -DPIC
+
+ OBJECTS= \
+ $(ARCHIVE)(alberfor.o) $(ARCHIVE)(alberinv.o) \
+@@ -56,6 +58,11 @@
+ cproj.c report.c lamccfor.c lamccinv.c paksz.c untfz.c sphdz.c \
+ br_gctp.c Makefile cproj.h proj.h
+
++$(SHLIB): $(ARCHIVE)
++ mkdir objs
++ cd objs && ar x ../$(ARCHIVE) && $(CC) -shared -o ../$(SHLIB) *.o
++ rm -rf objs
++
+ $(ARCHIVE): $(OBJECTS)
+
+