blob: e86bc82708a1c302885cbf092486cc7832a663a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= avce00
PORTVERSION= 2.0.0
CATEGORIES= devel
MASTER_SITES= http://avce00.maptools.org/dl/
MAINTAINER= wen@FreeBSD.org
COMMENT= 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
NO_STAGE= yes
.include <bsd.port.options.mk>
post-extract:
${REINPLACE_CMD} -e 's#gcc#${CC}#g' ${WRKSRC}/GNUmakefile
${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 ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/avce00.html ${DOCSDIR}
.endif
.include <bsd.port.mk>
|