diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2008-06-05 12:39:13 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2008-06-05 12:39:13 +0000 |
| commit | bb51537e7839b543246d4e600d46eeb832d7c3ef (patch) | |
| tree | 04d8513bf09e3906423d0a1a7f5c5afc61b9e491 | |
| parent | - update to 0.8.4 (diff) | |
LPROF is the only open source ICC profiler with a graphical user
interface. It can be used to create ICC version 2 compliant profiles
for cameras, scanners and monitors. As such it fills a necessary
niche in the emerging open source color management effort.
WWW: http://lprof.sourceforge.net
PR: ports/124240
Submitted by: Dmitry Marakasov <amdmi3 at amdmi3.ru>
Notes
Notes:
svn path=/head/; revision=214350
| -rw-r--r-- | graphics/Makefile | 1 | ||||
| -rw-r--r-- | graphics/lprof-devel/Makefile | 42 | ||||
| -rw-r--r-- | graphics/lprof-devel/distinfo | 3 | ||||
| -rw-r--r-- | graphics/lprof-devel/files/patch-src-CMakeLists.txt | 11 | ||||
| -rw-r--r-- | graphics/lprof-devel/files/patch-src-argyll-spectro-unixio.c | 27 | ||||
| -rw-r--r-- | graphics/lprof-devel/files/patch-src-libqtlcmswidgets-lprofgauge.h | 10 | ||||
| -rw-r--r-- | graphics/lprof-devel/pkg-descr | 6 | ||||
| -rw-r--r-- | graphics/lprof-devel/pkg-plist | 105 |
8 files changed, 205 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index b244203a4a5e..e834df1ab557 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -441,6 +441,7 @@ SUBDIR += lodju SUBDIR += long-exposure-tools SUBDIR += lphoto + SUBDIR += lprof-devel SUBDIR += makehuman SUBDIR += mapserver SUBDIR += mapyrus diff --git a/graphics/lprof-devel/Makefile b/graphics/lprof-devel/Makefile new file mode 100644 index 000000000000..cbfa6414661d --- /dev/null +++ b/graphics/lprof-devel/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: lprof +# Date created: 09 Jan 2008 +# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru> +# +# $FreeBSD$ +# + +PORTNAME= lprof +PORTVERSION= 20080514 +CATEGORIES= graphics +MASTER_SITES= http://www.amdmi3.ru/distfiles/ +PKGNAMESUFFIX= -devel + +MAINTAINER= amdmi3@amdmi3.ru +COMMENT= Open source color profiler + +LIB_DEPENDS= lcms.1:${PORTSDIR}/graphics/lcms \ + jpeg.9:${PORTSDIR}/graphics/jpeg \ + tiff.4:${PORTSDIR}/graphics/tiff \ + vigraimpex.2:${PORTSDIR}/graphics/vigra \ + usb-0.1.8:${PORTSDIR}/devel/libusb + +USE_BZIP2= yes +USE_XORG= x11 xext sm ice xxf86vm +USE_QT_VER= 4 +QT_COMPONENTS= corelib gui qt3support assistantclient moc uic rcc qmake linguist +USE_CMAKE= yes + +CMAKE_ARGS= -DQTTRANS_LRELEASE_EXECUTABLE="${LOCALBASE}/bin/lrelease-qt4" +CMAKE_USE_PTHREAD= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} + +post-patch: + @${REINPLACE_CMD} -e '/asm\/types.h/ d' ${WRKSRC}/src/argyll/spectro/hidio.c + @${REINPLACE_CMD} -e '/DESTINATION/ s|data/|share/${PORTNAME}/data/|' \ + ${WRKSRC}/data/CMakeLists.txt ${WRKSRC}/src/CMakeLists.txt + +post-install: + ${INSTALL_DATA} ${WRKSRC}/data/icons/lprof.png ${PREFIX}/share/pixmaps + +.include <bsd.port.mk> diff --git a/graphics/lprof-devel/distinfo b/graphics/lprof-devel/distinfo new file mode 100644 index 000000000000..f4acf6764807 --- /dev/null +++ b/graphics/lprof-devel/distinfo @@ -0,0 +1,3 @@ +MD5 (lprof-20080514.tar.bz2) = c35d152dd6cd5719a3945201e5251a4a +SHA256 (lprof-20080514.tar.bz2) = 60095c30204dd1c5bc250829b1f676a7fee7ef794249f62bc0f1c32bb49bd3f2 +SIZE (lprof-20080514.tar.bz2) = 3730245 diff --git a/graphics/lprof-devel/files/patch-src-CMakeLists.txt b/graphics/lprof-devel/files/patch-src-CMakeLists.txt new file mode 100644 index 000000000000..f564ba957e14 --- /dev/null +++ b/graphics/lprof-devel/files/patch-src-CMakeLists.txt @@ -0,0 +1,11 @@ +--- src/CMakeLists.txt.orig 2008-02-20 00:01:32.000000000 +0300 ++++ src/CMakeLists.txt 2008-05-24 05:13:22.000000000 +0400 +@@ -129,7 +129,7 @@ + + # Normally these are set for us. Since we're overriding the normal include path we've got to add them ourselves, but it's + # probably a good idea to be explicit about what we use anyway. +-SET(lprof_qt_incs "${QT_INCLUDE_DIR};${QT_QT_INCLUDE_DIR};${QT_QTCORE_INCLUDE_DIR};${QT_QTGUI_INCLUDE_DIR};${QT_QTSVG_INCLUDE_DIR};${QT_QT3SUPPORT_INCLUDE_DIR};${QT_QTASSISTANT_INCLUDE_DIR}") ++SET(lprof_qt_incs "${QT_QT_INCLUDE_DIR};${QT_QTCORE_INCLUDE_DIR};${QT_QTGUI_INCLUDE_DIR};${QT_QT3SUPPORT_INCLUDE_DIR};${QT_QTASSISTANT_INCLUDE_DIR};${QT_INCLUDE_DIR}") + + + IF(NOT LIBVIGRAIMPEX_FOUND) diff --git a/graphics/lprof-devel/files/patch-src-argyll-spectro-unixio.c b/graphics/lprof-devel/files/patch-src-argyll-spectro-unixio.c new file mode 100644 index 000000000000..092e78d7ddc5 --- /dev/null +++ b/graphics/lprof-devel/files/patch-src-argyll-spectro-unixio.c @@ -0,0 +1,27 @@ +--- src/argyll/spectro/unixio.c.orig 2008-02-20 00:02:24.000000000 +0300 ++++ src/argyll/spectro/unixio.c 2008-05-14 06:16:33.000000000 +0400 +@@ -585,9 +585,8 @@ + break; + + if (!( +- ( strncmp(de->d_name, "ttyS", 4) == 0 +- && de->d_name[4] >= '0' && de->d_name[4] <= '9') +- || ( strncmp(de->d_name, "ttyUSB", 5) == 0) ++ ( strncmp(de->d_name, "ttyd", 4) == 0 || strncmp(de->d_name, "ttyU", 4) == 0) ++ && de->d_name[4] >= '0' && de->d_name[4] <= '9' && de->d_name[5] == '\0' + )) + continue; + +@@ -598,12 +597,6 @@ + strcpy(dpath, dirn); + strcat(dpath, de->d_name); + +- if ((fd = open(dpath, O_RDWR | O_NOCTTY )) < 0) { +- free(dpath); +- continue; +- } +- close(fd); +- + /* Add the path to the list */ + if (p->paths == NULL) { + if ((p->paths = (icompath **)calloc(sizeof(icompath *), 1 + 1)) == NULL) { diff --git a/graphics/lprof-devel/files/patch-src-libqtlcmswidgets-lprofgauge.h b/graphics/lprof-devel/files/patch-src-libqtlcmswidgets-lprofgauge.h new file mode 100644 index 000000000000..6a30db004ddd --- /dev/null +++ b/graphics/lprof-devel/files/patch-src-libqtlcmswidgets-lprofgauge.h @@ -0,0 +1,10 @@ +--- src/libqtlcmswidgets/lprofgauge.h.orig 2008-02-20 00:02:39.000000000 +0300 ++++ src/libqtlcmswidgets/lprofgauge.h 2008-05-24 05:07:17.000000000 +0400 +@@ -58,7 +58,6 @@ + + #include <Qt> + #include <QWidget> +-#include <QtDesigner/QDesignerExportWidget> + + + class QColor; diff --git a/graphics/lprof-devel/pkg-descr b/graphics/lprof-devel/pkg-descr new file mode 100644 index 000000000000..0c3b055a44e3 --- /dev/null +++ b/graphics/lprof-devel/pkg-descr @@ -0,0 +1,6 @@ +LPROF is the only open source ICC profiler with a graphical user +interface. It can be used to create ICC version 2 compliant profiles +for cameras, scanners and monitors. As such it fills a necessary +niche in the emerging open source color management effort. + +WWW: http://lprof.sourceforge.net diff --git a/graphics/lprof-devel/pkg-plist b/graphics/lprof-devel/pkg-plist new file mode 100644 index 000000000000..4acf158f5efa --- /dev/null +++ b/graphics/lprof-devel/pkg-plist @@ -0,0 +1,105 @@ +bin/icc2it8 +bin/lprof +share/applications/lprof.desktop +%%DATADIR%%/data/help/en/about.txt +%%DATADIR%%/data/help/en/calreports.html +%%DATADIR%%/data/help/en/checker.html +%%DATADIR%%/data/help/en/gamma.html +%%DATADIR%%/data/help/en/images/corner.jpg +%%DATADIR%%/data/help/en/images/corner2.jpg +%%DATADIR%%/data/help/en/images/handbook.png +%%DATADIR%%/data/help/en/images/logo.png +%%DATADIR%%/data/help/en/images/lprof.png +%%DATADIR%%/data/help/en/images/ufraw-1.jpg +%%DATADIR%%/data/help/en/images/ufraw-2.jpg +%%DATADIR%%/data/help/en/images/ufraw-3.jpg +%%DATADIR%%/data/help/en/inst-ref.html +%%DATADIR%%/data/help/en/linux.html +%%DATADIR%%/data/help/en/lprof-help.html +%%DATADIR%%/data/help/en/mac.html +%%DATADIR%%/data/help/en/mon-val.html +%%DATADIR%%/data/help/en/moncalcontrol.html +%%DATADIR%%/data/help/en/monitor.html +%%DATADIR%%/data/help/en/monmeasurement.html +%%DATADIR%%/data/help/en/preferences.html +%%DATADIR%%/data/help/en/profile-id.html +%%DATADIR%%/data/help/en/profile-parms-mon.html +%%DATADIR%%/data/help/en/profile-parms.html +%%DATADIR%%/data/help/en/spyder2.html +%%DATADIR%%/data/help/en/ufraw.html +%%DATADIR%%/data/help/en/windows.html +%%DATADIR%%/data/help/ru/about.txt +%%DATADIR%%/data/help/ru/calreports.html +%%DATADIR%%/data/help/ru/checker.html +%%DATADIR%%/data/help/ru/gamma.html +%%DATADIR%%/data/help/ru/images/corner.jpg +%%DATADIR%%/data/help/ru/images/corner2.jpg +%%DATADIR%%/data/help/ru/images/handbook.png +%%DATADIR%%/data/help/ru/images/logo.png +%%DATADIR%%/data/help/ru/images/lprof.png +%%DATADIR%%/data/help/ru/images/ufraw-tutorial-1.png +%%DATADIR%%/data/help/ru/images/ufraw-tutorial-2.png +%%DATADIR%%/data/help/ru/images/ufraw-tutorial-3.png +%%DATADIR%%/data/help/ru/images/ufraw-tutorial-4.png +%%DATADIR%%/data/help/ru/inst-ref.html +%%DATADIR%%/data/help/ru/linux.html +%%DATADIR%%/data/help/ru/lprof-help.html +%%DATADIR%%/data/help/ru/mac.html +%%DATADIR%%/data/help/ru/mon-val.html +%%DATADIR%%/data/help/ru/moncalcontrol.html +%%DATADIR%%/data/help/ru/monitor.html +%%DATADIR%%/data/help/ru/monmeasurement.html +%%DATADIR%%/data/help/ru/preferences.html +%%DATADIR%%/data/help/ru/profile-id.html +%%DATADIR%%/data/help/ru/profile-parms-mon.html +%%DATADIR%%/data/help/ru/profile-parms.html +%%DATADIR%%/data/help/ru/spyder2.html +%%DATADIR%%/data/help/ru/ufraw.html +%%DATADIR%%/data/help/ru/windows.html +%%DATADIR%%/data/icons/lprof.png/lprof.png +%%DATADIR%%/data/pics/ColorChecker-24patch.txt +%%DATADIR%%/data/pics/MonitorTemplate.it8 +%%DATADIR%%/data/pics/e3199608.TXT +%%DATADIR%%/data/pics/grayscale.tif +%%DATADIR%%/data/pics/monitor patches.tif +%%DATADIR%%/data/pics/party_4s.png +%%DATADIR%%/data/pics/scandmo.it8 +%%DATADIR%%/data/pics/scandmo.png +%%DATADIR%%/data/pics/srgb.it8 +%%DATADIR%%/data/profiles/CIEE.icm +%%DATADIR%%/data/profiles/sRGB Color Space Profile.icm +%%DATADIR%%/data/profiles/scandmo.icm +%%DATADIR%%/data/template/AVOID.ITX +%%DATADIR%%/data/template/IT8_19.ITX +%%DATADIR%%/data/template/IT8_22.ITX +%%DATADIR%%/data/template/KODAK.ITX +%%DATADIR%%/data/template/colorchecker-24p.ITX +%%DATADIR%%/data/template/colorchecker-dc.ITX +%%DATADIR%%/data/template/colorchecker-sg.ITX +%%DATADIR%%/data/template/eyeone-template.ITX +%%DATADIR%%/data/template/hutchtone.ITX +%%DATADIR%%/data/translations/lprof_de.qm +%%DATADIR%%/data/translations/lprof_fr.qm +%%DATADIR%%/data/translations/lprof_no.qm +%%DATADIR%%/data/translations/lprof_ru.qm +%%DOCSDIR%%/COPYING +%%DOCSDIR%%/KNOWN_BUGS +%%DOCSDIR%%/README +%%DOCSDIR%%/README.NetBSD +%%DOCSDIR%%/sRGB_profile_License +share/pixmaps/lprof.png +@dirrm %%DOCSDIR%% +@dirrm %%DATADIR%%/data/translations +@dirrm %%DATADIR%%/data/template +@dirrm %%DATADIR%%/data/profiles +@dirrm %%DATADIR%%/data/pics +@dirrm %%DATADIR%%/data/icons/lprof.png +@dirrm %%DATADIR%%/data/icons +@dirrm %%DATADIR%%/data/help/ru/images +@dirrm %%DATADIR%%/data/help/ru +@dirrm %%DATADIR%%/data/help/en/images +@dirrm %%DATADIR%%/data/help/en +@dirrm %%DATADIR%%/data/help +@dirrm %%DATADIR%%/data +@dirrm %%DATADIR%% +@dirrmtry share/applications |
