summaryrefslogtreecommitdiff
path: root/sysutils/qpxtool
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/qpxtool')
-rw-r--r--sysutils/qpxtool/Makefile53
-rw-r--r--sysutils/qpxtool/distinfo2
-rw-r--r--sysutils/qpxtool/files/patch-configure37
-rw-r--r--sysutils/qpxtool/files/patch-f1tattoo.cpp125
-rw-r--r--sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp104
-rw-r--r--sysutils/qpxtool/pkg-descr20
-rw-r--r--sysutils/qpxtool/pkg-plist57
7 files changed, 0 insertions, 398 deletions
diff --git a/sysutils/qpxtool/Makefile b/sysutils/qpxtool/Makefile
deleted file mode 100644
index 11556e1dae96..000000000000
--- a/sysutils/qpxtool/Makefile
+++ /dev/null
@@ -1,53 +0,0 @@
-# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
-# $FreeBSD$
-
-PORTNAME= qpxtool
-PORTVERSION= 0.7.2
-PORTREVISION= 4
-CATEGORIES= sysutils
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION:C/\.[^.]*$/.x/}/${DISTVERSION}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= GUI for testing CD/DVD quality and transfer rate
-
-LICENSE= GPLv2
-LICENSE_FILE= ${WRKSRC}/COPYING
-
-DEPRECATED= Qt4 has been EOL since december 2015
-EXPIRATION_DATE= 2019-03-15
-
-BROKEN_aarch64= fails to compile: qpx_mmc_defs.h:608:4: constant expression evaluates to -1 which cannot be narrowed to type 'char'
-BROKEN_armv6= fails to compile: qpx_mmc_defs.h:608:4: constant expression evaluates to -1 which cannot be narrowed to type 'char'
-BROKEN_armv7= fails to compile: qpx_mmc_defs.h:608:4: constant expression evaluates to -1 which cannot be narrowed to type 'char'
-
-LIB_DEPENDS= libpng.so:graphics/png
-
-USES= gmake qmake:no_env qt:4 tar:bzip2
-USE_QT= qmake_build moc_build rcc_build linguisttools_build \
- corelib gui network sql
-HAS_CONFIGURE= yes
-CONFIGURE_ENV= PREFIX=${PREFIX}
-USE_LDCONFIG= yes
-
-OPTIONS_GROUP= DB
-OPTIONS_GROUP_DB= SQLITE MYSQL PGSQL
-OPTIONS_DEFAULT= SQLITE
-
-SQLITE_USES= qt:4
-SQLITE_USE= QT=sql-sqlite3_run
-MYSQL_USES= qt:4
-MYSQL_USE= QT=sql-mysql_run
-PGSQL_USES= qt:4
-PGSQL_USE= QT=sql-pgsql_run
-
-post-configure:
- @${REINPLACE_CMD} -e 's|$$(QMAKE4)|& ${QMAKE_AGRS}|' \
- ${WRKSRC}/gui/Makefile
- @${REINPLACE_CMD} -e 's|S_ISBLK|S_ISCHR|' \
- ${WRKSRC}/lib/qpxtransport/qpx_mmc.cpp
-
-post-install:
- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* \
- ${STAGEDIR}${PREFIX}/sbin/pxfw
-
-.include <bsd.port.mk>
diff --git a/sysutils/qpxtool/distinfo b/sysutils/qpxtool/distinfo
deleted file mode 100644
index 8c0a82ab5aed..000000000000
--- a/sysutils/qpxtool/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (qpxtool-0.7.2.tar.bz2) = ac18e4a1b4cb616c0218d04ab5a7b02f53c84449d1d0f63aa3f712656992c526
-SIZE (qpxtool-0.7.2.tar.bz2) = 587694
diff --git a/sysutils/qpxtool/files/patch-configure b/sysutils/qpxtool/files/patch-configure
deleted file mode 100644
index 1cfc6cdb550d..000000000000
--- a/sysutils/qpxtool/files/patch-configure
+++ /dev/null
@@ -1,37 +0,0 @@
---- configure.orig 2012-12-04 12:06:33 UTC
-+++ configure
-@@ -13,10 +13,10 @@ OSLIBS_INET=""
- OSLIBS_DL=""
- OSLIBS_THREAD=""
-
--__cc=cc
--__cxx=c++
--__defprefix=""
--__prefix=""
-+__cc=${CC}
-+__cxx=${CXX}
-+__defprefix="${PREFIX}"
-+__prefix="${PREFIX}"
- __enable_debug=no
- __enable_png=yes
- __enable_gui=yes
-@@ -344,8 +344,8 @@ LPNG_LIB = $lpng_ldflags
-
- " >> Makefile
-
-- echo "CXXFLAGS += -Wall -O2 $OSDEFS $LPNG_DEFS $PLUGIN_DEFS $DEFS" >> Makefile
-- echo "CFLAGS += -Wall -O2 $OSDEFS $LPNG_DEFS $PLUGIN_DEFS $DEFS" >> Makefile
-+ echo "CXXFLAGS += -Wall $OSDEFS $LPNG_DEFS $PLUGIN_DEFS $DEFS" >> Makefile
-+ echo "CFLAGS += -Wall $OSDEFS $LPNG_DEFS $PLUGIN_DEFS $DEFS" >> Makefile
-
- if test "$__enable_debug" = "yes" ; then
- echo "# additional debug options" >> Makefile
-@@ -846,7 +846,7 @@ case "$OSL" in
- __libdir=$__prefix/lib
- __plugindir=$__libdir/qpxtool
- __incdir=$__prefix/include
-- __mandir=$__prefix/share/man
-+ __mandir=$__prefix/man
- ;;
- mingw32*)
- __bindir=$__prefix
diff --git a/sysutils/qpxtool/files/patch-f1tattoo.cpp b/sysutils/qpxtool/files/patch-f1tattoo.cpp
deleted file mode 100644
index 36e44df2b081..000000000000
--- a/sysutils/qpxtool/files/patch-f1tattoo.cpp
+++ /dev/null
@@ -1,125 +0,0 @@
---- console/f1tattoo/f1tattoo.cpp.orig 2010-09-21 18:48:03 UTC
-+++ console/f1tattoo/f1tattoo.cpp
-@@ -96,6 +96,10 @@ bool tattoo_read_png(unsigned char *buf,
- int c;
- int32_t r,g,b;
-
-+ png_colorp palette;
-+ int num_palette;
-+ png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette);
-+
- if (fread(header, 1, 8, fp) < 8) {
- printf("Error reading PNG header\n");
- fclose(fp);
-@@ -129,9 +133,9 @@ bool tattoo_read_png(unsigned char *buf,
-
- png_read_info(png_ptr, info_ptr);
-
-- printf("Image size: %ld x %ld\n", info_ptr->width, info_ptr->height);
-+ printf("Image size: %ld x %ld\n", png_get_image_width(png_ptr, info_ptr), png_get_image_height(png_ptr, info_ptr));
-
-- if (info_ptr->width != 3744U || info_ptr->height != rows ) {
-+ if (png_get_image_width(png_ptr, info_ptr) != 3744U || png_get_image_height(png_ptr, info_ptr) != rows ) {
- printf("Image should be 3744 x %d", rows);
- return 1;
- }
-@@ -143,14 +147,14 @@ bool tattoo_read_png(unsigned char *buf,
- number_of_passes = png_set_interlace_handling(png_ptr);
- png_read_update_info(png_ptr, info_ptr);
-
-- printf("Color type: [%d] ", info_ptr->color_type);
-- switch (info_ptr->color_type) {
-+ printf("Color type: [%d] ", png_get_color_type(png_ptr, info_ptr));
-+ switch (png_get_color_type(png_ptr, info_ptr)) {
- case PNG_COLOR_TYPE_GRAY:
- printf("PNG_COLOR_TYPE_GRAY\n");
- break;
- case PNG_COLOR_TYPE_PALETTE:
- printf("PNG_COLOR_TYPE_PALETTE\n");
-- if (!(info_ptr->valid & PNG_INFO_PLTE)) {
-+ if (!(png_get_valid(png_ptr,info_ptr,PNG_INFO_PLTE))) {
- printf("PNG color type is indexed, but no palette found!");
- goto err_read_png;
- }
-@@ -168,49 +172,49 @@ bool tattoo_read_png(unsigned char *buf,
- printf("unlnown PNG color type!\n");
- goto err_read_png;
- }
-- printf("Bit depth : %d\n", info_ptr->bit_depth);
-- if (info_ptr->bit_depth != 8) {
-+ printf("Bit depth : %d\n", png_get_bit_depth(png_ptr, info_ptr));
-+ if (png_get_bit_depth(png_ptr, info_ptr) != 8) {
- printf("Unsupported bit depth!\n");
- goto err_read_png;
- }
-- if (info_ptr->valid & PNG_INFO_PLTE) {
-- printf("Palette : %d colors\n", info_ptr->num_palette);
-+ if (png_get_valid(png_ptr,info_ptr,PNG_INFO_PLTE)) {
-+ printf("Palette : %d colors\n", num_palette);
- } else {
- printf("Palette : NO\n");
- }
-- printf("ROW bytes : %ld\n", info_ptr->rowbytes);
-+ printf("ROW bytes : %ld\n", png_get_rowbytes(png_ptr, info_ptr));
-
-
- raw_row_pointer = buf;
-- png_row_pointer = (png_byte*) malloc(info_ptr->rowbytes);
-+ png_row_pointer = (png_byte*) malloc(png_get_rowbytes(png_ptr, info_ptr));
- for (row=0; row<rows; row++) {
- if (setjmp(png_jmpbuf(png_ptr))) {
- printf("png_jmpbuf failed!\n");
- goto err_read_png;
- }
- png_read_row(png_ptr, png_row_pointer, NULL);
-- if (info_ptr->width < 3744U)
-+ if (png_get_image_width(png_ptr, info_ptr) < 3744U)
- memset(raw_row_pointer, 0, 3744);
-
-- switch (info_ptr->color_type) {
-+ switch (png_get_color_type(png_ptr, info_ptr)) {
- case PNG_COLOR_TYPE_GRAY:
-- for (col=0; col<info_ptr->width; col++) {
-+ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) {
- raw_row_pointer[col] = png_row_pointer[col] ^ 0xFF;
- // memcpy(raw_row_pointer, png_row_pointer, 3744);
- }
- break;
- case PNG_COLOR_TYPE_PALETTE:
-- for (col=0; col<info_ptr->width; col++) {
-+ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) {
- c = png_row_pointer[col];
-- r = info_ptr->palette[c].red;
-- g = info_ptr->palette[c].green;
-- b = info_ptr->palette[c].blue;
-+ r = palette[c].red;
-+ g = palette[c].green;
-+ b = palette[c].blue;
- c = (r*11 + g*16 + b*5) / 32;
- raw_row_pointer[col] = c ^ 0xFF;
- }
- break;
- case PNG_COLOR_TYPE_RGB:
-- for (col=0; col<info_ptr->width; col++) {
-+ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) {
- r = png_row_pointer[col*3];
- g = png_row_pointer[col*3+1];
- b = png_row_pointer[col*3+2];
-@@ -219,7 +223,7 @@ bool tattoo_read_png(unsigned char *buf,
- }
- break;
- case PNG_COLOR_TYPE_RGB_ALPHA:
-- for (col=0; col<info_ptr->width; col++) {
-+ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) {
- r = png_row_pointer[col*4];
- g = png_row_pointer[col*4+1];
- b = png_row_pointer[col*4+2];
-@@ -228,7 +232,7 @@ bool tattoo_read_png(unsigned char *buf,
- }
- break;
- case PNG_COLOR_TYPE_GRAY_ALPHA:
-- for (col=0; col<info_ptr->width; col++) {
-+ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) {
- raw_row_pointer[col] = png_row_pointer[col*2] ^ 0xFF;
- }
- break;
diff --git a/sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp b/sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp
deleted file mode 100644
index 64d9deaf6d11..000000000000
--- a/sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp
+++ /dev/null
@@ -1,104 +0,0 @@
---- gui/src/mainwindow.cpp.orig 2012-12-03 07:13:07 UTC
-+++ gui/src/mainwindow.cpp
-@@ -426,7 +426,7 @@ void QPxToolMW::selectTab()
- int idx;
- QAction *act = (QAction*) sender();
- idx = act_sblist.indexOf(act);
-- if (act<0) return;
-+ if (idx<0) return;
- mwidget->selectTab(idx);
- }
-
-@@ -1477,7 +1477,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- r+= "<br>\n";
-
- r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
-- r+= "<img src=\""+idir+"/rt.png\" alt=\"Read Transfer\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
-+ r+= "<img src=\""+idir+"/rt.png\" alt=\"Read Transfer\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
- // r+= "<br>Read Transfer";
- r+= "</td></tr>\n</table><br>\n";
- }
-@@ -1508,7 +1508,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- r+= "<br>\n";
-
- r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
-- r+= "<img src=\""+idir+"/wt.png\" alt=\"Write Transfer\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
-+ r+= "<img src=\""+idir+"/wt.png\" alt=\"Write Transfer\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
- // r+= "<br>Write Transfer";
- r+= "</td></tr>\n</table><br>\n";
- }
-@@ -1571,7 +1571,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- r+= "<br>\n";
-
- r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
-- r+= "<img src=\""+idir+"/errc.png\" alt=\"Error correction\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">\n";
-+ r+= "<img src=\""+idir+"/errc.png\" alt=\"Error correction\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">\n";
- r+= "<br>Overall ERRC Graph";
- r+= "</td></tr></table><br>\n";
-
-@@ -1580,7 +1580,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- for (int i=0; i<8; i++) {
- if (!dev->media.tdata_errc || (dev->media.tdata_errc & (1<<i))) {
- r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
-- r+= "\t<img src=\""+idir+"/"+errcNameCD[i]+".png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
-+ r+= "\t<img src=\""+idir+"/"+errcNameCD[i]+".png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
- r+= "<br>"+errcNameCD[i];
- r+= "</td></tr>\n</table><br>\n";
- }
-@@ -1589,7 +1589,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- for (int i=1; i<8; i++) {
- if (!dev->media.tdata_errc || (dev->media.tdata_errc & (1<<i))) {
- r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
-- r+= "\t<img src=\""+idir+"/"+errcNameDVD[i]+".png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
-+ r+= "\t<img src=\""+idir+"/"+errcNameDVD[i]+".png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
- r+= "<br>"+errcNameDVD[i];
- r+= "</td></tr>\n</table><br>\n";
- }
-@@ -1599,7 +1599,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- for (int i=0; i<3; i++) {
- if (!dev->media.tdata_errc || (dev->media.tdata_errc & (1<<residx[i]))) {
- r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
-- r+= "\t<img src=\""+idir+"/"+errcNameBD[residx[i]]+".png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
-+ r+= "\t<img src=\""+idir+"/"+errcNameBD[residx[i]]+".png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
- r+= "<br>"+errcNameBD[residx[i]];
- r+= "</td></tr>\n</table><br>\n";
- }
-@@ -1626,7 +1626,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- r+= "\t</table>\n";
- r+= "<br>\n";
- r+= "<table border=0 cellspacing=0 align=center>\n\t<tr><td align=center>\n";
-- r+= "<img src=\""+idir+"/jb.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
-+ r+= "<img src=\""+idir+"/jb.png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
- r+= "</td></tr>\n</table><br>\n";
- }
-
-@@ -1643,7 +1643,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- r+= "\t</table>\n";
- r+= "<br>\n";
- r+= "<table border=0 cellspacing=0 align=center>\n\t<tr><td align=center>\n";
-- r+= "<img src=\""+idir+"/ft.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
-+ r+= "<img src=\""+idir+"/ft.png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
- r+= "</td></tr></table><br>\n";
- }
-
-@@ -1663,9 +1663,9 @@ QString QPxToolMW::generate_html(device *dev, QString
- for (int z=0; z<3; z++)
- {
- r+= "<table border=0 cellspacing=0 align=center>\n\t<tr><td align=center>";
-- r+= "<img src=\""+idir+"/ta"+QString::number(l)+"_"+QString::number(z)+"_p.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ2">";
-+ r+= "<img src=\""+idir+"/ta"+QString::number(l)+"_"+QString::number(z)+"_p.png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ2 ">";
- r+= "</td></tr>\n\t<tr><td align=\"center\">";
-- r+= "<img src=\""+idir+"/ta"+QString::number(l)+"_"+QString::number(z)+"_l.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ2">";
-+ r+= "<img src=\""+idir+"/ta"+QString::number(l)+"_"+QString::number(z)+"_l.png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ2 ">";
- r+= "</td></tr>\n</table><br>\n";
- }
- }
-@@ -1674,7 +1674,7 @@ QString QPxToolMW::generate_html(device *dev, QString
- r+= "\t<br><br>\n";
- r+= "\t\n";
- r+= "<p align=\"center\">\n";
-- r+= "\tGenerated by QPxTool v"VERSION" (c) Gennady \"ShultZ\" Kozlov\n";
-+ r+= "\tGenerated by QPxTool v" VERSION " (c) Gennady \"ShultZ\" Kozlov\n";
- r+= "\t<a href=\"http://qpxtool.sourceforge.net\">http://qpxtool.sourceforge.net</a><br>\n";
- r+= "</p>\n";
- r+= "</body>\n</html>\n";
diff --git a/sysutils/qpxtool/pkg-descr b/sysutils/qpxtool/pkg-descr
deleted file mode 100644
index e75171012fa1..000000000000
--- a/sysutils/qpxtool/pkg-descr
+++ /dev/null
@@ -1,20 +0,0 @@
-QPxTool is the Linux way to get full control over your CD/DVD drives.
-It is the Open Source Solution which intends to give you access to
-all available Quality Checks (Q-Checks) on written and blank media,
-that are available for your drive. This will help you to find the
-right media and the optimized writing speed for your hardware, which
-will increase the change for a long data lifetime.
-
-These tests are actually supported:
-* PIE / PIF Scan
-* TA Scan
-* Jitter / Beta Scan
-* Transfer Rate Scan
-* C1-, C2- and CU-Scan
-* Blank Media Quality Check
-* FE/TE Scan on blank media
-* FE/TE Scan on written media
-
-See webpage to get a list of the currently supported hardware.
-
-WWW: http://qpxtool.sourceforge.net/
diff --git a/sysutils/qpxtool/pkg-plist b/sysutils/qpxtool/pkg-plist
deleted file mode 100644
index 9f1f094d7388..000000000000
--- a/sysutils/qpxtool/pkg-plist
+++ /dev/null
@@ -1,57 +0,0 @@
-bin/cdvdcontrol
-bin/f1tattoo
-bin/qpxtool
-bin/qscan
-bin/qscand
-bin/readdvd
-include/qpxtool/colors.h
-include/qpxtool/common_functions.h
-include/qpxtool/csstables.h
-include/qpxtool/pioneer_spdctl.h
-include/qpxtool/plextor_features.h
-include/qpxtool/qpx_mmc.h
-include/qpxtool/qpx_mmc_defs.h
-include/qpxtool/qpx_opcodes.h
-include/qpxtool/qpx_scan.h
-include/qpxtool/qpx_scan_plugin_api.h
-include/qpxtool/qpx_transport.h
-include/qpxtool/qpx_writer.h
-include/qpxtool/sense.h
-include/qpxtool/threads.h
-include/qpxtool/yamaha_features.h
-lib/libqpxpioneer.so
-lib/libqpxpioneer.so.0
-lib/libqpxpioneer.so.0.7.0
-lib/libqpxplextor.so
-lib/libqpxplextor.so.0
-lib/libqpxplextor.so.0.7.0
-lib/libqpxscan.so
-lib/libqpxscan.so.0
-lib/libqpxscan.so.0.7.0
-lib/libqpxtransport.so
-lib/libqpxtransport.so.0
-lib/libqpxtransport.so.0.7.0
-lib/libqpxyamaha.so
-lib/libqpxyamaha.so.0
-lib/libqpxyamaha.so.0.7.0
-lib/qpxtool/libqscan_asus.so
-lib/qpxtool/libqscan_benq.so
-lib/qpxtool/libqscan_benq_dvdrom.so
-lib/qpxtool/libqscan_generic.so
-lib/qpxtool/libqscan_liteon.so
-lib/qpxtool/libqscan_nec.so
-lib/qpxtool/libqscan_pioneer.so
-lib/qpxtool/libqscan_plextor.so
-lib/qpxtool/libqscan_tsst.so
-man/man1/cdvdcontrol.1.gz
-man/man1/f1tattoo.1.gz
-man/man1/qpxtool.1.gz
-man/man1/qscan.1.gz
-man/man1/qscand.1.gz
-man/man1/readdvd.1.gz
-man/man8/pxfw.8.gz
-sbin/pxfw
-share/applications/qpxtool.desktop
-share/pixmaps/qpxtool.png
-%%DATADIR%%/locale/qpxtool.de_DE.qm
-%%DATADIR%%/locale/qpxtool.ru_RU.qm