From owner-svn-ports-head@freebsd.org Mon Dec 18 10:52:16 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F9E4E835A0; Mon, 18 Dec 2017 10:52:16 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE69074874; Mon, 18 Dec 2017 10:52:15 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBIAqF5b045564; Mon, 18 Dec 2017 10:52:15 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBIAqFYD045563; Mon, 18 Dec 2017 10:52:15 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201712181052.vBIAqFYD045563@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 18 Dec 2017 10:52:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456610 - head/graphics/openrm X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: head/graphics/openrm X-SVN-Commit-Revision: 456610 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 10:52:16 -0000 Author: amdmi3 Date: Mon Dec 18 10:52:14 2017 New Revision: 456610 URL: https://svnweb.freebsd.org/changeset/ports/456610 Log: - Add LICENSE - Switch to options helpers Modified: head/graphics/openrm/Makefile Modified: head/graphics/openrm/Makefile ============================================================================== --- head/graphics/openrm/Makefile Mon Dec 18 10:51:30 2017 (r456609) +++ head/graphics/openrm/Makefile Mon Dec 18 10:52:14 2017 (r456610) @@ -13,6 +13,9 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DEMO_DISTFILE: MAINTAINER= ports@FreeBSD.org COMMENT= Development environment used to build 2D/3D/stereo graphics +LICENSE= LGPL20+ # from sources, though LICENSE file is LGPL21 +LICENSE_FILE= ${WRKSRC}/LICENSE.html + USES= jpeg perl5 shebangfix SHEBANG_FILES= doc/*.pl USE_GL= glu @@ -45,16 +48,14 @@ DEMO_DISTFILE= ${DISTNAME:S,-devel-,-demo-,}${EXTRACT_ DEMO_WRKSRC= ${WRKDIR}/rmdemo .endif -post-patch: -.if ${PORT_OPTIONS:MEXAMPLES} - ${REINPLACE_CMD} -e \ +post-patch-EXAMPLES-on: + @${REINPLACE_CMD} -e \ '/^RM/s|/usr|${PREFIX}| ; \ /^OPENGL/s|/usr|${LOCALBASE}| ; \ /^X11/s|/usr/X11R6|${LOCALBASE}| ; \ /^OPT/s|-g|| ; \ /^ARCH/s|-m32|| ; \ /^JPEG/s|/usr|${LOCALBASE}|' ${DEMO_WRKSRC}/makeinclude -.endif do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/include/rm @@ -64,17 +65,19 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/lib/${f}.so.1 ${STAGEDIR}${PREFIX}/lib ${LN} -fs ${f}.so.1 ${STAGEDIR}${PREFIX}/lib/${f}.so .endfor + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/HTML/images (cd ${WRKSRC} && ${INSTALL_DATA} FUTUREPLANS README RELEASENOTES \ ${STAGEDIR}${DOCSDIR}) ${INSTALL_DATA} ${WRKSRC}/doc/HTML/*.html ${STAGEDIR}${DOCSDIR}/HTML ${INSTALL_DATA} ${WRKSRC}/doc/HTML/images/* \ ${STAGEDIR}${DOCSDIR}/HTML/images -.if ${PORT_OPTIONS:MEXAMPLES} + +do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/data (cd ${DEMO_WRKSRC} && ${INSTALL_DATA} README configure makeinclude \ Makefile.x11 *.c *.h ${STAGEDIR}${EXAMPLESDIR}) ${INSTALL_DATA} ${DEMO_WRKSRC}/data/* ${STAGEDIR}${EXAMPLESDIR}/data -.endif .include