svn commit: r391743 - head/devel/shapelib
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Jul 11 15:27:19 UTC 2015
Author: sunpoet
Date: Sat Jul 11 15:27:18 2015
New Revision: 391743
URL: https://svnweb.freebsd.org/changeset/ports/391743
Log:
- Convert to new options target helper
Modified:
head/devel/shapelib/Makefile
Modified: head/devel/shapelib/Makefile
==============================================================================
--- head/devel/shapelib/Makefile Sat Jul 11 14:40:58 2015 (r391742)
+++ head/devel/shapelib/Makefile Sat Jul 11 15:27:18 2015 (r391743)
@@ -22,14 +22,6 @@ USE_LDCONFIG= yes
PROJ_LIB_DEPENDS= libproj.so:${PORTSDIR}/graphics/proj
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MPROJ}
-PROJ= -DPROJ4
-.else
-PROJ= -DNO_PROJ4
-.endif
-
.include <bsd.port.pre.mk>
# Ref: /usr/share/mk/bsd.endian.mk
@@ -40,10 +32,13 @@ ENDIAN= -D_BIG_ENDIAN # mips*eb, powerp
.endif
post-patch:
- @${REINPLACE_CMD} \
- -e 's|%%ENDIAN%%|${ENDIAN}|g' \
- -e 's|%%PROJ%%|${PROJ}|g' \
- ${WRKSRC}/Makefile ${WRKSRC}/contrib/Makefile
+ @${REINPLACE_CMD} -e 's|%%ENDIAN%%|${ENDIAN}|g' ${WRKSRC}/contrib/Makefile
+
+post-patch-PROJ-off:
+ @${REINPLACE_CMD} -e 's|%%PROJ%%|-DNO_PROJ4|g' ${WRKSRC}/Makefile ${WRKSRC}/contrib/Makefile
+
+post-patch-PROJ-on:
+ @${REINPLACE_CMD} -e 's|%%PROJ%%|-DPROJ4|g' ${WRKSRC}/Makefile ${WRKSRC}/contrib/Makefile
post-install:
${LN} -s libshp.so.1 ${STAGEDIR}${PREFIX}/lib/libshp.so
More information about the svn-ports-all
mailing list