Date: Sun, 16 Dec 2012 18:13:59 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309034 - head/security/stegdetect Message-ID: <201212161813.qBGIDxqo027005@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212161813.qBGIDxqo027005>