Changeset View
Changeset View
Standalone View
Standalone View
head/devel/libopkele/Makefile
Show All 13 Lines | |||||
RUN_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs | RUN_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs | ||||
LIB_DEPENDS= libcurl.so:ftp/curl \ | LIB_DEPENDS= libcurl.so:ftp/curl \ | ||||
libpcre.so:devel/pcre \ | libpcre.so:devel/pcre \ | ||||
libexpat.so:textproc/expat2 \ | libexpat.so:textproc/expat2 \ | ||||
libtidy.so:www/tidy-lib \ | libtidy.so:www/tidy-lib \ | ||||
libxslt.so:textproc/libxslt | libxslt.so:textproc/libxslt | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USES= libtool gmake pkgconfig compiler:c++11-lang | USES= libtool gmake pkgconfig compiler:c++11-lang ssl | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ENV= "OPENSSL_CFLAGS=${CFLAGS} -l${OPENSSLINC}" \ | CONFIGURE_ENV= "OPENSSL_CFLAGS=${CFLAGS} -l${OPENSSLINC}" \ | ||||
OPENSSL_LIBS=-L${OPENSSLLIB} | OPENSSL_LIBS=-L${OPENSSLLIB} | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
CFLAGS+= -I${LOCALBASE}/include | CFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | 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 <bsd.port.pre.mk> | ||||
.include "${PORTSDIR}/Mk/bsd.openssl.mk" | |||||
# If we use the base OpenSSL either by default or | # If we use the base OpenSSL either by default or | ||||
# by design, we need to remove the openssl dependency | # by design, we need to remove the openssl dependency | ||||
# in pkgconfig/libopkele.pc. | # in pkgconfig/libopkele.pc. | ||||
post-patch: | post-patch: | ||||
@ ${REINPLACE_CMD} -e "s|pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g" \ | @ ${REINPLACE_CMD} -e "s|pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g" \ | ||||
${WRKSRC}/Makefile.in | ${WRKSRC}/Makefile.in | ||||
.if ${SSL_DEFAULT} == base | .if ${SSL_DEFAULT} == base | ||||
@ ${REINPLACE_CMD} -e "s|Requires: openssl|Requires:|" ${WRKSRC}/libopkele.pc.in | @ ${REINPLACE_CMD} -e "s|Requires: openssl|Requires:|" ${WRKSRC}/libopkele.pc.in | ||||
.endif | .endif | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |