View | Details | Raw Unified | Return to bug 122495
Collapse All | Expand All

(-)cad/qfsm/Makefile (-16 / +13 lines)
Lines 7-43 Link Here
7
#
7
#
8
8
9
PORTNAME=	qfsm
9
PORTNAME=	qfsm
10
PORTVERSION=	0.46
10
PORTVERSION=	0.50
11
CATEGORIES=	cad
11
CATEGORIES=	cad
12
MASTER_SITES=	SF
12
MASTER_SITES=	SF
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	A graphical tool for designing finite state machines
15
COMMENT=	A graphical tool for designing finite state machines
16
16
17
USE_QT_VER=	3
17
USE_QT_VER=	4
18
USE_PERL5_BUILD=yes
18
QT_COMPONENTS=	corelib gui qt3support svg xml \
19
USE_GMAKE=	yes
19
		moc_build qmake_build uic_build uic3_build
20
GNU_CONFIGURE=	yes
20
INSTALLS_ICONS=	yes
21
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
22
CONFIGURE_ARGS=	--with-qt-dir=${QT_PREFIX}
23
24
QTCPPFLAGS=	${PTHREAD_CFLAGS}
25
QTCFGLIBS=	${PTHREAD_LIBS}
26
21
27
post-patch:
22
post-patch:
28
	@${REINPLACE_CMD} -e '/^SUBDIRS/s| doc/user||g' ${WRKSRC}/Makefile.in
23
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/qfsm.pro
24
25
do-configure:
26
	@cd ${WRKSRC} \
27
		&& ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} qfsm.pro
29
28
30
post-install:
29
post-install:
30
	@${STRIP_CMD} ${PREFIX}/bin/qfsm
31
.if !defined(NOPORTDOCS)
31
.if !defined(NOPORTDOCS)
32
	@${MKDIR} ${DOCSDIR}
32
	@${MKDIR} ${DOCSDIR}
