1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add qpxtool 0.5.0, a GUI for testing CD/DVD quality and transfer rate.

PR:		ports/94857
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
This commit is contained in:
Emanuel Haupt 2006-04-03 16:00:42 +00:00
parent 3f55114899
commit 7ce143f13a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158732
8 changed files with 169 additions and 0 deletions

View File

@ -455,6 +455,7 @@
SUBDIR += pwgen2
SUBDIR += pwsafe
SUBDIR += qlogtools
SUBDIR += qpxtool
SUBDIR += qtpkg
SUBDIR += radeontool
SUBDIR += radmind

39
sysutils/qpxtool/Makefile Normal file
View File

@ -0,0 +1,39 @@
# New ports collection makefile for: qpxtool
# Date created: 23 Mar 2006
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= qpxtool
PORTVERSION= 0.5.0
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= amdmi3@mail.ru
COMMENT= A GUI for testing CD/DVD quality and transfer rate
USE_BZIP2= yes
USE_QT_VER= 3
MAKE_ENV+= QTDIR="${QT_PREFIX}"
MAKE_ARGS+= CC="${CC}" CXX="${CXX}"
PLIST_FILES= bin/qpxtool
PORTDOCS= README ChangeLog
post-patch:
@${REINPLACE_CMD} 's|};||' ${WRKSRC}/transport.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qpxtool ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (qpxtool-0.5.0.tar.bz2) = 9868d3dc8c1f63028760dac519096712
SHA256 (qpxtool-0.5.0.tar.bz2) = ac6e7813a17a7d1fd46f5210864ce72df3eb9b222d7bbc8433d16692156ba70c
SIZE (qpxtool-0.5.0.tar.bz2) = 126894

View File

@ -0,0 +1,37 @@
--- Makefile.orig Sun Mar 19 16:50:26 2006
+++ Makefile Thu Mar 23 05:26:07 2006
@@ -8,18 +8,18 @@
####### Compiler, tools and options
-CC = gcc
-CXX = g++
+CC ?= gcc
+CXX ?= g++
LEX = flex
YACC = yacc
-CFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
-CXXFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
+CFLAGS += -Wall -W -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
+CXXFLAGS += -Wall -W -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
LEXFLAGS =
YACCFLAGS= -d
-INCPATH = -I/usr/lib/qt/mkspecs/default -I. -I. -I$(QTDIR)/include
-LINK = g++
+INCPATH = -I. -I$(QTDIR)/include
+LINK = $(CXX)
LFLAGS = -Wl,-rpath,$(QTDIR)/lib
-LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
+LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lcam -pthread
AR = ar cqs
RANLIB =
MOC = $(QTDIR)/bin/moc
@@ -181,7 +181,7 @@
$(MOC):
( cd $(QTDIR)/src/moc && $(MAKE) )
-Makefile: qpxtool.pro /usr/lib/qt/mkspecs/default/qmake.conf /usr/lib/qt/lib/libqt-mt.prl
+Makefile: qpxtool.pro
$(QMAKE) -o Makefile qpxtool.pro
qmake:
@$(QMAKE) -o Makefile qpxtool.pro

View File

@ -0,0 +1,13 @@
--- main.cpp.orig Tue Mar 14 22:31:43 2006
+++ main.cpp Thu Mar 23 05:00:58 2006
@@ -34,8 +34,8 @@
printf("\n QPxTool-%s\n (c) 2005-2006, Gennady \"ShultZ\" Kozlov",VERSION);
printf("\n________________________________________");
uname(&sys);
- printf("\nOS name : %s\nnode : %s\nrelease : %s\nversion : %s\nmachine : %s\ndomain : %s",
- sys.sysname, sys.nodename, sys.release, sys.version, sys.machine, sys.domainname);
+ printf("\nOS name : %s\nnode : %s\nrelease : %s\nversion : %s\nmachine : %s",
+ sys.sysname, sys.nodename, sys.release, sys.version, sys.machine);
printf("\n________________________________________\n");
QApplication QPT(argc,argv);

View File

