aboutsummaryrefslogtreecommitdiffstats
path: root/devel/rudiments/Makefile
blob: cf164618a839e9860940cd0405913829b7218f79 (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
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=   rudiments
PORTVERSION=    0.41
CATEGORIES= devel
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/0.50

MAINTAINER= ports@FreeBSD.org
COMMENT=    C++ class library for daemons, clients, servers, and more

LICENSE=    LGPL20

OPTIONS_DEFINE= DOCS

USES=       pkgconfig
USE_OPENSSL=    yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ARGS= --with-ssl-includes=-I${OPENSSLINC} \
        --with-ssl-libs=-L${OPENSSLLIB} \
        --disable-pcre
USE_LDCONFIG=   yes
MAKE_JOBS_SAFE= yes

MAN1=       rudiments-config.1

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e \
        '/cd doc;/s|^|#| ; \
         /pkgconfig/s|$$(libdir)/|$$(prefix)/libdata/|' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e \
        's|^#!/usr/bin/perl|#!${PERL}|' ${WRKSRC}/doc/programming/insert.pl
    @${REINPLACE_CMD} -e \
        's| -release $$(RUDIMENTS_VERSION)||' ${WRKSRC}/src/Makefile.in

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.endif

.include <bsd.port.mk>