Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2015 15:27:19 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r391743 - head/devel/shapelib
Message-ID:  <201507111527.t6BFRJ8L043217@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507111527.t6BFRJ8L043217>