Index: head/net-mgmt/hastmon/Makefile =================================================================== --- head/net-mgmt/hastmon/Makefile (revision 421751) +++ head/net-mgmt/hastmon/Makefile (revision 421752) @@ -1,33 +1,41 @@ # Created by: Mikolaj Golub # $FreeBSD$ PORTNAME= hastmon PORTVERSION= 0.3.2 CATEGORIES= net-mgmt MASTER_SITES= GOOGLE_CODE MAINTAINER= trociny@FreeBSD.org COMMENT= Cluster monitoring daemon LICENSE= BSD2CLAUSE BUILD_DEPENDS= mk-configure>=0.20:devel/mk-configure +USES= ssl MKCMAKE?= ${LOCALBASE}/bin/mkcmake INSTALL_TARGET= installdirs install PORTDOCS= ChangeLog COPYRIGHT README + +post-patch: + ${REINPLACE_CMD} \ + -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \ + -e "s|\(-DHAVE_CRYPTO\)|-I${OPENSSLINC} \1|g" \ + ${WRKSRC}/hastmon/Makefile \ + ${WRKSRC}/hastmonctl/Makefile do-build: ${SETENV} ${MKCMAKE_ENV} ${MKCMAKE} -C ${WRKSRC} do-install: ${SETENV} ${MKCMAKE_ENV} DESTDIR=${STAGEDIR} \ ${MKCMAKE} -C ${WRKSRC} ${INSTALL_TARGET} @${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in ${PORTDOCS} ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/${doc} ${STAGEDIR}${DOCSDIR} .endfor .include