33
	${INSTALL_DATA} ${WRKSRC}/doc/user/*.docbook ${DOCSDIR}
33
	@(cd ${WRKSRC}/doc/user && ${COPYTREE_SHARE} . ${DOCSDIR})
34
	${INSTALL_DATA} ${WRKSRC}/doc/user/*.html ${DOCSDIR}
35
	${INSTALL_DATA} ${WRKSRC}/doc/user/*.pdf ${DOCSDIR}
36
	${INSTALL_DATA} ${WRKSRC}/doc/user/*.png ${DOCSDIR}
37
.endif
34
.endif
38
.if !defined(NOPORTEXAMPLES)
35
.if !defined(NOPORTEXAMPLES)
39
	@${MKDIR} ${EXAMPLESDIR}
36
	@${MKDIR} ${EXAMPLESDIR}
40
	${INSTALL_DATA} ${WRKSRC}/examples/*.fsm ${EXAMPLESDIR}
37
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
41
.endif
38
.endif
42
39
43
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)cad/qfsm/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (qfsm-0.46.tar.gz) = aab30b51185d458112cc669dbeb879c6
1
MD5 (qfsm-0.50.tar.gz) = 5172f474b8e018ff86fdbb65bf6c7c53
2
SHA256 (qfsm-0.46.tar.gz) = 6201cdf0dc1d56e01018677b90b8f544269dbd3e3fd142445d78106c730095f2
2
SHA256 (qfsm-0.50.tar.gz) = 033933d31d237ec0ccbb48fca4022b2f2a1e6c0c9302d7f954cd1bc66c8708ee
3
SIZE (qfsm-0.46.tar.gz) = 821488
3
SIZE (qfsm-0.50.tar.gz) = 1644095
(-)cad/qfsm/files/patch-qfsm.pro (+38 lines)
Line 0 Link Here
1
--- qfsm.pro.bak	2008-04-04 16:40:05.000000000 +0900
2
+++ qfsm.pro	2008-04-05 14:03:47.000000000 +0900
3
@@ -3,7 +3,7 @@
4
 
5
 VERSION = 0.50
6
 
7
-CONFIG	+= debug
8
+#CONFIG	+= debug
9
 
10
 INCLUDEPATH	+= . src
11
 
12
@@ -200,7 +200,7 @@
13
 #  INSTDIR = $${PROGRAMFILES}
14
   INSTDIR = "C:\Qfsm"
15
 } else {
16
-  INSTDIR = /usr
17
+  INSTDIR = %%PREFIX%%
18
 }
19
 DEPENDPATH += po src 
20
 TARGET = qfsm
21
@@ -212,7 +212,7 @@
22
   DEFINES += QFSM_HELP_DIR=\\\"doc\\user\\\"
23
 } else {
24
   DEFINES += QFSM_LANGUAGE_DIR=\\\"$${INSTDIR}/share/qfsm\\\"
25
-  DEFINES += QFSM_HELP_DIR=\\\"${INSTDIR}/share/doc/qfsm\\\")
26
+  DEFINES += QFSM_HELP_DIR=\\\"$${INSTDIR}/share/doc/qfsm\\\"
27
 }
28
 
29
 # XPMS = $$system( find pics -type f -name "*.xpm" | grep -v CVS )
30
@@ -359,7 +359,7 @@
31
   trans.path = $${INSTDIR}/share/qfsm
32
   trans.files = $$QMS
33
 
34
-  INSTALLS += target doc trans desktop mime icons 
35
+  INSTALLS += target trans desktop mime icons 
36
 }
37
 
38
 
(-)cad/qfsm/files/patch-src::Convert.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/Convert.cpp.orig	Mon Dec 29 05:35:44 2003
2
+++ src/Convert.cpp	Wed Mar 17 00:06:42 2004
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <math.h>
8
+#include <cmath>
9
 #include <qstring.h>
10
 #include <qregexp.h>
11
 #include "Convert.h"
(-)cad/qfsm/files/patch-src::Draw.cpp (-13 lines)
Lines 1-13 Link Here
1
--- src/Draw.cpp.orig	Fri Aug 17 05:07:21 2007
2
+++ src/Draw.cpp	Wed Oct  3 14:30:19 2007
3
@@ -16,8 +16,8 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <math.h>
8
-#include <float.h>
9
+#include <cmath>
10
+#include <cfloat>
11
 #include <qnamespace.h>
12
 #include <qptrlist.h>
13
 #include <qpainter.h>
(-)cad/qfsm/files/patch-src::GState.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/GState.cpp.orig	Fri Aug 17 05:05:36 2007
2
+++ src/GState.cpp	Wed Oct  3 14:33:54 2007
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <math.h>
8
+#include <cmath>
9
 
10
 #include <qpen.h>
11
 #include <qbrush.h>
(-)cad/qfsm/files/patch-src::GTransition.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/GTransition.cpp.orig	Mon Dec 29 05:35:44 2003
2
+++ src/GTransition.cpp	Wed Mar 17 00:08:16 2004
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <math.h>
8
+#include <cmath>
9
 
10
 #include "GTransition.h"
11
 #include "GState.h"
(-)cad/qfsm/files/patch-src::ICheck.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/ICheck.cpp.orig	Tue Feb  3 02:50:35 2004
2
+++ src/ICheck.cpp	Wed Mar 17 00:08:59 2004
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <math.h>
8
+#include <cmath>
9
 #include <qcursor.h>
10
 #include "ICheck.h"
11
 #include "Machine.h"
(-)cad/qfsm/files/patch-src::ListBoxItems.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/ListBoxItems.cpp.orig	Mon Dec 29 05:35:44 2003
2
+++ src/ListBoxItems.cpp	Wed Mar 17 00:09:39 2004
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <math.h>
8
+#include <cmath>
9
 #include <qlistbox.h>
10
 #include <qpen.h>
11
 #include <qpainter.h>
(-)cad/qfsm/files/patch-src::Machine.h (-11 lines)
Lines 1-11 Link Here
1
--- src/Machine.h.orig	Fri Aug 17 05:06:26 2007
2
+++ src/Machine.h	Wed Oct  3 14:34:14 2007
3
@@ -19,7 +19,7 @@
4
 #ifndef MACHINE_H
5
 #define MACHINE_H
6
 
7
-#include <math.h>
8
+#include <cmath>
9
 #include <qptrlist.h>
10
 #include <qobject.h>
11
 #include <qstringlist.h>
(-)cad/qfsm/files/patch-src::OptGeneralDlgImpl.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/OptGeneralDlgImpl.cpp.orig	Mon Dec 29 05:35:44 2003
2
+++ src/OptGeneralDlgImpl.cpp	Tue Mar 16 23:47:47 2004
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <stdlib.h>
8
+#include <cstdlib>
9
 #include <qdir.h>
10
 #include <qstringlist.h>
11
 
(-)cad/qfsm/files/patch-src::State.cpp (-13 lines)
Lines 1-13 Link Here
1
--- src/State.cpp.orig	Sat Mar  6 22:22:17 2004
2
+++ src/State.cpp	Wed Mar 17 00:10:25 2004
3
@@ -16,8 +16,8 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <math.h>
8
-#include <string.h>
9
+#include <cmath>
10
+#include <cstring>
11
 
12
 #include "State.h"
13
 #include "Transition.h"
(-)cad/qfsm/files/patch-src::Transition.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/Transition.cpp.orig	Tue Feb  3 01:36:43 2004
2
+++ src/Transition.cpp	Tue Mar 16 23:48:26 2004
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <stdlib.h>
8
+#include <cstdlib>
9
 //#include <typeinfo>
10
 
11
 #include "Transition.h"
(-)cad/qfsm/files/patch-src::TransitionInfoBin.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/TransitionInfoBin.cpp.orig	Mon Dec 29 05:35:44 2003
2
+++ src/TransitionInfoBin.cpp	Tue Mar 16 23:49:09 2004
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <stdlib.h>
8
+#include <cstdlib>
9
 #include <typeinfo>
10
 #include "IOInfoBin.h"
11
 #include "IOInfoASCII.h"
(-)cad/qfsm/files/patch-src::main.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/main.cpp.orig	Mon Jan 17 06:23:41 2005
2
+++ src/main.cpp	Wed Jan 19 21:39:30 2005
3
@@ -16,7 +16,7 @@
4
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
5
 */
