honour SHARED_LIBS. use post-install where appropriate.

This commit is contained in:
steven 2006-10-08 22:01:06 +00:00
parent 84bbe74d99
commit 0fd8497a0a
3 changed files with 18 additions and 23 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/10/08 16:57:08 jasper Exp $
# $OpenBSD: Makefile,v 1.2 2006/10/08 22:01:06 steven Exp $
COMMENT= "shapefile manipulation library"
@ -18,4 +18,12 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://dl.maptools.org/dl/shapelib/
MAKE_ENV= SHLIB_MAJOR=${LIBshp_VERSION:R} \
SHLIB_MINOR=${LIBshp_VERSION:E}
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/libshp
${INSTALL_DATA} ${WRKSRC}/shapefil.h ${PREFIX}/include/libshp
.include <bsd.port.mk>

View File

@ -1,24 +1,17 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2006/10/08 16:57:08 jasper Exp $
--- Makefile.orig Mon Apr 7 09:03:22 2003
+++ Makefile Fri Aug 11 16:03:50 2006
@@ -1,142 +1,14 @@
$OpenBSD: patch-Makefile,v 1.2 2006/10/08 22:01:06 steven Exp $
--- Makefile.orig Mon Apr 7 15:03:22 2003
+++ Makefile Sun Oct 8 23:51:02 2006
@@ -1,142 +1,4 @@
+SRCS= shpopen.c shptree.c dbfopen.c
+LIB= shp
-#LINKOPT = /usr/local/lib/libdbmalloc.a
-CFLAGS = -g
+CFLAGS ?= -g -O
+PREFIX ?= /usr/local
+SRCS= shpopen.c shptree.c dbfopen.c
+LIB= shp
-
-default: all
+LIBDIR= $(TRUEPREFIX)/lib
+INCDIR= $(PREFIX)/include
-
-all: shpcreate shpadd shpdump shprewind dbfcreate dbfadd dbfdump shptest
+afterinstall:
+ install -d -m 755 -o root -g bin $(INCDIR)/libshp
+ install -c -m 644 -o root -g bin shapefil.h $(INCDIR)/libshp
-
-shpopen.o: shpopen.c shapefil.h
- $(CC) $(CFLAGS) -c shpopen.c
-

View File

@ -1,6 +0,0 @@
$OpenBSD: patch-shlib_version,v 1.1.1.1 2006/10/08 16:57:08 jasper Exp $
--- shlib_version.orig Fri Aug 11 16:03:06 2006
+++ shlib_version Fri Aug 11 16:03:06 2006
@@ -0,0 +1,2 @@
+major=1
+minor=2