aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libopkele/Makefile
blob: 4e73bbde3b29d0b6dcf2b0ff9a3e4d7e223b8ec3 (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
# New ports collection makefile for:    libopkele
# Date created:             28 November 2007
# Whom:                 Sutra Zhou <zhoushuqun@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   libopkele
PORTVERSION=    2.0
CATEGORIES= devel
MASTER_SITES=   http://kin.klever.net/dist/

MAINTAINER= zhoushuqun@gmail.com
COMMENT=    A c++ implementation of an OpenID decentralized identity system

BUILD_DEPENDS=  ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost
LIB_DEPENDS=    curl.4:${PORTSDIR}/ftp/curl \
        pcre.0:${PORTSDIR}/devel/pcre \
        expat.6:${PORTSDIR}/textproc/expat2 \
        tidy:${PORTSDIR}/www/tidy-lib \
        xslt:${PORTSDIR}/textproc/libxslt

USE_GMAKE=  yes
USE_OPENSSL=    yes
USE_LDCONFIG=   yes
USE_GNOME=  pkgconfig
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  "OPENSSL_CFLAGS=${CFLAGS} -l${OPENSSLINC}" \
        OPENSSL_LIBS=-L${OPENSSLLIB} \
        CPPFLAGS=-I${LOCALBASE}/include

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

# This port needs OpenSSL 0.9.8b which is present in 7.0 and up
.if !exists(/usr/include/openssl/store.h)
WITH_OPENSSL_PORT=      yes
.endif

# If we use the base OpenSSL either by default or
# by design, we need to remove the openssl dependency
# in pkgconfig/libopkele.pc.

post-patch:
    @ ${REINPLACE_CMD} -e "s|pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g" \
        ${WRKSRC}/Makefile.in
.if !defined(WITH_OPENSSL_PORT)
    @ ${REINPLACE_CMD} -e "s|Requires: openssl|Requires:|" ${WRKSRC}/libopkele.pc.in
.endif

.include <bsd.port.mk>