svn commit: r309034 - head/security/stegdetect
Baptiste Daroussin
bapt at FreeBSD.org
Sun Dec 16 18:13:59 UTC 2012
Author: bapt
Date: Sun Dec 16 18:13:58 2012
New Revision: 309034
URL: http://svnweb.freebsd.org/changeset/ports/309034
Log:
Convert to new options framework
Modified:
head/security/stegdetect/Makefile
Modified: head/security/stegdetect/Makefile
==============================================================================
--- head/security/stegdetect/Makefile Sun Dec 16 18:11:51 2012 (r309033)
+++ head/security/stegdetect/Makefile Sun Dec 16 18:13:58 2012 (r309034)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: stegdetect
-# Date created: Jul 19, 2001
-# Whom: Mark Pulford <mark at kyne.com.au>
-#
+# Created by: Mark Pulford <mark at kyne.com.au>
# $FreeBSD$
-#
PORTNAME= stegdetect
PORTVERSION= 0.6
@@ -16,12 +12,18 @@ MASTER_SITES= http://www.outguess.org/ \
MAINTAINER= ports at 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
More information about the svn-ports-head
mailing list