aboutsummaryrefslogtreecommitdiffstats
path: root/lang/libhx/Makefile
blob: 35f62154fef6124576237d8c55ca09dad6740b06 (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
# Created by: Sylvio Cesar <sylvio@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libHX
PORTVERSION=    3.14.1
CATEGORIES= lang
MASTER_SITES=   SF/${PORTNAME:tl}/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    C/C++ library with common data structures and functions

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

USE_XZ=     yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ARGS+=--with-pkgconfigdir=${LOCALBASE}/libdata/pkgconfig

OPTIONS_DEFINE= DOCS

PORTDOCS=   *
DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME:tl}

.include <bsd.port.options.mk>

post-patch:
    ${REINPLACE_CMD} -e 's| -lrt||g' ${WRKSRC}/src/Makefile.in
.if empty(PORT_OPTIONS:MDOCS)
    ${REINPLACE_CMD} -e 's|libHX_Documentation.pdf||' \
       ${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/Makefile.am
.endif

.include <bsd.port.mk>