Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2012 14:22:56 +0000 (UTC)
From:      Alberto Villa <avilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r303138 - head/devel/qscintilla2
Message-ID:  <201208251422.q7PEMuml049743@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avilla
Date: Sat Aug 25 14:22:56 2012
New Revision: 303138
URL: http://svn.freebsd.org/changeset/ports/303138

Log:
  - OPTIONSngify.

Modified:
  head/devel/qscintilla2/Makefile   (contents, props changed)

Modified: head/devel/qscintilla2/Makefile
==============================================================================
--- head/devel/qscintilla2/Makefile	Sat Aug 25 14:16:00 2012	(r303137)
+++ head/devel/qscintilla2/Makefile	Sat Aug 25 14:22:56 2012	(r303138)
@@ -19,7 +19,8 @@ USE_QT4=	qmake_build moc_build gui xml d
 HAS_CONFIGURE=	yes
 USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
-OPTIONS=	NLS "Build with NLS support" on
+OPTIONS_DEFINE=	NLS
+OPTIONS_DEFAULT=	NLS
 
 BUILD_WRKSRC=		${WRKSRC}/Qt4
 INSTALL_WRKSRC=		${BUILD_WRKSRC}
@@ -32,7 +33,7 @@ PORTEXAMPLES=	*
 .include "../py-sip/files/bsd.pyqt.mk"
 .include <bsd.port.options.mk>
 
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
 PLIST_SUB+=	NLS=""
 .else
 PLIST_SUB+=	NLS="@comment "
@@ -46,7 +47,7 @@ post-patch:
 		s|$$$$\[QT_INSTALL_DATA\]|${PREFIX}/share/qt4|' \
 		qscintilla.pro
 
-.if defined(WITHOUT_NLS)
+.if empty(PORT_OPTIONS:MNLS)
 	cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e \
 		's|trans qsci|qsci|' qscintilla.pro
 .endif
@@ -63,14 +64,14 @@ post-configure:
 		${BUILD_WRKSRC}/Makefile
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	cd ${WRKSRC} &&\
 		${MKDIR} ${DOCSDIR}/html ${DOCSDIR}/Scintilla &&\
 		${INSTALL_DATA} NEWS README ${DOCSDIR} &&\
 		${INSTALL_DATA} doc/html-Qt4/* ${DOCSDIR}/html &&\
 		${INSTALL_DATA} doc/Scintilla/* ${DOCSDIR}/Scintilla
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	cd ${WRKSRC}/example-Qt4 &&\
 		${MKDIR} ${EXAMPLESDIR}/images &&\
 		${INSTALL_DATA} *.* ${EXAMPLESDIR} &&\



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