- Change OPTIONS: PROJ4 -> PROJ

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-08-16 08:07:40 +00:00
parent b1db61c735
commit b3394ff195
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=279799
4 changed files with 16 additions and 16 deletions

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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