@ -0,0 +1,46 @@
--- qpx_mmc.h.orig Sat Mar 18 20:28:50 2006
+++ qpx_mmc.h Thu Mar 23 05:03:22 2006
@@ -89,26 +89,25 @@
"<12>","<13>","<14>",""
};
-const int _devcnt=58;
+const int _devcnt=64;
const str_dev _devtbl[_devcnt]={
- "/dev/hda\0","/dev/hdb\0","/dev/hdc\0","/dev/hdd\0",
- "/dev/hde\0","/dev/hdf\0","/dev/hdg\0","/dev/hdh\0",
- "/dev/hdi\0","/dev/hdj\0","/dev/hdk\0","/dev/hdl\0",
- "/dev/hdm\0","/dev/hdn\0","/dev/hdo\0","/dev/hdp\0",
- "/dev/hdq\0","/dev/hdr\0","/dev/hds\0","/dev/hdt\0",
- "/dev/hdu\0","/dev/hdv\0","/dev/hdw\0","/dev/hdx\0",
- "/dev/hdy\0","/dev/hdz\0",
-
- "/dev/sr0\0","/dev/sr1\0","/dev/sr2\0","/dev/sr3\0",
- "/dev/sr4\0","/dev/sr5\0","/dev/sr6\0","/dev/sr7\0",
- "/dev/sr8\0","/dev/sr9\0","/dev/sr10\0","/dev/sr11\0",
- "/dev/sr12\0","/dev/sr13\0","/dev/sr14\0","/dev/sr15\0",
-
- "/dev/sr16\0","/dev/sr17\0","/dev/sr18\0","/dev/sr19\0",
- "/dev/sr20\0","/dev/sr21\0","/dev/sr22\0","/dev/sr23\0",
- "/dev/sr24\0","/dev/sr25\0","/dev/sr26\0","/dev/sr27\0",
- "/dev/sr28\0","/dev/sr29\0","/dev/sr30\0","/dev/sr31\0",
+ "/dev/acd0\0","/dev/acd1\0","/dev/acd2\0","/dev/acd3\0",
+ "/dev/acd4\0","/dev/acd5\0","/dev/acd6\0","/dev/acd7\0",
+ "/dev/acd8\0","/dev/acd9\0","/dev/acd10\0","/dev/acd11\0",
+ "/dev/acd12\0","/dev/acd13\0","/dev/acd14\0","/dev/acd15\0",
+ "/dev/acd16\0","/dev/acd17\0","/dev/acd18\0","/dev/acd19\0",
+ "/dev/acd20\0","/dev/acd21\0","/dev/acd22\0","/dev/acd23\0",
+ "/dev/acd24\0","/dev/acd25\0","/dev/acd26\0","/dev/acd27\0",
+ "/dev/acd28\0","/dev/acd29\0","/dev/acd30\0","/dev/acd31\0",
+ "/dev/cd0\0","/dev/cd1\0","/dev/cd2\0","/dev/cd3\0",
+ "/dev/cd4\0","/dev/cd5\0","/dev/cd6\0","/dev/cd7\0",
+ "/dev/cd8\0","/dev/cd9\0","/dev/cd10\0","/dev/cd11\0",
+ "/dev/cd12\0","/dev/cd13\0","/dev/cd14\0","/dev/cd15\0",
+ "/dev/cd16\0","/dev/cd17\0","/dev/cd18\0","/dev/cd19\0",
+ "/dev/cd20\0","/dev/cd21\0","/dev/cd22\0","/dev/cd23\0",
+ "/dev/cd24\0","/dev/cd25\0","/dev/cd26\0","/dev/cd27\0",
+ "/dev/cd28\0","/dev/cd29\0","/dev/cd30\0","/dev/cd31\0",
/*
"/dev/sr0\0","/dev/sr1\0","/dev/sr2\0","/dev/sr3\0",
"/dev/sr4\0","/dev/sr5\0","/dev/sr6\0","/dev/sr7\0",

View File

@ -0,0 +1,10 @@
--- transport.h.orig Thu Sep 22 10:32:26 2005
+++ transport.h Thu Mar 23 05:00:16 2006
@@ -203,6 +203,7 @@
#elif defined(__FreeBSD__)
#include <sys/ioctl.h>
+#include <stdio.h>
#include <camlib.h>
#include <cam/scsi/scsi_message.h>
#include <cam/scsi/scsi_pass.h>

View File

@ -0,0 +1,20 @@
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/