09c62f1948
Coverages appear as E00! It allows you to read and write binary coverages just as if they were E00 files. The C library can be easily plugged into existing E00 translators to add support for binary coverages simply by replacing your existing translator's read/write function with the functions provided by the library. WWW: http://avce00.maptools.org/avce00/ PR: ports/123412 Submitted by: Wen Heping <wenheping at gmail.com>
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# New ports collection makefile for: avce00
|
|
# Date created: 04 May 2008
|
|
# Whom: Wen Heping <wenheping@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= avce00
|
|
PORTVERSION= 2.0.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://avce00.maptools.org/dl/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= wenheping@gmail.com
|
|
COMMENT= An OpenSource C library convert Arc/Info Vector Coverages to E00
|
|
|
|
USE_GMAKE= yes
|
|
ALL_TARGET= default
|
|
BIN_FILES= avcimport avcexport avcdelete avctest ex_avcwrite
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
PLIST_FILES= bin/avcimport bin/avcexport bin/avcdelete \
|
|
bin/avctest bin/ex_avcwrite include/avc.h \
|
|
lib/avc.a
|
|
|
|
PORTDOCS= avce00.html
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract:
|
|
${CP} ${WRKSRC}/GNUmakefile ${WRKSRC}/Makefile
|
|
.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
@${REINPLACE_CMD} -e 's#LSB#MSB#g' ${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
do-install:
|
|
.for i in ${BIN_FILES}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin/
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/avc.a ${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/avc.h ${PREFIX}/include
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/avce00.html ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|