# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD: tags/RELEASE_11_1_0/security/stegdetect/Makefile 434427 2017-02-20 02:57:04Z jbeich $

PORTNAME=	stegdetect
PORTVERSION=	0.6
PORTREVISION=	15
CATEGORIES=	security
MASTER_SITES=	http://www.sourcefiles.org/Graphics/Tools/Miscellaneous/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Automated tool for detecting steganographic content in JPEGs

OPTIONS_DEFINE=	X11
OPTIONS_DEFAULT=	X11

OPTIONS_SUB=	yes

X11_LIB_DEPENDS=	libevent.so:devel/libevent
X11_USE=	GNOME=gtk12 XORG=x11,xext,xi
X11_CONFIGURE_ENV+=	PATH_GTKCONFIG="${GTK_CONFIG}"

# Note: stegdetect includes a modified version of jpeg-6b linked statically
GNU_CONFIGURE=	yes
USES=		gmake ssl
CONFIGURE_ARGS+=--program-prefix=''
CFLAGS+=	-I${OPENSSLINC}
LDFLAGS+=	-L${OPENSSLLIB}

post-patch:
	@${REINPLACE_CMD} 's;/usr/include/event;${LOCALBASE}/include;g' \
		${WRKSRC}/configure
post-patch-X11-on:
	@${REINPLACE_CMD} 's/gtk-config//g' ${WRKSRC}/configure

.include <bsd.port.mk>
