aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libpbl/Makefile
blob: ac11addb448e4e39f55c0358137fe8bcc97db9e1 (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
# Created by: Zach Thompson <hideo@lastamericanempire.com>
# $FreeBSD$

PORTNAME=   libpbl
PORTVERSION=    1.04.04
CATEGORIES= databases
MASTER_SITES=   http://www.mission-base.com/peter/source/
DISTNAME=   pbl_${PORTVERSION:S/./_/g}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Peter Graf's Program Base Library

LICENSE=    LGPL21 # or later

MAKEFILE=   makefile
TEST_TARGET=    test

WRKSRC=     ${WRKDIR}/${DISTNAME}/src

PLIST_FILES=    include/pbl.h \
        lib/libpbl.a
PORTDOCS=   *

post-extract:
    @${REINPLACE_CMD} -e 's/=  -Wall -O3/+=  -Wall -Werror/' \
        -e 's/^CC=/CC?=/' -e '/^.rm -f/d' ${WRKSRC}/makefile
    @${REINPLACE_CMD} -e 's/%d/%zd/' -e 's/(int)size/size/' ${WRKSRC}/pbl.c
    @${REINPLACE_CMD} -e 's/dir\.h/dirent\.h/' ${WRKSRC}/pbl.h
    @${REINPLACE_CMD} -e 's/malloc\.h/stdlib\.h/' \
        ${WRKSRC}/*.c

do-install:
    ${INSTALL_DATA} ${WRKSRC}/libpbl.a ${STAGEDIR}${PREFIX}/lib/
    ${INSTALL_DATA} ${WRKSRC}/pbl.h ${STAGEDIR}${PREFIX}/include/

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>