Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 08:19:30 +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: r304882 - head/textproc/libexttextcat
Message-ID:  <201209260819.q8Q8JUgO088769@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Sep 26 08:19:30 2012
New Revision: 304882
URL: http://svn.freebsd.org/changeset/ports/304882

Log:
  Convert to OptionsNG
  Removed never used code

Modified:
  head/textproc/libexttextcat/Makefile

Modified: head/textproc/libexttextcat/Makefile
==============================================================================
--- head/textproc/libexttextcat/Makefile	Wed Sep 26 07:40:25 2012	(r304881)
+++ head/textproc/libexttextcat/Makefile	Wed Sep 26 08:19:30 2012	(r304882)
@@ -1,9 +1,4 @@
-# New ports collection makefile for:	libexttextcat
-# Date created:		2012-01-21
-# Whom:			Baptiste Daroussin <bapt@FreeBSD.org>
-#
 # $FreeBSD$
-#
 
 PORTNAME=	libexttextcat
 PORTVERSION=	3.3.1
@@ -25,24 +20,19 @@ USE_LDCONFIG=	yes
 
 PORTDOCS=	README README.libtextcat TODO
 
-OPTIONS=	COMPAT_TEXTCAT "Install libtextcat compatible files" Off
+OPTIONS_DEFINE= COMPAT_TEXTCAT DOCS
+COMPAT_TEXTCAT_DESC=	Install libtextcat compatible files
 
 .include <bsd.port.options.mk>
 
-.if defined(WITH_COMPAT_TEXTCAT)
+.if ${PORT_OPTIONS:MCOMPAT_TEXTCAT}
 PLIST_SUB+=	TEXTCAT=''
 .else
 PLIST_SUB+=	TEXTCAT='@comment '
 .endif
 
-.if defined(WITH_LM_FILES)
-PLIST_SUB+=	LM=''
-.else
-PLIST_SUB+=	LM='@comment '
-.endif
-
 post-install:
-.if defined(WITH_COMPAT_TEXTCAT)
+.if ${PORT_OPTIONS:MCOMPAT_TEXTCAT}
 	${LN} -sf libexttextcat/textcat.h ${PREFIX}/include/
 	${LN} -sf libexttextcat ${PREFIX}/include/libtextcat
 	${LN} -sf libexttextcat-1.0.a ${PREFIX}/lib/libtextcat.a
@@ -50,7 +40,7 @@ post-install:
 	${LN} -sf libexttextcat-1.0.so.0 ${PREFIX}/lib/libtextcat.so
 	${LN} -sf libexttextcat-1.0.so.0 ${PREFIX}/lib/libtextcat.so.0
 .endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif



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