aboutsummaryrefslogtreecommitdiff
path: root/security/stegdetect
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-12-16 18:13:58 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-12-16 18:13:58 +0000
commit573c21e73934baa7a32b5d7b8d07b18c1334fe6f (patch)
treee960bc7839562d943bda45c7bc74457ec6beb025 /security/stegdetect
parenta802e3427a4ec42c8cb398d48155cf4a5c175a49 (diff)
downloadports-573c21e73934baa7a32b5d7b8d07b18c1334fe6f.tar.gz
ports-573c21e73934baa7a32b5d7b8d07b18c1334fe6f.zip
Notes
Diffstat (limited to 'security/stegdetect')
-rw-r--r--security/stegdetect/Makefile26
1 files changed, 10 insertions, 16 deletions
diff --git a/security/stegdetect/Makefile b/security/stegdetect/Makefile
index 22683ddec961..554272b04cf9 100644
--- a/security/stegdetect/Makefile
+++ b/security/stegdetect/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: stegdetect
-# Date created: Jul 19, 2001
-# Whom: Mark Pulford <mark@kyne.com.au>
-#
+# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$
-#
PORTNAME= stegdetect
PORTVERSION= 0.6
@@ -16,12 +12,18 @@ MASTER_SITES= http://www.outguess.org/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= Automated tool for detecting steganographic content in JPEGs
-OPTIONS= X11 "Build xsteg" On
+OPTIONS_DEFINE= X11
+OPTIONS_DEFAULT= X11
.include <bsd.port.options.mk>
-.if !defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent
+USE_GNOME= gtk12
+CONFIGURE_ENV+= PATH_GTKCONFIG="${GTK_CONFIG}"
+PLIST_SUB+= X11=""
+.else
+PLIST_SUB+= X11="@comment "
.endif
# Note: stegdetect includes a modified version of jpeg-6b linked statically
@@ -30,18 +32,10 @@ USE_GMAKE= yes
CONFIGURE_ARGS+=--program-prefix=''
MAN1= stegdetect.1 stegbreak.1
-.if defined(WITHOUT_X11)
-PLIST_SUB+= X11="@comment "
-.else
-USE_GNOME= gtk12
-CONFIGURE_ENV+= PATH_GTKCONFIG="${GTK_CONFIG}"
-PLIST_SUB+= X11=""
-.endif
-
post-patch:
@${REINPLACE_CMD} 's;/usr/include/event;${LOCALBASE}/include;g' \
${WRKSRC}/configure
-.if defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
@${REINPLACE_CMD} 's/gtk-config//g' ${WRKSRC}/configure
.endif