freebsd-ports/devel/libhtp/Makefile
John Marino bdb74a5792 devel/libhtp: tweak recent iconv:translit change to fix on some compilers
When USES=iconv is changed to USES=iconv:translit, it can add libiconv
dependency from ports along with the addition of -liconv to LDFLAGS.
Most compilers (with FreeBSD's base compilers being notable exceptions)
will not look in /usr/local/lib by default, so this adds a -L argument
to LDFLAGS to help the linker find libiconv.so and unbreak the port on
affected platforms.
2015-02-02 18:41:56 +00:00

35 lines
683 B
Makefile

# $FreeBSD$
PORTNAME= libhtp
PORTVERSION= 0.5.16
CATEGORIES= devel
MAINTAINER= koobs@FreeBSD.org
COMMENT= Security-aware parser for the HTTP protocol
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= OISF
GH_COMMIT= 4cb1b99
USES= autoreconf iconv:translit libtool pathfix pkgconfig
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
MAKE_ARGS= LIBS="-lz ${ICONV_LIB}"
LDFLAGS+= -L${LOCALBASE}/lib
PATHFIX_MAKEFILEIN= Makefile.am
INSTALL_TARGET= install-strip
CONFLICTS_INSTALL= libhtp-suricata-*
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
regression-test: build
@cd ${WRKSRC} && ${MAKE} check
.include <bsd.port.mk>