diff options
author | vanilla <vanilla@FreeBSD.org> | 2015-06-24 21:55:11 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2015-06-24 21:55:11 +0800 |
commit | b2b0d3800065b58c66ec8e1423616724fd094ebd (patch) | |
tree | 9644ceb9bc25360b74ff0daf1d676deeb462ec70 /graphics | |
parent | 86dd38daa35ec450483a85f6a0353920a4ead8e4 (diff) | |
download | freebsd-ports-gnome-b2b0d3800065b58c66ec8e1423616724fd094ebd.tar.gz freebsd-ports-gnome-b2b0d3800065b58c66ec8e1423616724fd094ebd.tar.zst freebsd-ports-gnome-b2b0d3800065b58c66ec8e1423616724fd094ebd.zip |
Add lightzone , professional-level digital darkroom and photo editor.
PR: 201070
Submitted by: Yuri Victorovich <yuri@rawbw.com>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/lightzone/Makefile | 58 | ||||
-rw-r--r-- | graphics/lightzone/distinfo | 2 | ||||
-rw-r--r-- | graphics/lightzone/files/patch-products_lightzone | 13 | ||||
-rw-r--r-- | graphics/lightzone/files/patch-src_com_lightcrafts_platform_linux_TestSSE2.java | 29 | ||||
-rw-r--r-- | graphics/lightzone/pkg-descr | 3 | ||||
-rw-r--r-- | graphics/lightzone/pkg-plist | 30 |
7 files changed, 136 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 7e93f53198f6..b3d98cc7754a 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -530,6 +530,7 @@ SUBDIR += libwmf-nox11 SUBDIR += libwpg SUBDIR += libwpg03 + SUBDIR += lightzone SUBDIR += linplasma SUBDIR += linux-XnViewMP SUBDIR += linux-adobesvg diff --git a/graphics/lightzone/Makefile b/graphics/lightzone/Makefile new file mode 100644 index 000000000000..024e8aec62aa --- /dev/null +++ b/graphics/lightzone/Makefile @@ -0,0 +1,58 @@ +# Created by: Yuri Victorovich <yuri@rawbw.com> +# $FreeBSD$ + +PORTNAME= lightzone +DISTVERSION= 4.1.1 +CATEGORIES= graphics java +MASTER_SITES= GH +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= yuri@rawbw.com +COMMENT= Professional-level digital darkroom and photo editor + +LICENSE= BSD3CLAUSE + +BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \ + jhindexer:${PORTSDIR}/java/javahelp \ + git:${PORTSDIR}/devel/git \ + rsync:${PORTSDIR}/net/rsync \ + tidy:${PORTSDIR}/www/tidy-lib \ + autoconf:${PORTSDIR}/devel/autoconf +LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ + liblcms2.so:${PORTSDIR}/graphics/lcms2 \ + libtiff.so:${PORTSDIR}/graphics/tiff + +USE_GITHUB= yes +GH_ACCOUNT= ktgw0316 +GH_PROJECT= LightZone + +USES= desktop-file-utils gmake pkgconfig +USE_ANT= yes +USE_JAVA= yes +USE_GCC= yes +USE_LDCONFIG= yes +USE_XORG= x11 +JAVA_VENDOR= openjdk +JAVA_VERSION= 1.6+ +JAVA_BUILD= yes +JAVA_RUN= yes +INSTALLS_ICONS= yes + +DATADIR= ${PREFIX}/libexec/${PORTNAME} +WRKSRC= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME}/linux + +post-patch: + @${REINPLACE_CMD} -e 's|gcc|${CC}|' -e 's|g++|${CXX}|' ${WRKSRC}/../lightcrafts/mk/platform.mk + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/products/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + @${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/products/*.jar ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME} + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/products/LightZone-forkd ${STAGEDIR}${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/products/dcraw_lz ${STAGEDIR}${DATADIR} + ${INSTALL_LIB} ${WRKSRC}/products/*.so ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/products/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/ + @cd ${WRKSRC} && ${COPYTREE_SHARE} icons ${STAGEDIR}${PREFIX}/share/ + +.include <bsd.port.mk> diff --git a/graphics/lightzone/distinfo b/graphics/lightzone/distinfo new file mode 100644 index 000000000000..7ee882b8f6b7 --- /dev/null +++ b/graphics/lightzone/distinfo @@ -0,0 +1,2 @@ +SHA256 (lightzone/ktgw0316-LightZone-4.1.1_GH0.tar.gz) = 30ba265ceb101cc89a12c44849cadfffa0458445c92d20678904c4fbced3be3d +SIZE (lightzone/ktgw0316-LightZone-4.1.1_GH0.tar.gz) = 26478012 diff --git a/graphics/lightzone/files/patch-products_lightzone b/graphics/lightzone/files/patch-products_lightzone new file mode 100644 index 000000000000..49e303c7b112 --- /dev/null +++ b/graphics/lightzone/files/patch-products_lightzone @@ -0,0 +1,13 @@ +--- products/lightzone.orig 2015-06-23 04:08:58 UTC ++++ products/lightzone +@@ -15,8 +15,8 @@ elif [ "${PLATFORM}" = "SunOS" ]; then + totalmem=`expr $totalmem \* 1024` + usrdir=/usr + elif [ "${PLATFORM}" = "FreeBSD" ]; then +- totalmem=`dmesg | grep 'real memory' | sed -r 's/.* ([0-9]+) .*/\1/'` +- totalmem=`expr $totalmem / 1024` ++ totalmem=`sysctl -n hw.physmem` ++ totalmem=$(($totalmem / 1024)) + usrdir=/usr/local + fi + diff --git a/graphics/lightzone/files/patch-src_com_lightcrafts_platform_linux_TestSSE2.java b/graphics/lightzone/files/patch-src_com_lightcrafts_platform_linux_TestSSE2.java new file mode 100644 index 000000000000..0d018859f91c --- /dev/null +++ b/graphics/lightzone/files/patch-src_com_lightcrafts_platform_linux_TestSSE2.java @@ -0,0 +1,29 @@ +--- src/com/lightcrafts/platform/linux/TestSSE2.java.orig 2015-06-23 04:17:32 UTC ++++ src/com/lightcrafts/platform/linux/TestSSE2.java +@@ -29,6 +29,8 @@ class TestSSE2 { + regex = "^flags\t\t:.*sse2"; + } else if (osname.indexOf("SunOS") >= 0) { + regex = "^\t.*sse2"; ++ } else if (osname.indexOf("FreeBSD") >= 0) { ++ regex = "^hw.instruction_sse: 1"; + } else { + regex = "^ Features=.*SSE2"; + } +@@ -42,6 +44,8 @@ class TestSSE2 { + cmd = new String[] {"cat", "/proc/cpuinfo"}; + } else if (osname.indexOf("SunOS") >= 0) { + cmd = new String[] {"sh", "-c", "isainfo -nv ; psrinfo -pv"}; ++ } else if (osname.indexOf("FreeBSD") >= 0) { ++ cmd = new String[] {"/sbin/sysctl", "hw"}; + } else { + cmd = new String[] {"dmesg"}; + } +@@ -68,6 +72,8 @@ class TestSSE2 { + regex = getCpuInfoLine("^model name\t: "); + } else if (osname.indexOf("SunOS") >= 0) { + regex = getCpuInfoLine("^\t"); ++ } else if (osname.indexOf("FreeBSD") >= 0) { ++ regex = getCpuInfoLine("^hw.model: "); + } else { + regex = getCpuInfoLine("^CPU: "); + } diff --git a/graphics/lightzone/pkg-descr b/graphics/lightzone/pkg-descr new file mode 100644 index 000000000000..ed9c7655a948 --- /dev/null +++ b/graphics/lightzone/pkg-descr @@ -0,0 +1,3 @@ +Professional-level digital darkroom and photo editor. + +WWW: http://lightzoneproject.org/ diff --git a/graphics/lightzone/pkg-plist b/graphics/lightzone/pkg-plist new file mode 100644 index 000000000000..721ceaa371b7 --- /dev/null +++ b/graphics/lightzone/pkg-plist @@ -0,0 +1,30 @@ +bin/lightzone +%%DATADIR%%/LightZone-forkd +%%DATADIR%%/dcraw_lz +%%DATADIR%%/libDCRaw.so +%%DATADIR%%/libFASTJAI.so +%%DATADIR%%/libJAI.so +%%DATADIR%%/libLCArrays.so +%%DATADIR%%/libLCCache.so +%%DATADIR%%/libLCFileUtil.so +%%DATADIR%%/libLCJNI.so +%%DATADIR%%/libLCJPEG.so +%%DATADIR%%/libLCLCMS.so +%%DATADIR%%/libLCTIFF.so +%%DATADIR%%/libLinux.so +%%DATADIR%%/libSegment.so +%%DATADIR%%/libfbf.so +%%DATADIR%%/libmlib_jai.so +share/applications/lightzone.desktop +share/icons/hicolor/128x128/apps/lightzone.png +share/icons/hicolor/16x16/apps/lightzone.png +share/icons/hicolor/256x256/apps/lightzone.png +share/icons/hicolor/32x32/apps/lightzone.png +share/icons/hicolor/48x48/apps/lightzone.png +share/icons/hicolor/64x64/apps/lightzone.png +%%JAVASHAREDIR%%/lightzone/lcjai.jar +%%JAVASHAREDIR%%/lightzone/lightcrafts-linux.jar +%%JAVASHAREDIR%%/lightzone/lightcrafts.jar +%%JAVASHAREDIR%%/lightzone/lightzonehelp.jar +%%JAVASHAREDIR%%/lightzone/mlibwrapper_jai.jar +%%JAVASHAREDIR%%/lightzone/substance-lite.jar |