diff options
author | Giorgio Peron <giorgio.peron@gmail.com> | 2012-12-18 16:42:16 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-18 16:43:50 +0100 |
commit | 1dddfc00f67ae4a4052a6403e31c8abc01136e78 (patch) | |
tree | 6910f55a6f9864893b64281cb5f430e527553005 /graphics | |
parent | 36b48b53ca59786c0b0ff9eab7875244a23d1bb7 (diff) |
graphics/luxrender: Added (rendering engine).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/luxrender/README | 4 | ||||
-rw-r--r-- | graphics/luxrender/doinst.sh | 13 | ||||
-rw-r--r-- | graphics/luxrender/files/luxrender.desktop | 11 | ||||
-rw-r--r-- | graphics/luxrender/files/luxrender.svg | 252 | ||||
-rw-r--r-- | graphics/luxrender/luxrender.SlackBuild | 181 | ||||
-rw-r--r-- | graphics/luxrender/luxrender.info | 14 | ||||
-rw-r--r-- | graphics/luxrender/slack-desc | 19 |
7 files changed, 494 insertions, 0 deletions
diff --git a/graphics/luxrender/README b/graphics/luxrender/README new file mode 100644 index 0000000000000..cc6d31e58a22c --- /dev/null +++ b/graphics/luxrender/README @@ -0,0 +1,4 @@ +LuxRender is a physically based and unbiased rendering engine. +Based on state of the art algorithms, LuxRender simulates the flow +of light according to physical equations, thus producing realistic +images of photographic quality. diff --git a/graphics/luxrender/doinst.sh b/graphics/luxrender/doinst.sh new file mode 100644 index 0000000000000..21e9945eb9a1a --- /dev/null +++ b/graphics/luxrender/doinst.sh @@ -0,0 +1,13 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi
\ No newline at end of file diff --git a/graphics/luxrender/files/luxrender.desktop b/graphics/luxrender/files/luxrender.desktop new file mode 100644 index 0000000000000..1b58a76d2693e --- /dev/null +++ b/graphics/luxrender/files/luxrender.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Lux +GenericName=Lux Renderer +Comment=LuxRender unbiased rendering system +Exec=luxrender +Icon=/usr/share/pixmaps/luxrender.svg +Terminal=false +Type=Application +Categories=Application;Graphics;3DGraphics + + diff --git a/graphics/luxrender/files/luxrender.svg b/graphics/luxrender/files/luxrender.svg new file mode 100644 index 0000000000000..9d8cb65ba0549 --- /dev/null +++ b/graphics/luxrender/files/luxrender.svg @@ -0,0 +1,252 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="88.582672" + height="88.582672" + id="svg16557" + sodipodi:version="0.32" + inkscape:version="0.45.1" + sodipodi:docbase="/home/abel/luxdoc/logo" + sodipodi:docname="luxlogo_shiny.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + version="1.0"> + <defs + id="defs16559"> + <filter + inkscape:collect="always" + x="-1.7561407" + width="4.5122814" + y="-1.7561359" + height="4.5122719" + id="filter7125"> + <feGaussianBlur + inkscape:collect="always" + stdDeviation="7.1808582" + id="feGaussianBlur7127" /> + </filter> + <filter + inkscape:collect="always" + x="-1.7561407" + width="4.5122814" + y="-1.7561406" + height="4.5122809" + id="filter7129"> + <feGaussianBlur + inkscape:collect="always" + stdDeviation="7.1808582" + id="feGaussianBlur7131" /> + </filter> + <filter + inkscape:collect="always" + x="-1.7561407" + width="4.5122814" + y="-1.7561433" + height="4.5122867" + id="filter7137"> + <feGaussianBlur + inkscape:collect="always" + stdDeviation="7.1808582" + id="feGaussianBlur7139" /> + </filter> + <filter + inkscape:collect="always" + x="-1.1999983" + width="3.3999965" + y="-1.2000017" + height="3.4000034" + id="filter8554"> + <feGaussianBlur + inkscape:collect="always" + stdDeviation="2.8056737" + id="feGaussianBlur8556" /> + </filter> + <filter + inkscape:collect="always" + x="-1.2000465" + width="3.4000931" + y="-1.1999536" + height="3.3999069" + id="filter8570"> + <feGaussianBlur + inkscape:collect="always" + stdDeviation="3.5617226" + id="feGaussianBlur8572" /> + </filter> + <filter + inkscape:collect="always" + x="-1.2000484" + width="3.4000969" + y="-1.1999516" + height="3.3999031" + id="filter8586"> + <feGaussianBlur + inkscape:collect="always" + stdDeviation="3.5617182" + id="feGaussianBlur8588" /> + </filter> + <filter + inkscape:collect="always" + x="-0.87915176" + width="2.7583034" + y="-0.66055602" + height="2.3211119" + id="filter8614"> + <feGaussianBlur + inkscape:collect="always" + stdDeviation="12.77352" + id="feGaussianBlur8616" /> + </filter> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="2.7821276" + inkscape:cx="103.86591" + inkscape:cy="27.788067" + inkscape:document-units="px" + inkscape:current-layer="layer2" + inkscape:window-width="1280" + inkscape:window-height="729" + inkscape:window-x="0" + inkscape:window-y="24" + width="25mm" + height="25mm" + units="mm" /> + <metadata + id="metadata16562"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:groupmode="layer" + id="layer2" + inkscape:label="shadow" + style="display:inline"> + <path + style="opacity:0.4;fill:#6b3f3b;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-miterlimit:4;display:inline;filter:url(#filter8554)" + inkscape:transform-center-x="5.0734767" + d="M 6.2532264,42.855018 C 7.2755464,41.832708 9.2592464,41.832708 10.281566,42.855018 C 11.347206,43.920658 11.386146,45.816048 10.300196,46.901988 C 9.2142564,47.987868 7.3188664,47.948938 6.2532264,46.883288 C 5.2309164,45.861038 5.2309764,43.877268 6.2532264,42.855018 z " + id="path2744" + sodipodi:nodetypes="csssc" /> + <path + style="opacity:0.4;fill:#6b3f3b;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-miterlimit:4;display:inline;filter:url(#filter8570)" + inkscape:transform-center-x="5.0734767" + d="M 20.650676,57.252472 C 21.998416,55.904718 24.380146,55.871978 25.742006,57.233832 C 27.130556,58.622322 27.130556,60.955322 25.742006,62.343802 C 24.380146,63.705662 21.998416,63.672922 20.650676,62.325172 C 19.330136,61.004632 19.330136,58.573012 20.650676,57.252472 z " + id="path5720" + sodipodi:nodetypes="csssc" /> + <path + style="opacity:0.6;fill:#6b3f3b;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-miterlimit:4;display:inline;filter:url(#filter8614)" + inkscape:transform-center-x="5.0734767" + d="M 47.151766,24.074918 C 50.366086,20.860538 55.686604,20.860538 58.900984,24.074918 C 60.467284,25.641208 61.252294,27.697578 61.288134,29.818988 C 61.276334,31.021358 61.932744,32.069068 62.686864,32.672348 C 63.339654,33.194598 64.450104,33.721038 65.894554,33.381038 C 69.590104,32.676158 73.360004,33.759648 76.207764,36.607408 C 80.746034,41.145678 80.746034,48.592698 76.207764,53.130908 C 73.367804,55.970928 69.440224,57.024712 65.745364,56.320018 C 64.304854,55.980918 63.293634,56.580528 62.686864,57.065962 C 61.905014,57.691492 61.257574,58.809602 61.269514,60.012622 C 61.233654,62.133772 60.474174,64.090272 58.900984,65.663462 C 55.686674,68.877782 50.366086,68.877782 47.151766,65.663462 C 43.937386,62.449072 43.937386,57.128562 47.151766,53.914178 C 48.718056,52.347888 50.774416,51.562878 52.895844,51.527038 C 54.098404,51.538958 55.145984,50.882298 55.749204,50.128368 C 56.271444,49.475508 56.797894,48.365128 56.457894,46.920618 C 56.175144,45.438018 56.210524,44.161118 56.495214,42.668518 C 56.834244,41.228068 56.234644,40.216778 55.749204,39.610018 C 55.123614,38.827968 54.005324,38.180788 52.802554,38.192648 C 50.681456,38.156798 48.724886,37.397258 47.151766,35.824138 C 43.937386,32.609758 43.937386,27.289238 47.151766,24.074918 z " + id="path5722" + sodipodi:nodetypes="cscscsscscssscsccscsc" /> + <path + style="opacity:0.6;fill:#6b3f3b;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-miterlimit:4;display:inline;filter:url(#filter7137)" + inkscape:transform-center-x="5.0734767" + d="M 34.619226,71.221022 C 36.496106,69.344132 39.717266,69.344132 41.594156,71.221022 C 43.485346,73.112212 43.512616,76.314802 41.612846,78.214572 C 39.713006,80.114412 36.510416,80.087152 34.619226,78.195942 C 32.742336,76.319062 32.742336,73.097912 34.619226,71.221022 z " + id="path5724" + sodipodi:nodetypes="csssc" /> + <path + style="opacity:0.4;fill:#6b3f3b;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-miterlimit:4;display:inline;filter:url(#filter8586)" + inkscape:transform-center-x="5.0734767" + d="M 20.650676,27.413148 C 21.998486,26.065398 24.380146,26.032648 25.742006,27.394518 C 27.130556,28.782998 27.130556,31.115998 25.742006,32.504478 C 24.380146,33.866338 21.998416,33.833598 20.650676,32.485848 C 19.330196,31.165308 19.330136,28.733688 20.650676,27.413148 z " + id="path5726" + sodipodi:nodetypes="csssc" /> + <path + style="opacity:0.6;fill:#6b3f3b;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-miterlimit:4;display:inline;filter:url(#filter7129)" + inkscape:transform-center-x="5.0734767" + d="M 34.619226,11.542378 C 36.496106,9.6654884 39.717266,9.6654884 41.594156,11.542378 C 43.485346,13.433578 43.512616,16.636158 41.612846,18.535998 C 39.713006,20.435768 36.510416,20.408498 34.619226,18.517298 C 32.742336,16.640408 32.742336,13.419258 34.619226,11.542378 z " + id="path5728" + sodipodi:nodetypes="csssc" /> + <path + style="opacity:0.6;fill:#6b3f3b;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-miterlimit:4;display:inline;filter:url(#filter7125)" + inkscape:transform-center-x="5.0734767" + d="M 34.619226,41.381698 C 36.496106,39.504808 39.717266,39.504808 41.594156,41.381698 C 43.485346,43.272888 43.512616,46.475478 41.612846,48.375318 C 39.713006,50.275088 36.510416,50.247818 34.619226,48.356618 C 32.742336,46.479728 32.742336,43.258578 34.619226,41.381698 z " + id="path5730" + sodipodi:nodetypes="csssc" /> + </g> + <g + inkscape:label="objects" + inkscape:groupmode="layer" + id="layer1" + style="display:inline" + sodipodi:insensitive="true"> + <path + style="fill:#f4ca1c;fill-opacity:1;stroke:#d88d44;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74157302" + inkscape:transform-center-x="5.0734767" + d="M 34.619226,11.542378 C 36.496106,9.6654884 39.717266,9.6654884 41.594156,11.542378 C 43.485346,13.433578 43.512616,16.636158 41.612846,18.535998 C 39.713006,20.435768 36.510416,20.408498 34.619226,18.517298 C 32.742336,16.640408 32.742336,13.419258 34.619226,11.542378 z M 20.650676,27.413148 C 21.998486,26.065398 24.380146,26.032648 25.742006,27.394518 C 27.130556,28.782998 27.130556,31.115998 25.742006,32.504478 C 24.380146,33.866338 21.998416,33.833598 20.650676,32.485848 C 19.330196,31.165308 19.330136,28.733688 20.650676,27.413148 z M 6.2532264,42.855018 C 7.2755464,41.832708 9.2592464,41.832708 10.281566,42.855018 C 11.347206,43.920658 11.386146,45.816048 10.300196,46.901988 C 9.2142564,47.987868 7.3188664,47.948938 6.2532264,46.883288 C 5.2309164,45.861038 5.2309764,43.877268 6.2532264,42.855018 z M 47.151766,24.074918 C 50.366086,20.860538 55.686604,20.860538 58.900984,24.074918 C 60.467284,25.641208 61.252294,27.697578 61.288134,29.818988 C 61.276334,31.021358 61.932744,32.069068 62.686864,32.672348 C 63.339654,33.194598 64.450104,33.721038 65.894554,33.381038 C 69.590104,32.676158 73.360004,33.759648 76.207764,36.607408 C 80.746034,41.145678 80.746034,48.592698 76.207764,53.130908 C 73.367804,55.970928 69.440224,57.024712 65.745364,56.320018 C 64.304854,55.980918 63.293634,56.580528 62.686864,57.065962 C 61.905014,57.691492 61.257574,58.809602 61.269514,60.012622 C 61.233654,62.133772 60.474174,64.090272 58.900984,65.663462 C 55.686674,68.877782 50.366086,68.877782 47.151766,65.663462 C 43.937386,62.449072 43.937386,57.128562 47.151766,53.914178 C 48.718056,52.347888 50.774416,51.562878 52.895844,51.527038 C 54.098404,51.538958 55.145984,50.882298 55.749204,50.128368 C 56.271444,49.475508 56.797894,48.365128 56.457894,46.920618 C 56.175144,45.438018 56.210524,44.161118 56.495214,42.668518 C 56.834244,41.228068 56.234644,40.216778 55.749204,39.610018 C 55.123614,38.827968 54.005324,38.180788 52.802554,38.192648 C 50.681456,38.156798 48.724886,37.397258 47.151766,35.824138 C 43.937386,32.609758 43.937386,27.289238 47.151766,24.074918 z M 34.619226,41.381698 C 36.496106,39.504808 39.717266,39.504808 41.594156,41.381698 C 43.485346,43.272888 43.512616,46.475478 41.612846,48.375318 C 39.713006,50.275088 36.510416,50.247818 34.619226,48.356618 C 32.742336,46.479728 32.742336,43.258578 34.619226,41.381698 z M 20.650676,57.252472 C 21.998416,55.904718 24.380146,55.871978 25.742006,57.233832 C 27.130556,58.622322 27.130556,60.955322 25.742006,62.343802 C 24.380146,63.705662 21.998416,63.672922 20.650676,62.325172 C 19.330136,61.004632 19.330136,58.573012 20.650676,57.252472 z M 34.619226,71.221022 C 36.496106,69.344132 39.717266,69.344132 41.594156,71.221022 C 43.485346,73.112212 43.512616,76.314802 41.612846,78.214572 C 39.713006,80.114412 36.510416,80.087152 34.619226,78.195942 C 32.742336,76.319062 32.742336,73.097912 34.619226,71.221022 z " + id="path4581" /> + </g> + <g + inkscape:groupmode="layer" + id="layer3" + inkscape:label="shinyness" + style="display:inline" + sodipodi:insensitive="true"> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 46.226376,31.416148 C 46.108036,28.753518 46.574236,26.922078 48.146326,25.302658 C 49.420096,23.990548 51.669474,23.123948 53.975684,23.308508 C 50.603016,24.070668 49.622336,24.806738 48.628126,26.143708 C 47.512906,27.643418 47.342146,29.515678 47.528106,31.179458 L 46.226376,31.416148 z " + id="path3762" + sodipodi:nodetypes="cscscc" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 46.226376,61.413162 C 46.108036,58.750532 46.574236,56.919092 48.146326,55.299668 C 49.420096,53.987558 51.669474,53.120958 53.975684,53.305518 C 50.603016,54.067678 49.622336,54.803748 48.628126,56.140718 C 47.512906,57.640432 47.342146,59.512692 47.528106,61.176472 L 46.226376,61.413162 z " + id="path4733" + sodipodi:nodetypes="cscscc" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 57.982604,44.554748 C 58.165694,40.678168 59.226354,39.345338 61.213104,37.516008 C 63.152994,35.729828 65.103334,34.843208 69.232094,35.184008 C 63.760684,35.903788 63.640424,36.733908 61.974584,38.267328 C 60.455074,39.666048 59.060744,42.000958 59.339114,44.310738 L 57.982604,44.554748 z " + id="path4735" + sodipodi:nodetypes="cscscc" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 34.478776,15.666128 C 34.415956,14.252918 34.663396,13.280858 35.497786,12.421348 C 36.173846,11.724938 37.367716,11.264988 38.591756,11.362948 C 36.801686,11.767458 36.512466,12.273778 35.984786,12.983388 C 35.392886,13.779378 35.244436,14.715258 35.343136,15.598318 L 34.478776,15.666128 z " + id="path4737" + sodipodi:nodetypes="cscscc" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 34.478776,45.732118 C 34.415956,44.318908 34.663396,43.346848 35.497786,42.487338 C 36.173846,41.790928 37.367716,41.330978 38.591756,41.428938 C 36.801686,41.833448 36.512466,42.339768 35.984786,43.049378 C 35.392886,43.845368 35.244436,44.781248 35.343136,45.664308 L 34.478776,45.732118 z " + id="path4739" + sodipodi:nodetypes="cscscc" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 34.478776,75.335552 C 34.415956,73.922342 34.663396,72.950282 35.497786,72.090772 C 36.173846,71.394362 37.367716,70.934412 38.591756,71.032372 C 36.801686,71.436882 36.512466,71.943202 35.984786,72.652812 C 35.392886,73.448802 35.244436,74.384682 35.343136,75.267742 L 34.478776,75.335552 z " + id="path4741" + sodipodi:nodetypes="cscscc" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 20.785736,30.384128 C 20.743126,29.425558 20.910956,28.766228 21.476916,28.183228 C 21.935486,27.710858 22.745276,27.398878 23.575526,27.465328 C 22.361336,27.739698 22.076736,28.222778 21.807246,28.564458 C 21.496366,28.958618 21.305076,29.739158 21.372016,30.338138 L 20.785736,30.384128 z " + id="path4743" + sodipodi:nodetypes="cscscc" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 20.785736,60.339992 C 20.743126,59.381422 20.910956,58.722092 21.476916,58.139092 C 21.935486,57.666722 22.745276,57.354742 23.575526,57.421192 C 22.361336,57.695562 22.076736,58.178642 21.807246,58.520322 C 21.496366,58.914482 21.305076,59.695022 21.372016,60.294002 L 20.785736,60.339992 z " + id="path4745" + sodipodi:nodetypes="cscscc" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 6.4394464,44.991948 C 6.4102464,44.334988 6.5252664,43.883118 6.9131464,43.483558 C 7.2274364,43.159818 7.7824264,42.945998 8.3514364,42.991538 C 7.5192864,43.179578 7.3242364,43.510658 7.1395464,43.744838 C 6.9264764,44.014968 6.7953764,44.549918 6.8412564,44.960428 L 6.4394464,44.991948 z " + id="path4747" + sodipodi:nodetypes="cscscc" /> + </g> +</svg> diff --git a/graphics/luxrender/luxrender.SlackBuild b/graphics/luxrender/luxrender.SlackBuild new file mode 100644 index 0000000000000..e670f3ace2d08 --- /dev/null +++ b/graphics/luxrender/luxrender.SlackBuild @@ -0,0 +1,181 @@ +#!/bin/sh + +# Slackware build script for luxrender + +# Copyright 2012 Giorgio Peron Campodarsego, PD, Italy giorgio.peron@gmail.com +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=luxrender +VERSION=${VERSION:-1.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +SRCVERSION=lux-4b4289cda943 +LUXRAYSRCVERSION=luxrays-589aa5dac899 + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; +# Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +rm -rf $LUXRAYSRCVERSION +rm -rf $SRCVERSION +tar xvjf $CWD/$SRCVERSION.tar.bz2 +tar xvjf $CWD/$LUXRAYSRCVERSION.tar.bz2 + +cd $TMP/$LUXRAYSRCVERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# fix some make files +sed -i "/project(LuxRays)/ a\ +SET(BUILD_LUXMARK on)" CMakeLists.txt +sed -i "/# Lookup user provide path first/ a\ +SET(OPENCL_ROOT /usr/share/cuda)" cmake/Packages/FindOpenCL.cmake +sed -i "/set(SLG_VERSION_MINOR 0devel6)/ a\ +set(CMAKE_CXX_FLAGS_RELEASE \"-lpthread -lm\")" samples/smallluxgpu2/CMakeLists.txt +sed -i "/set(LUXMARK_VERSION_MINOR 1beta2)/ a\ +set(CMAKE_CXX_FLAGS_RELEASE \"-lpthread\")" samples/luxmark/CMakeLists.txt + + +# luxmark moc files +cd samples/luxmark +moc aboutdialog.h -o moc_aboutdialog.cxx +moc hardwaretree.h -o moc_hardwaretree.cxx +moc luxmarkapp.h -o moc_luxmarkapp.cxx +moc mainwindow.h -o moc_mainwindow.cxx +moc resultdialog.h -o moc_resultdialog.cxx +moc submitdialog.h -o moc_submitdialog.cxx +cd - + +cmake ./ \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release + +# compile luxrays +make luxrays +make slg2 +make luxmark + +# manual installation +mkdir -p $PKG/usr/share/$PRGNAM/resources $PKG/usr/share/$PRGNAM/scenes +cp bin/* $PKG/usr/share/$PRGNAM +cp -r samples/luxmark/resources $PKG/usr/share/$PRGNAM +cp -r scenes $PKG/usr/share/$PRGNAM +cp -r samples/luxmark/scenes $PKG/usr/share/$PRGNAM + +mkdir -p $PKG/usr/bin +cat > $PKG/usr/bin/luxmark << EOF +#!/bin/sh +cd /usr/share/luxrender +./luxmark >/dev/null 2>&1 +EOF +chmod +x $PKG/usr/bin/luxmark +cat > $PKG/usr/bin/slg2 << EOF +#!/bin/sh +cd /usr/share/luxrender +./slg2 >/dev/null 2>&1 +EOF +chmod +x $PKG/usr/bin/slg2 + +cd $TMP/$SRCVERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# # fix some make files +sed -i "/########################## Find LuxRays ##########################/ a\ +SET(LuxRays_HOME $TMP/$LUXRAYSRCVERSION)" cmake/Dependencies.cmake +sed -i "s:SET(OPENCL_ROOT /usr/src/opencl-sdk):SET(OPENCL_ROOT /usr/share/cuda):g" cmake/Dependencies.cmake +sed -i "s:ADD_DEFINITIONS(-msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall -fPIC -DHAVE_PTHREAD_H):ADD_DEFINITIONS(-msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall -fPIC -DHAVE_PTHREAD_H -l png14):g" CMakeLists.txt +sed -i "/INSTALL(FILES \${CMAKE_SOURCE_DIR}\/wxgui\/luxrender.svg DESTINATION share\/pixmaps\/)/d" CMakeLists.txt +sed -i "/INSTALL(FILES \${CMAKE_SOURCE_DIR}\/wxgui\/luxrender.desktop DESTINATION share\/applications\/)/d" CMakeLists.txt + +cmake ./ + +# compile luxrender +make luxrender +make install DESTDIR=$PKG + +# /usr/local? no, thanks +cp -r $PKG/usr/local/* $PKG/usr +rm -rf $PKG/usr/local + +# copy pylux.so +cp pylux.so $PKG/usr/lib$LIBDIRSUFFIX/ + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS.txt \ + COPYING.txt \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications +cat $CWD/files/luxrender.svg> $PKG/usr/share/pixmaps/luxrender.svg +cat $CWD/files/luxrender.desktop> $PKG/usr/share/applications/luxrender.desktop + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/graphics/luxrender/luxrender.info b/graphics/luxrender/luxrender.info new file mode 100644 index 0000000000000..142515594f5cc --- /dev/null +++ b/graphics/luxrender/luxrender.info @@ -0,0 +1,14 @@ +PRGNAM="luxrender" +VERSION="1.1" +HOMEPAGE="http://www.luxrender.net/" +DOWNLOAD="\ + http://src.luxrender.net/luxrays/archive/589aa5dac899.tar.bz2 \ + http://src.luxrender.net/lux/archive/4b4289cda943.tar.bz2" +MD5SUM="\ + 66947b0b119fc4a4d7ae517590d09447 \ + 4512c45a396bfd2a88d0d38a3b0390e6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="cudatoolkit nvidia-driver opencl-headers FreeImage" +MAINTAINER="Giorgio Peron" +EMAIL="giorgio.peron@gmail.com" diff --git a/graphics/luxrender/slack-desc b/graphics/luxrender/slack-desc new file mode 100644 index 0000000000000..b69d9b4059d18 --- /dev/null +++ b/graphics/luxrender/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +luxrender: LuxRender (rendering engine) +luxrender: +luxrender: LuxRender is a physically based and unbiased rendering engine. +luxrender: Based on state of the art algorithms, LuxRender simulates the flow of +luxrender: light according to physical equations, thus producing realistic +luxrender: images of photographic quality. +luxrender: +luxrender: http://www.luxrender.net/ +luxrender: +luxrender: +luxrender: |