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

PORTNAME=   rudiments
PORTVERSION=    0.47
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   SF

MAINTAINER= 5u623l20@gmail.com
COMMENT=    C++ class library for daemons, clients, servers, and more

LICENSE=    LGPL20

GNU_CONFIGURE=  yes
USES=       libtool pkgconfig shebangfix
SHEBANG_FILES=  doc/programming/insert.pl
USE_LDCONFIG=   yes

PLIST_SUB=  VERSION="${PORTVERSION}"
PORTDOCS=   *

OPTIONS_DEFINE=     DOCS PCRE SSL
OPTIONS_DEFAULT=    SSL

PCRE_LIB_DEPENDS=   libpcre.so:${PORTSDIR}/devel/pcre
PCRE_CONFIGURE_ENABLE=  pcre
SSL_USE=        OPENSSL=yes
SSL_CONFIGURE_ENABLE=   ssl
SSL_CONFIGURE_ON=   --with-ssl-includes=-I${OPENSSLINC} \
            --with-ssl-libs=-L${OPENSSLLIB}

post-patch:
    @${FIND} ${WRKSRC} -name "Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \
        '/pkgconfig/s| $$(libdir)/| $${DESTDIR}$$(prefix)/libdata/| ; \
         /INSTALL/s| $$(bindir)| $${DESTDIR}$$(bindir)| ; \
         /INSTALL/s| $$(docdir)| $${DESTDIR}$$(docdir)| ; \
         /INSTALL/s| $$(includedir)| $${DESTDIR}$$(includedir)| ; \
         /INSTALL/s| $$(mandir)| $${DESTDIR}$$(mandir)| ; \
         /INSTALL/s| $$(libdir)| $${DESTDIR}$$(libdir)| ; \
         /finish/s| $$(libdir)| $${DESTDIR}$$(libdir)|'

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librudiments-0.47.so.1

.include <bsd.port.mk>