aboutsummaryrefslogtreecommitdiffstats
path: root/databases/dbview/Makefile
blob: 53c0ca18d90fa5c2155d2a9d31b9bc5b1101e43d (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
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=   dbview
PORTVERSION=    1.0.4
CATEGORIES= databases
MASTER_SITES=   SUNSITE/apps/database/proprietary

MAINTAINER= ports@FreeBSD.org
COMMENT=    View dBase III files

PLIST_FILES=    bin/dbview man/man1/dbview.1.gz
PORTDOCS=   README dBASE

post-patch:
    @${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|; \
        s|<endian.h>|<sys/endian.h>|; \
        /byteswap/d' \
        ${WRKSRC}/db_dump.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/dbview ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/dbview.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>