1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/misc/gctpc/files/patch-aa
Martin Wilke 3f1ee017c1 - Update to 2.0
PR:		179221
Submitted by:	Ports Fury
2013-06-09 16:57:14 +00:00

33 lines
628 B
Plaintext

$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)