mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
- Support STAGEDIR
- Convert to new options helper - Convert to new LIB_DEPENDS format - Remove DEBUG option
This commit is contained in:
parent
bb67380890
commit
708d927bb0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330291
@ -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>
|
||||
|
@ -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 ..)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user