Lines 6-20
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= libopkele |
8 |
PORTNAME= libopkele |
9 |
PORTVERSION= 0.3.2 |
9 |
PORTVERSION= 2.0 |
10 |
CATEGORIES= devel |
10 |
CATEGORIES= devel |
11 |
MASTER_SITES= http://kin.klever.net/dist/ |
11 |
MASTER_SITES= http://kin.klever.net/dist/ |
12 |
|
12 |
|
13 |
MAINTAINER= zhoushuqun@gmail.com |
13 |
MAINTAINER= zhoushuqun@gmail.com |
14 |
COMMENT= A c++ implementation of an OpenID decentralized identity system |
14 |
COMMENT= A c++ implementation of an OpenID decentralized identity system |
15 |
|
15 |
|
|
|
16 |
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost |
16 |
LIB_DEPENDS= curl.4:${PORTSDIR}/ftp/curl \ |
17 |
LIB_DEPENDS= curl.4:${PORTSDIR}/ftp/curl \ |
17 |
pcre.0:${PORTSDIR}/devel/pcre |
18 |
pcre.0:${PORTSDIR}/devel/pcre \ |
|
|
19 |
tidy:${PORTSDIR}/www/tidy-lib \ |
20 |
xslt:${PORTSDIR}/textproc/libxslt |
18 |
|
21 |
|
19 |
USE_GMAKE= yes |
22 |
USE_GMAKE= yes |
20 |
USE_OPENSSL= yes |
23 |
USE_OPENSSL= yes |
Lines 22-34
Link Here
|
22 |
USE_GNOME= pkgconfig |
25 |
USE_GNOME= pkgconfig |
23 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
24 |
CONFIGURE_ENV= "OPENSSL_CFLAGS=${CFLAGS} -l${OPENSSLINC}" \ |
27 |
CONFIGURE_ENV= "OPENSSL_CFLAGS=${CFLAGS} -l${OPENSSLINC}" \ |
25 |
OPENSSL_LIBS=-L${OPENSSLLIB} |
28 |
OPENSSL_LIBS=-L${OPENSSLLIB} \ |
|
|
29 |
CPPFLAGS=-I${LOCALBASE}/include |
26 |
|
30 |
|
27 |
CFLAGS+= -I${LOCALBASE}/include |
31 |
CFLAGS+= -I${LOCALBASE}/include |
28 |
LDFLAGS= "-L${LOCALBASE}/lib" |
32 |
LDFLAGS= "-L${LOCALBASE}/lib" |
29 |
|
33 |
|
|
|
34 |
# Required version of OpenSSL for this build |
35 |
OPENSSL_SHLIBVER=5 |
36 |
# If we use the base OpenSSL either by default or |
37 |
# by design, we need to remove the openssl dependency |
38 |
# in pkgconfig/libopkele.pc. For the moment, the only |
39 |
# way I kan think of is to check for 7.0 with OpenSSL 0.9.8b |
40 |
# and not WITH_OPENSSL_PORT. As 6 requires the port, add this |
41 |
# as a dependency instead. |
42 |
|
43 |
.include <bsd.port.pre.mk> |
44 |
|
45 |
.if ( ${OSVERSION} < 700019 ) |
46 |
WITH_OPENSSL_PORT=yes |
47 |
.endif |
48 |
|
30 |
post-patch: |
49 |
post-patch: |
31 |
@ ${REINPLACE_CMD} -e "s|pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g" \ |
50 |
@ ${REINPLACE_CMD} -e "s|pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g" \ |
32 |
${WRKSRC}/Makefile.in |
51 |
${WRKSRC}/Makefile.in |
|
|
52 |
.if !defined(WITH_OPENSSL_PORT) |
53 |
@ ${REINPLACE_CMD} -e "s|Requires: openssl|Requires:|" ${WRKSRC}/libopkele.pc.in |
54 |
.endif |
33 |
|
55 |
|
34 |
.include <bsd.port.mk> |
56 |
.include <bsd.port.post.mk> |