6
 
7
-#include <stdlib.h>
8
+#include <cstdlib>
9
 #include <iostream>
10
 #include <qtranslator.h>
11
 #include <qapplication.h>
(-)cad/qfsm/pkg-plist (-14 / +26 lines)
Lines 1-9 Link Here
1
bin/qfsm
1
bin/qfsm
2
share/applications/qfsm.desktop
2
share/applications/qfsm.desktop
3
%%PORTDOCS%%%%DOCSDIR%%/.qfsm.docbook.swo
4
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
3
%%PORTDOCS%%%%DOCSDIR%%/addstate.png
5
%%PORTDOCS%%%%DOCSDIR%%/addstate.png
4
%%PORTDOCS%%%%DOCSDIR%%/addtrans.png
6
%%PORTDOCS%%%%DOCSDIR%%/addtrans.png
5
%%PORTDOCS%%%%DOCSDIR%%/copy.png
7
%%PORTDOCS%%%%DOCSDIR%%/copy.png
6
%%PORTDOCS%%%%DOCSDIR%%/cut.png
8
%%PORTDOCS%%%%DOCSDIR%%/cut.png
9
%%PORTDOCS%%%%DOCSDIR%%/doc_Makefile
7
%%PORTDOCS%%%%DOCSDIR%%/integrity_check.png
10
%%PORTDOCS%%%%DOCSDIR%%/integrity_check.png
8
%%PORTDOCS%%%%DOCSDIR%%/machine_properties.png
11
%%PORTDOCS%%%%DOCSDIR%%/machine_properties.png
9
%%PORTDOCS%%%%DOCSDIR%%/new.png
12
%%PORTDOCS%%%%DOCSDIR%%/new.png
Lines 12-19 Link Here
12
%%PORTDOCS%%%%DOCSDIR%%/paste.png
15
%%PORTDOCS%%%%DOCSDIR%%/paste.png
13
%%PORTDOCS%%%%DOCSDIR%%/print.png
16
%%PORTDOCS%%%%DOCSDIR%%/print.png
14
%%PORTDOCS%%%%DOCSDIR%%/qfsm.docbook
17
%%PORTDOCS%%%%DOCSDIR%%/qfsm.docbook
18
%%PORTDOCS%%%%DOCSDIR%%/qfsm.fo
15
%%PORTDOCS%%%%DOCSDIR%%/qfsm.html
19
%%PORTDOCS%%%%DOCSDIR%%/qfsm.html
16
%%PORTDOCS%%%%DOCSDIR%%/qfsm.pdf
20
%%PORTDOCS%%%%DOCSDIR%%/qfsm.pdf
21
%%PORTDOCS%%%%DOCSDIR%%/qfsm.rtf
17
%%PORTDOCS%%%%DOCSDIR%%/save.png
22
%%PORTDOCS%%%%DOCSDIR%%/save.png
18
%%PORTDOCS%%%%DOCSDIR%%/select.png
23
%%PORTDOCS%%%%DOCSDIR%%/select.png
19
%%PORTDOCS%%%%DOCSDIR%%/simulate.png
24
%%PORTDOCS%%%%DOCSDIR%%/simulate.png
Lines 21-35 Link Here
21
%%PORTDOCS%%%%DOCSDIR%%/state_properties.png
26
%%PORTDOCS%%%%DOCSDIR%%/state_properties.png
22
%%PORTDOCS%%%%DOCSDIR%%/straighten.png
27
%%PORTDOCS%%%%DOCSDIR%%/straighten.png
23
%%PORTDOCS%%%%DOCSDIR%%/toolbar.png
28
%%PORTDOCS%%%%DOCSDIR%%/toolbar.png
29
%%PORTDOCS%%%%DOCSDIR%%/toolbar2.png
30
%%PORTDOCS%%%%DOCSDIR%%/toolbar3.png
24
%%PORTDOCS%%%%DOCSDIR%%/transition_properties.png
31
%%PORTDOCS%%%%DOCSDIR%%/transition_properties.png
25
%%PORTDOCS%%%%DOCSDIR%%/undo.png
32
%%PORTDOCS%%%%DOCSDIR%%/undo.png
33
%%PORTDOCS%%%%DOCSDIR%%/working_area.png
34
%%PORTDOCS%%%%DOCSDIR%%/working_area.xcf
26
%%PORTDOCS%%%%DOCSDIR%%/working_area2.png
35
%%PORTDOCS%%%%DOCSDIR%%/working_area2.png
27
%%PORTDOCS%%%%DOCSDIR%%/zoom.png
36
%%PORTDOCS%%%%DOCSDIR%%/zoom.png
28
%%PORTDOCS%%%%DOCSDIR%%/zoomin.png
37
%%PORTDOCS%%%%DOCSDIR%%/zoomin.png
29
%%PORTDOCS%%%%DOCSDIR%%/zoomout.png
38
%%PORTDOCS%%%%DOCSDIR%%/zoomout.png
30
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii_example.fsm
39
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii_example.fsm
31
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii_example2.fsm
32
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bin_example.fsm
40
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bin_example.fsm
41
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datum.fsm
42
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/float.fsm
43
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integer.fsm
44
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_example.fsm
33
share/icons/hicolor/32x32/apps/qfsm.png
45
share/icons/hicolor/32x32/apps/qfsm.png
34
share/icons/hicolor/32x32/mimetypes/x-qfsm.png
46
share/icons/hicolor/32x32/mimetypes/x-qfsm.png
35
share/icons/hicolor/48x48/apps/qfsm.png
47
share/icons/hicolor/48x48/apps/qfsm.png
Lines 41-59 Link Here
41
%%DATADIR%%/French.qm
53
%%DATADIR%%/French.qm
42
%%DATADIR%%/German.qm
54
%%DATADIR%%/German.qm
43
@dirrm %%DATADIR%%
55
@dirrm %%DATADIR%%
44
@dirrm share/mimelnk/application
56
@dirrmtry share/mimelnk/application
45
@dirrm share/mimelnk
57
@dirrmtry share/mimelnk
46
@dirrm share/icons/hicolor/64x64/mimetypes
58
@dirrmtry share/icons/hicolor/64x64/mimetypes
47
@dirrm share/icons/hicolor/64x64/apps
59
@dirrmtry share/icons/hicolor/64x64/apps
48
@dirrm share/icons/hicolor/64x64
60
@dirrmtry share/icons/hicolor/64x64
49
@dirrm share/icons/hicolor/48x48/mimetypes
61
@dirrmtry share/icons/hicolor/48x48/mimetypes
50
@dirrm share/icons/hicolor/48x48/apps
62
@dirrmtry share/icons/hicolor/48x48/apps
51
@dirrm share/icons/hicolor/48x48
63
@dirrmtry share/icons/hicolor/48x48
52
@dirrm share/icons/hicolor/32x32/mimetypes
64
@dirrmtry share/icons/hicolor/32x32/mimetypes
53
@dirrm share/icons/hicolor/32x32/apps
65
@dirrmtry share/icons/hicolor/32x32/apps
54
@dirrm share/icons/hicolor/32x32
66
@dirrmtry share/icons/hicolor/32x32
55
@dirrm share/icons/hicolor
67
@dirrmtry share/icons/hicolor
56
@dirrm share/icons
68
@dirrmtry share/icons
57
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
69
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
58
%%PORTDOCS%%@dirrm %%DOCSDIR%%
70
%%PORTDOCS%%@dirrm %%DOCSDIR%%
59
@dirrmtry share/applications
71
@dirrmtry share/applications

Return to bug 122495