From owner-svn-ports-all@FreeBSD.ORG Thu Oct 31 15:12:29 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CA660D3C; Thu, 31 Oct 2013 15:12:29 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A858625F4; Thu, 31 Oct 2013 15:12:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9VFCTI8038938; Thu, 31 Oct 2013 15:12:29 GMT (envelope-from gahr@svn.freebsd.org) Received: (from gahr@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9VFCS2N038933; Thu, 31 Oct 2013 15:12:28 GMT (envelope-from gahr@svn.freebsd.org) Message-Id: <201310311512.r9VFCS2N038933@svn.freebsd.org> From: Pietro Cerutti Date: Thu, 31 Oct 2013 15:12:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332250 - in head/graphics/ayam: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2013 15:12:29 -0000 Author: gahr Date: Thu Oct 31 15:12:28 2013 New Revision: 332250 URL: http://svnweb.freebsd.org/changeset/ports/332250 Log: - Build and install shaders - Add LICENSE - Convert to new LIB_DEPENDS format - Convert to USES+=tk - STAGE-clean - Convert to OPTIONSng (DOCS) Added: head/graphics/ayam/files/patch-scn-shaders_Makefile (contents, props changed) Modified: head/graphics/ayam/Makefile head/graphics/ayam/files/patch-Makefile.shared (contents, props changed) head/graphics/ayam/pkg-plist (contents, props changed) Modified: head/graphics/ayam/Makefile ============================================================================== --- head/graphics/ayam/Makefile Thu Oct 31 15:11:11 2013 (r332249) +++ head/graphics/ayam/Makefile Thu Oct 31 15:12:28 2013 (r332250) @@ -10,13 +10,18 @@ DISTNAME= ${PORTNAME}${PORTVERSION}.src MAINTAINER= gahr@FreeBSD.org COMMENT= 3D modeling environment for the RenderMan interface -LIB_DEPENDS= aqsis_util.1:${PORTSDIR}/graphics/aqsis \ - tiff.4:${PORTSDIR}/graphics/tiff +LICENSE= BSD + +LIB_DEPENDS= libaqsis_util.so:${PORTSDIR}/graphics/aqsis \ + libtiff.so:${PORTSDIR}/graphics/tiff +BUILD_DEPENDS= aqsl:${PORTSDIR}/graphics/aqsis + +OPTIONS_DEFINE= DOCS USE_XORG= xmu xext x11 USE_GL= yes USE_LDCONFIG= ${PREFIX}/lib/ayam -USE_TK= 84 +USES+= tk:84 WRKSRC= ${WRKDIR}/${PORTNAME}/src MAKEFILE= Makefile.shared MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" @@ -25,8 +30,7 @@ MAKE_JOBS_UNSAFE= yes AYAM_PLUGINS= csphere mfio PLUGINS_DIR= ${PREFIX}/lib/${PORTNAME} -NO_STAGE= yes -.include +.include .if ${ARCH} == "alpha" BROKEN= Does not build on alpha @@ -38,60 +42,68 @@ post-patch: ${WRKSRC}/MF3D/Makefile.mf3d @${REINPLACE_CMD} -e \ 's|%%TCL_INCLUDEDIR%%|${TCL_INCLUDEDIR}|g; \ - s|%%TCL_LIBDIR%%|${TCL_LIBDIR}|g; s|%%USE_TCL%%|${USE_TCL}|g; \ + s|%%TCL_LIBDIR%%|${LOCALBASE}/lib|g; s|%%TCL_SHLIB_VER%%|${TCL_SHLIB_VER}|g; \ s|%%TK_INCLUDEDIR%%|${TK_INCLUDEDIR}|g; \ - s|%%TK_LIBDIR%%|${TK_LIBDIR}|g; s|%%USE_TK%%|${USE_TK}|g' \ + s|%%TK_LIBDIR%%|${LOCALBASE}/lib|g; s|%%TK_SHLIB_VER%%|${TK_SHLIB_VER}|g' \ ${WRKSRC}/Makefile.shared + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/../scn/shaders/Makefile + +post-build: + cd ${WRKSRC}/../scn/shaders && ${GMAKE} slx do-install: # binary and wrapper - ${INSTALL_PROGRAM} ${WRKSRC}/ayamsh ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ayamsh ${STAGEDIR}${PREFIX}/bin @(${ECHO_CMD} "#!${SH}"; \ ${ECHO_CMD} "${PREFIX}/bin/ayamsh ${PLUGINS_DIR}/tcl/ayam.tcl \$$@" \ - ) >${PREFIX}/bin/ayam - @${CHMOD} ugo+x ${PREFIX}/bin/ayam + ) > ${STAGEDIR}${PREFIX}/bin/ayam + @${CHMOD} ugo+x ${STAGEDIR}${PREFIX}/bin/ayam + +# shaders + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/ayam/shaders + ${INSTALL_DATA} ${WRKSRC}/../scn/shaders/*.slx ${STAGEDIR}${PREFIX}/lib/ayam/shaders # plugins - @${MKDIR} ${PLUGINS_DIR} + @${MKDIR} ${STAGEDIR}${PLUGINS_DIR} .for i in ${AYAM_PLUGINS} - ${INSTALL_DATA} ${WRKSRC}/plugins/${i}.tcl ${PLUGINS_DIR} - ${INSTALL_PROGRAM} ${WRKSRC}/plugins/${i}.so ${PLUGINS_DIR} + ${INSTALL_DATA} ${WRKSRC}/plugins/${i}.tcl ${STAGEDIR}${PLUGINS_DIR} + ${INSTALL_PROGRAM} ${WRKSRC}/plugins/${i}.so ${STAGEDIR}${PLUGINS_DIR} .endfor - ${INSTALL_PROGRAM} ${WRKSRC}/plugins/ayslx.so ${PLUGINS_DIR} - ${INSTALL_DATA} ${WRKSRC}/plugins/loadayslx.tcl ${PLUGINS_DIR} + ${INSTALL_PROGRAM} ${WRKSRC}/plugins/ayslx.so ${STAGEDIR}${PLUGINS_DIR} + ${INSTALL_DATA} ${WRKSRC}/plugins/loadayslx.tcl ${STAGEDIR}${PLUGINS_DIR} - ${INSTALL_DATA} ${WRKSRC}/contrib/meta/*.tcl ${PLUGINS_DIR} - ${INSTALL_PROGRAM} ${WRKSRC}/contrib/meta/metaobj.so ${PLUGINS_DIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/meta/*.tcl ${STAGEDIR}${PLUGINS_DIR} + ${INSTALL_PROGRAM} ${WRKSRC}/contrib/meta/metaobj.so ${STAGEDIR}${PLUGINS_DIR} # tcl libs - @${MKDIR} ${PLUGINS_DIR}/tcl - ${INSTALL_DATA} ${WRKSRC}/tcl/*.tcl ${PLUGINS_DIR}/tcl - @${MKDIR} ${PLUGINS_DIR}/tcl/BWidget-1.2.1 + @${MKDIR} ${STAGEDIR}${PLUGINS_DIR}/tcl + ${INSTALL_DATA} ${WRKSRC}/tcl/*.tcl ${STAGEDIR}${PLUGINS_DIR}/tcl + @${MKDIR} ${STAGEDIR}${PLUGINS_DIR}/tcl/BWidget-1.2.1 ${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/*.tcl \ - ${PLUGINS_DIR}/tcl/BWidget-1.2.1 - @${MKDIR} ${PLUGINS_DIR}/tcl/BWidget-1.2.1/images + ${STAGEDIR}${PLUGINS_DIR}/tcl/BWidget-1.2.1 + @${MKDIR} ${STAGEDIR}${PLUGINS_DIR}/tcl/BWidget-1.2.1/images ${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/images/* \ - ${PLUGINS_DIR}/tcl/BWidget-1.2.1/images - @${MKDIR} ${PLUGINS_DIR}/tcl/BWidget-1.2.1/lang + ${STAGEDIR}${PLUGINS_DIR}/tcl/BWidget-1.2.1/images + @${MKDIR} ${STAGEDIR}${PLUGINS_DIR}/tcl/BWidget-1.2.1/lang ${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/lang/* \ - ${PLUGINS_DIR}/tcl/BWidget-1.2.1/lang + ${STAGEDIR}${PLUGINS_DIR}/tcl/BWidget-1.2.1/lang # data - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/lib/ayam-splash.gif ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/lib/ayam-splash.gif ${STAGEDIR}${DATADIR} # docs -.ifndef (NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Setup.txt ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/ayam.pdf ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/refcard.pdf ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/refcard.tcl ${DOCSDIR} - @${MKDIR} ${DOCSDIR}/html - ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/html/*.html ${DOCSDIR}/html - @${MKDIR} ${DOCSDIR}/html/pics +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Setup.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/ayam.pdf ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/refcard.pdf ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/refcard.tcl ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR}/html + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/html/*.html ${STAGEDIR}${DOCSDIR}/html + @${MKDIR} ${STAGEDIR}${DOCSDIR}/html/pics ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/html/pics/* \ - ${DOCSDIR}/html/pics + ${STAGEDIR}${DOCSDIR}/html/pics .endif -.include +.include Modified: head/graphics/ayam/files/patch-Makefile.shared ============================================================================== --- head/graphics/ayam/files/patch-Makefile.shared Thu Oct 31 15:11:11 2013 (r332249) +++ head/graphics/ayam/files/patch-Makefile.shared Thu Oct 31 15:12:28 2013 (r332250) @@ -96,7 +96,7 @@ -TCLLIB = -L$(TCLDIR)/unix -ltcl8.2 +#TCLLIB = -L$(TCLDIR)/unix -ltcl9.2 #TCLLIB = -L$(TCLDIR)/unix -ltcl8.0 -+TCLLIB = -L%%TCL_LIBDIR%% -ltcl%%USE_TCL%% ++TCLLIB = -L%%TCL_LIBDIR%% -ltcl%%TCL_SHLIB_VER%% # if you have an installed Tcl/Tk, you probably just want: #TCLLIB = -ltcl # MacOSX (Aqua): @@ -116,7 +116,7 @@ -TKLIB = -L$(TKDIR)/unix -ltk8.2 +#TKLIB = -L$(TKDIR)/unix -ltk8.2 #TKLIB = -L$(TKDIR)/unix -ltk8.0 -+TKLIB = -L%%TK_LIBDIR%% -ltk%%USE_TK%% ++TKLIB = -L%%TK_LIBDIR%% -ltk%%TK_SHLIB_VER%% # if you have an installed Tcl/Tk, you probably just want: #TKLIB = -ltk # MacOSX (Aqua): Added: head/graphics/ayam/files/patch-scn-shaders_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/ayam/files/patch-scn-shaders_Makefile Thu Oct 31 15:12:28 2013 (r332250) @@ -0,0 +1,18 @@ +--- ../scn/shaders/Makefile.orig 2013-10-31 15:39:27.000000000 +0100 ++++ ../scn/shaders/Makefile 2013-10-31 15:39:41.000000000 +0100 +@@ -18,7 +18,7 @@ + + # AQSIS + AQSHADERS := $(SOURCES:%.sl=%.slx) +-AQSL = aqsl ++AQSL = %%LOCALBASE%%/bin/aqsl + AQSLFLAGS = + + # 3Delight +@@ -136,4 +136,4 @@ + rm -f $*.slpp + + .sl.sdr: +- $(SDRC) $(SDRCFLAGS) $*.sl +\ No newline at end of file ++ $(SDRC) $(SDRCFLAGS) $*.sl Modified: head/graphics/ayam/pkg-plist ============================================================================== --- head/graphics/ayam/pkg-plist Thu Oct 31 15:11:11 2013 (r332249) +++ head/graphics/ayam/pkg-plist Thu Oct 31 15:12:28 2013 (r332250) @@ -9,6 +9,11 @@ lib/ayam/metacomp.tcl lib/ayam/metaobj.tcl lib/ayam/mfio.tcl lib/ayam/mfio.so +lib/ayam/shaders/DSnoisedsp.slx +lib/ayam/shaders/MFicydsp.slx +lib/ayam/shaders/MFicysrf.slx +lib/ayam/shaders/RCClouds.slx +lib/ayam/shaders/RSstripessrf.slx lib/ayam/tcl/about.tcl lib/ayam/tcl/action.tcl lib/ayam/tcl/acurve.tcl