Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 06:40:48 +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: r304878 - head/security/truecrypt
Message-ID:  <201209260640.q8Q6emLV072909@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Sep 26 06:40:47 2012
New Revision: 304878
URL: http://svn.freebsd.org/changeset/ports/304878

Log:
  Convert to OptionsNG

Modified:
  head/security/truecrypt/Makefile

Modified: head/security/truecrypt/Makefile
==============================================================================
--- head/security/truecrypt/Makefile	Wed Sep 26 06:18:24 2012	(r304877)
+++ head/security/truecrypt/Makefile	Wed Sep 26 06:40:47 2012	(r304878)
@@ -1,7 +1,4 @@
-# New ports collection makefile for:	truecrypt
-# Date created: 	9 May 2011
-# Whom:			Ryan Steinmetz
-#
+# Creater by: Ryan Steinmetz <rpsfa@rit.edu>
 # $FreeBSD$
 
 PORTNAME=	truecrypt
@@ -39,25 +36,25 @@ WX_VER=		2.8.12
 LICENSE_FILE=	${WRKSRC}/License.txt
 
 PLIST_FILES=	bin/truecrypt
-.if !defined(NOPORTDOCS)
+
+OPTIONS_DEFINE=	X11 DOCS
+X11_DESC=	With GUI (depends on X)
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
 PLIST_FILES+=	%%DOCSDIR%%/TrueCrypt\ User\ Guide.pdf
 PLIST_FILES+=	%%DOCSDIR%%/License.txt
 PLIST_DIRS=	%%DOCSDIR%%
 .endif
 
-OPTIONS=	X11     "With GUI (depends on X)" off
-
-.include <bsd.port.options.mk>
-
-.ifdef(WITH_X11)
+.if ${PORT_OPTIONS:MX11}
 USE_GNOME=	gtk20
 NOGUI=
 .else
 NOGUI=		NOGUI=1
 .endif
 
-.include <bsd.port.pre.mk>
-
 .if (!exists(${DISTDIR}/${TC_SRCFILE}))
 DISTFILE_INSTRUCTIONS=\n\
 Due to licensing restrictions, certain files must be fetched manually.\n\n\
@@ -84,7 +81,7 @@ do-build:
 
 do-install:
 	@${INSTALL_PROGRAM} ${WRKSRC}/Main/truecrypt ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	@${INSTALL_DATA} ${WRKSRC}/License.txt ${DOCSDIR}
 	@${INSTALL_DATA} ${WRKSRC}/Release/Setup\ Files/TrueCrypt\ User\ Guide.pdf ${DOCSDIR}
@@ -93,4 +90,4 @@ do-install:
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209260640.q8Q6emLV072909>