freebsd-ports/security/arirang/Makefile
Piotr Kubaj 65c9395530 security/arirang: fix build on GCC architectures
Add USES=compiler:c11, base GCC can't build this port.

Only add -L${OPENSSLLIB} when OpenSSL not from base is used to avoid linking to base libstdc++.

Approved by:	linimon (mentor)
Differential Revision:	https://reviews.freebsd.org/D21719
2019-09-21 15:21:11 +00:00

41 lines
1 KiB
Makefile

# Created by: Roman Shterenzon <roman@xpert.com>
# $FreeBSD$
PORTNAME= arirang
PORTVERSION= 2.03
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= security www
MASTER_SITES= http://monkey.org/~pilot/arirang/
MAINTAINER= ports@FreeBSD.org
COMMENT= Powerful webserver security scanner for network
LICENSE= BSD3CLAUSE
LIB_DEPENDS= lib${RUBY_NAME}.so:${RUBY_PORT}
USES= compiler:c11 ssl
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
CFLAGS+= -I${LOCALBASE}/include/ruby-${RUBY_VER} -I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH}
CFLAGS+= -DRUBY_19
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT} != base
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
.endif
post-patch:
${REINPLACE_CMD} -e 's/cc/${CC}/g' ${WRKSRC}/extconf.rb
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arirang ${STAGEDIR}${PREFIX}/sbin
@${MKDIR} ${STAGEDIR}${PREFIX}/share/arirang
${INSTALL_DATA} ${WRKSRC}/scanrule/*.uxe ${STAGEDIR}${PREFIX}/share/arirang
${INSTALL_DATA} ${WRKSRC}/script/*.rb ${STAGEDIR}${PREFIX}/share/arirang
.include <bsd.port.post.mk>