From b3394ff195aff0efdcd2959063a9c39c9de0fa8c Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Tue, 16 Aug 2011 08:07:40 +0000 Subject: [PATCH] - Change OPTIONS: PROJ4 -> PROJ --- devel/shapelib/Makefile | 14 +++++++------- devel/shapelib/files/patch-Makefile | 4 ++-- devel/shapelib/files/patch-contrib-Makefile | 2 +- devel/shapelib/pkg-plist | 12 ++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/devel/shapelib/Makefile b/devel/shapelib/Makefile index 2162be498085..1ef480f476fa 100644 --- a/devel/shapelib/Makefile +++ b/devel/shapelib/Makefile @@ -23,7 +23,7 @@ USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${SHAPELIB_VER} OPTIONS= DEBUG "Debugging" off \ - PROJ4 "Cartographic Projections library" off + PROJ "Cartographic Projections library" off SHAPELIB_VER= ${PORTVERSION}b2 @@ -41,13 +41,13 @@ ENDIAN= -D_LITTLE_ENDIAN ENDIAN= -D_BIG_ENDIAN .endif -.if defined(WITH_PROJ4) +.if defined(WITH_PROJ) LIB_DEPENDS+= proj:${PORTSDIR}/graphics/proj -PLIST_SUB+= PROJ4="" -PROJ4= -DPROJ4 +PLIST_SUB+= PROJ="" +PROJ= -DPROJ4 .else -PLIST_SUB+= PROJ4="@comment " -PROJ4= -DNO_PROJ4 +PLIST_SUB+= PROJ="@comment " +PROJ= -DNO_PROJ4 .endif post-patch: @@ -58,7 +58,7 @@ post-patch: -e 's#%%LIBTOOL%%#${LIBTOOL}#g' \ -e 's#%%PREFIX%%#${PREFIX}#g' \ -e 's#%%ENDIAN%%#${ENDIAN}#g' \ - -e 's#%%PROJ4%%#${PROJ4}#g' \ + -e 's#%%PROJ%%#${PROJ}#g' \ ${WRKSRC}/Makefile ${WRKSRC}/contrib/Makefile post-install: diff --git a/devel/shapelib/files/patch-Makefile b/devel/shapelib/files/patch-Makefile index 9a1face89568..f7fa6bd6dfd1 100644 --- a/devel/shapelib/files/patch-Makefile +++ b/devel/shapelib/files/patch-Makefile @@ -34,7 +34,7 @@ +.endfor + +contrib_tools: -+ (cd contrib; ${MAKE} %%PROJ4%% all; cd ..) ++ (cd contrib; ${MAKE} %%PROJ%% all; cd ..) + +tools_install: +.for _TOOL in ${TOOLS} @@ -42,7 +42,7 @@ +.endfor + +contrib_install: -+ (cd contrib; ${MAKE} %%PROJ4%% install; cd ..) ++ (cd contrib; ${MAKE} %%PROJ%% install; cd ..) shpopen.o: shpopen.c shapefil.h $(CC) $(CFLAGS) -c shpopen.c diff --git a/devel/shapelib/files/patch-contrib-Makefile b/devel/shapelib/files/patch-contrib-Makefile index b5ec39a25ccc..15931b85ee4e 100644 --- a/devel/shapelib/files/patch-contrib-Makefile +++ b/devel/shapelib/files/patch-contrib-Makefile @@ -8,7 +8,7 @@ +#ENDIAN = -D_LITTLE_ENDIAN -CFLAGS = -g -I.. -I$(HOME)/bld/include -DPROJ4 $(ENDIAN) -DDEBUG -DDEBUG2 -+CFLAGS += %%DEBUG%% %%ENDIAN%% %%PROJ4%% -I.. -I%%PREFIX%%/include -L%%PREFIX%%/lib ++CFLAGS += %%DEBUG%% %%ENDIAN%% %%PROJ%% -I.. -I%%PREFIX%%/include -L%%PREFIX%%/lib SHPOBJ = ../shpopen.o ../dbfopen.o ../safileio.o diff --git a/devel/shapelib/pkg-plist b/devel/shapelib/pkg-plist index abb8302ed7ad..a687a791381f 100644 --- a/devel/shapelib/pkg-plist +++ b/devel/shapelib/pkg-plist @@ -14,12 +14,12 @@ bin/shptest bin/shptreedump bin/shputils bin/Shape_PointInPoly -%%PROJ4%%bin/shpcentrd -%%PROJ4%%bin/shpdata -%%PROJ4%%bin/shpinfo -%%PROJ4%%bin/shpproj -%%PROJ4%%bin/shpsort -%%PROJ4%%bin/shpwkb +%%PROJ%%bin/shpcentrd +%%PROJ%%bin/shpdata +%%PROJ%%bin/shpinfo +%%PROJ%%bin/shpproj +%%PROJ%%bin/shpsort +%%PROJ%%bin/shpwkb include/shapefil.h lib/libshp.a lib/libshp.la