aboutsummaryrefslogtreecommitdiffstats
path: root/devel/bglibs/Makefile
blob: ab053ae916dc8c2405af9cdbd1d2c5f93ef840e9 (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
48
49
50
51
52
# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$

PORTNAME=   bglibs
PORTVERSION=    1.106
PORTREVISION=   4
PORTEPOCH=  1
CATEGORIES= devel
MASTER_SITES=   http://untroubled.org/${PORTNAME}/archive/ \
        http://untroubled.org/${PORTNAME}/

MAINTAINER= sylvio@FreeBSD.org
COMMENT=    One stop library package by Bruce Guenter

LICENSE=    LGPL21

NOT_FOR_ARCHS=  alpha

USES=       perl5
USE_PERL5=  run
USE_AUTOTOOLS=  libtool:env
BGLIBS_INC= ${PREFIX}/include/${PORTNAME}
BGLIBS_LIB= ${PREFIX}/lib/${PORTNAME}
USE_LDCONFIG=   ${BGLIBS_LIB}

DOCS=       NEWS README TODO doc/html/*

OPTIONS_DEFINE= DOCS

post-patch:
    ${REINPLACE_CMD} '/main/s/^void/int/' ${WRKSRC}/sys/try*.c

do-configure:
    ${ECHO_CMD} "${CC} ${CFLAGS}"   > ${WRKSRC}/conf-cc
    ${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld
    ${ECHO_CMD} "${STAGEDIR}${PREFIX}"      > ${WRKSRC}/conf-home
    ${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin"  > ${WRKSRC}/conf-bin
    ${ECHO_CMD} "${STAGEDIR}${PREFIX}/man"  > ${WRKSRC}/conf-man
    ${ECHO_CMD} "${STAGEDIR}${BGLIBS_INC}"  > ${WRKSRC}/conf-include
    ${ECHO_CMD} "${STAGEDIR}${BGLIBS_LIB}"  > ${WRKSRC}/conf-lib

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
    @${SED} -i '' 's|${STAGEDIR}||' \
        ${STAGEDIR}${PREFIX}/lib/bglibs/libbg-sysdeps.la \
        ${STAGEDIR}${PREFIX}/lib/bglibs/libbg.la

selftest: build
    cd ${WRKSRC} && ${SH} selftests.sh

.include <bsd.port.mk>