diff options
Diffstat (limited to 'devel/shapelib/Makefile')
-rw-r--r-- | devel/shapelib/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/devel/shapelib/Makefile b/devel/shapelib/Makefile index ee2aadc95171..4fc6111eff5b 100644 --- a/devel/shapelib/Makefile +++ b/devel/shapelib/Makefile @@ -7,6 +7,7 @@ PORTNAME= shapelib PORTVERSION= 1.2.10 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://dl.maptools.org/dl/shapelib/ @@ -16,15 +17,14 @@ COMMENT= C API for reading and writing ArcView Shapefiles USE_AUTOTOOLS= libtool:15:env ALL_TARGET= lib INSTALLS_SHLIB= yes +USE_REINPLACE= yes +INSTALL_TARGET= lib_install -do-configure: - @${CP} ${LIBTOOL} ${WRKSRC} - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/.libs/libshp.so.1 ${PREFIX}/lib - ${LN} -sf libshp.so.1 ${PREFIX}/lib/libshp.so - ${INSTALL_DATA} ${WRKSRC}/.libs/libshp.a ${PREFIX}/lib/ - ${INSTALL_DATA} ${WRKSRC}/shapefil.h ${PREFIX}/include +post-patch: + @${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \ + -e 's#%%LIBTOOL%%#${LIBTOOL}#g' \ + -e 's#%%INSTALL%%#${INSTALL}#g' ${WRKSRC}/Makefile +post-install: ${MKDIR} ${PREFIX}/share/doc/shapelib ${INSTALL_DATA} ${WRKSRC}/*.html ${PREFIX}/share/doc/shapelib |