1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/devel/libopkele/Makefile
Jimmy Olgeni 76c7f8fbe6 Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories D-F.

CR:		D196
Approved by:	portmgr (bapt)
2014-06-10 07:39:01 +00:00

48 lines
1.4 KiB
Makefile

# Created by: Sutra Zhou <zhoushuqun@gmail.com>
# $FreeBSD$
PORTNAME= libopkele
PORTVERSION= 2.0.4
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://kin.klever.net/dist/
MAINTAINER= zhoushuqun@gmail.com
COMMENT= C++ implementation of an OpenID decentralized identity system
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libpcre.so:${PORTSDIR}/devel/pcre \
libexpat.so:${PORTSDIR}/textproc/expat2 \
libtidy.so:${PORTSDIR}/www/tidy-lib \
libxslt.so:${PORTSDIR}/textproc/libxslt
USE_LDCONFIG= yes
USES= gmake pkgconfig compiler:c++11-lang
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
USE_OPENSSL= yes
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
# 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.post.mk>