Date: Tue, 4 Jun 2013 14:40:29 +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: r319865 - in head/science: ecs v_sim Message-ID: <201306041440.r54EeTJ8029189@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Tue Jun 4 14:40:29 2013 New Revision: 319865 URL: http://svnweb.freebsd.org/changeset/ports/319865 Log: WITHOUT_NLS -> PORT_OPTIONS:MNLS NOPORTDOCS -> PORT_OPTIONS:MDOCS NOPORTEXAMPLES -> PORT_OPTIONS:MEXAMPLES Modified: head/science/ecs/Makefile head/science/v_sim/Makefile Modified: head/science/ecs/Makefile ============================================================================== --- head/science/ecs/Makefile Tue Jun 4 14:32:59 2013 (r319864) +++ head/science/ecs/Makefile Tue Jun 4 14:40:29 2013 (r319865) @@ -40,19 +40,21 @@ CONFIGURE_ARGS+=--with-adf=${LOCALBASE} CONFIGURE_ARGS+=--without-adf --without-ccm .endif -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.else +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext iconv PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " .endif .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-debug .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} USE_TEX= tex:build BUILD_DEPENDS+= fig2dev:${PORTSDIR}/print/transfig PORTDOCS= mi_ecs.pdf mt_ecs.pdf @@ -76,12 +78,12 @@ CONFIGURE_ARGS+= --with-scotch=${LOCALBA .endif pre-configure: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${REINPLACE_CMD} -e '/^SUBDIRS/s| po| po doc|' ${WRKSRC}/Makefile.in .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} .endif Modified: head/science/v_sim/Makefile ============================================================================== --- head/science/v_sim/Makefile Tue Jun 4 14:32:59 2013 (r319864) +++ head/science/v_sim/Makefile Tue Jun 4 14:40:29 2013 (r319865) @@ -29,15 +29,17 @@ LDFLAGS+= -L${LOCALBASE}/lib USE_LDCONFIG= yes INSTALLS_ICONS= yes -.if !defined(NOPORTDOCS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} MAN1= v_sim.1 .endif -.if defined(WITHOUT_NLS) -PLIST_SUB+= NLS="@comment " -.else +.if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " .endif .if !defined(WITHOUT_CDF) @@ -63,15 +65,15 @@ pre-configure: -e 's|CFLAGS="-O2"|#CFLAGS="-O2"|;s|Werror ansi pedantic-errors||' \ -e 's|$${docdir}/examples|${EXAMPLESDIR}|' \ ${WRKSRC}/${CONFIGURE_SCRIPT} -.if defined(WITHOUT_NLS) +.if ! ${PORT_OPTIONS:MNLS} ${REINPLACE_CMD} -e 's| po ||' \ ${WRKSRC}/Makefile.in .endif -.if defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${REINPLACE_CMD} -e 's|Documentation||' \ ${WRKSRC}/Makefile.in .endif -.if defined(NOPORTEXAMPLES) +.if ! ${PORT_OPTIONS:MEXAMPLES} ${REINPLACE_CMD} -e 's|pixmaps \\|pixmaps|;s|examples$$||' \ ${WRKSRC}/Makefile.in ${FIND} ${WRKSRC}/lib/plug-ins -name Makefile.in | ${XARGS} \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306041440.r54EeTJ8029189>