summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-10-14 11:03:14 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-10-14 11:03:14 +0000
commit708d927bb00cc3d2a189fc5ca430c71a9a1d3f8d (patch)
tree64750e50e51972dad7ed73b2340407fa6e9c8ef3 /devel
parent- Update to 0.16 (diff)
- Support STAGEDIR
- Convert to new options helper - Convert to new LIB_DEPENDS format - Remove DEBUG option
Notes
Notes: svn path=/head/; revision=330291
Diffstat (limited to 'devel')
-rw-r--r--devel/shapelib/Makefile22
-rw-r--r--devel/shapelib/files/patch-Makefile10
-rw-r--r--devel/shapelib/files/patch-contrib-Makefile8
3 files changed, 16 insertions, 24 deletions
diff --git a/devel/shapelib/Makefile b/devel/shapelib/Makefile
index 5fa14d10bb8b..06004138a230 100644
--- a/devel/shapelib/Makefile
+++ b/devel/shapelib/Makefile
@@ -14,26 +14,19 @@ COMMENT= C API for reading and writing ArcView Shapefiles
LICENSE= LGPL20
+OPTIONS_DEFINE= DOCS PROJ
+OPTIONS_SUB= yes
+
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
-OPTIONS_DEFINE= DEBUG DOCS PROJ
+PROJ_LIB_DEPENDS= libproj.so:${PORTSDIR}/graphics/proj
-NO_STAGE= yes
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MDEBUG}
-DEBUG= -DDEBUG -DDEBUG2 -g
-.else
-DEBUG= # empty
-.endif
-
.if ${PORT_OPTIONS:MPROJ}
-LIB_DEPENDS+= proj:${PORTSDIR}/graphics/proj
-PLIST_SUB+= PROJ=""
PROJ= -DPROJ4
.else
-PLIST_SUB+= PROJ="@comment "
PROJ= -DNO_PROJ4
.endif
@@ -48,17 +41,16 @@ ENDIAN= -D_BIG_ENDIAN # mips*eb, powerpc, powerpc64 and sparc
post-patch:
@${REINPLACE_CMD} \
- -e 's|%%DEBUG%%|${DEBUG}|g' \
-e 's|%%LIBTOOL%%|${LIBTOOL}|g' \
-e 's|%%ENDIAN%%|${ENDIAN}|g' \
-e 's|%%PROJ%%|${PROJ}|g' \
${WRKSRC}/Makefile ${WRKSRC}/contrib/Makefile
post-install:
- ${LN} -s libshp.so.1 ${PREFIX}/lib/libshp.so
+ ${LN} -s libshp.so.1 ${STAGEDIR}${PREFIX}/lib/libshp.so
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/web/*.html ${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/web/*.html ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.post.mk>
diff --git a/devel/shapelib/files/patch-Makefile b/devel/shapelib/files/patch-Makefile
index 11c6b0126ee0..df754235b82b 100644
--- a/devel/shapelib/files/patch-Makefile
+++ b/devel/shapelib/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig 2011-07-24 14:15:51.000000000 +0800
-+++ Makefile 2011-12-24 03:00:00.000000000 +0800
+--- Makefile.orig 2011-07-24 12:32:26.000000000 +0800
++++ Makefile 2013-10-13 21:38:40.590435497 +0800
@@ -1,16 +1,19 @@
-PREFIX = /usr/local
@@ -36,12 +36,12 @@
lib_install: libshp.a
- cp libshp.a $(PREFIX)/lib
- cp shapefil.h $(PREFIX)/include
-+ $(BSD_INSTALL_DATA) shapefil.h $(PREFIX)/include/
-+ $(BSD_INSTALL_LIB) libshp.a libshp.so.1 $(PREFIX)/lib/
++ $(BSD_INSTALL_DATA) shapefil.h $(DESTDIR)$(PREFIX)/include/
++ $(BSD_INSTALL_LIB) libshp.a libshp.so.1 $(DESTDIR)$(PREFIX)/lib/
bin_install: $(SHPBIN)
- cp $(SHPBIN) $(PREFIX)/bin
-+ $(BSD_INSTALL_PROGRAM) $(SHPBIN) $(PREFIX)/bin/
++ $(BSD_INSTALL_PROGRAM) $(SHPBIN) $(DESTDIR)$(PREFIX)/bin/
+
+contrib_install:
+ (cd contrib/; ${MAKE} %%PROJ%% install; cd ..)
diff --git a/devel/shapelib/files/patch-contrib-Makefile b/devel/shapelib/files/patch-contrib-Makefile
index ddb1d8f6eb9b..8a700bf5d2ff 100644
--- a/devel/shapelib/files/patch-contrib-Makefile
+++ b/devel/shapelib/files/patch-contrib-Makefile
@@ -1,5 +1,5 @@
---- contrib/Makefile.orig 2011-07-24 14:15:51.000000000 +0800
-+++ contrib/Makefile 2011-12-24 03:00:00.000000000 +0800
+--- contrib/Makefile.orig 2010-01-04 12:08:02.000000000 +0800
++++ contrib/Makefile 2013-10-13 21:39:57.405429171 +0800
@@ -3,19 +3,36 @@
#CFLAGS = -g
@@ -34,10 +34,10 @@
+.endif
+
+allprog_install: $(ALLPROG)
-+ $(BSD_INSTALL_PROGRAM) $(ALLPROG) $(PREFIX)/bin/
++ $(BSD_INSTALL_PROGRAM) $(ALLPROG) $(DESTDIR)$(PREFIX)/bin/
+
+allproj_install: $(ALLPROJ)
-+ $(BSD_INSTALL_PROGRAM) $(ALLPROJ) $(PREFIX)/bin/
++ $(BSD_INSTALL_PROGRAM) $(ALLPROJ) $(DESTDIR)$(PREFIX)/bin/
clean:
rm -f shpdxf shpproj dbfinfo shpcentrd shpdata shpwkb dbfcat dbfinfo shpinfo shpfix shpcat *.o