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

(-)cad/qfsm/Makefile (-13 / +19 lines)
Lines 7-39 Link Here
7
#
7
#
8
8
9
PORTNAME=	qfsm
9
PORTNAME=	qfsm
10
PORTVERSION=	0.52.0
10
PORTVERSION=	0.53.0
11
PORTREVISION=	2
11
DISTVERSIONSUFFIX=	-Source
12
CATEGORIES=	cad
12
CATEGORIES=	cad
13
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
13
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
14
DISTNAME=	${PORTNAME}-${PORTVERSION}-Source
15
14
16
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	A graphical tool for designing finite state machines
16
COMMENT=	A graphical tool for designing finite state machines
18
17
18
LICENSE=	GPLv3 # (or later)
19
20
OPTIONS_DEFINE=	GRAPHVIZ DOCS EXAMPLES
21
19
USE_BZIP2=	yes
22
USE_BZIP2=	yes
20
USE_XORG=	xi
23
USE_XORG=	xi
21
USE_QT4=	corelib gui qt3support svg xml \
24
USE_QT4=	corelib gui qt3support svg xml \
22
		moc_build porting_build qmake_build \
25
		moc_build qmake_build rcc_build uic_build
23
		uic_build uic3_build rcc_build
24
USE_GNOME=	desktopfileutils
26
USE_GNOME=	desktopfileutils
25
USE_CMAKE=	yes
27
USE_CMAKE=	yes
26
INSTALLS_ICONS=	yes
28
INSTALLS_ICONS=	yes
29
MAKE_JOBS_SAFE=	yes
30
31
.include <bsd.port.options.mk>
27
32
28
.if !defined(WITH_DEBUG)
33
.if ${PORT_OPTIONS:MGRAPHVIZ}
29
CMAKE_ARGS+=	-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG"
34
BULID_DEPENDS+=	graphviz>=2.22:${PORTSDIR}/graphics/graphviz
35
RUN_DEPENDS+=	graphviz>=2.22:${PORTSDIR}/graphics/graphviz
36
.else
37
CMAKE_ARGS+=	-DQFSM_AVOID_GRAPHVIZ:BOOL=ON
30
.endif
38
.endif
31
39
32
post-patch:
40
post-patch:
33
	@${REINPLACE_CMD} -e 's|(/usr/include/.*$$|(|g ; \
41
	@${REINPLACE_CMD} -e \
34
		 /^\/usr\/include/d ; \
42
		'/\/usr\//d' ${WRKSRC}/FindGraphViz.cmake
35
		 /SET.*CMAKE_BUILD_TYPE/d ; \
36
		 /SET.*CMAKE_INSTALL_PREFIX/d' ${WRKSRC}/CMakeLists.txt
37
43
38
do-install:
44
do-install:
39
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} qfsm ${PREFIX}/bin)
45
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} qfsm ${PREFIX}/bin)
Lines 53-63 Link Here
53
		${PREFIX}/share/mimelnk/application)
59
		${PREFIX}/share/mimelnk/application)
54
	@${MKDIR} ${DATADIR}
60
	@${MKDIR} ${DATADIR}
55
	(cd ${WRKSRC}/po && ${INSTALL_DATA} *.qm ${DATADIR})
61
	(cd ${WRKSRC}/po && ${INSTALL_DATA} *.qm ${DATADIR})
56
.if !defined(NOPORTDOCS)
62
.if ${PORT_OPTIONS:MDOCS}
57
	@${MKDIR} ${DOCSDIR}
63
	@${MKDIR} ${DOCSDIR}
58
	@(cd ${WRKSRC}/doc/user && ${COPYTREE_SHARE} . ${DOCSDIR})
64
	@(cd ${WRKSRC}/doc/user && ${COPYTREE_SHARE} . ${DOCSDIR})
59
.endif
65
.endif
60
.if !defined(NOPORTEXAMPLES)
66
.if ${PORT_OPTIONS:MEXAMPLES}
61
	@${MKDIR} ${EXAMPLESDIR}
67
	@${MKDIR} ${EXAMPLESDIR}
62
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
68
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
63
.endif
69
.endif
(-)cad/qfsm/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (qfsm-0.52.0-Source.tar.bz2) = 9d2e03901338517b622771c1e4db4c3d7a50c3d8525cab9315d4b7a953e191b0
1
SHA256 (qfsm-0.53.0-Source.tar.bz2) = a47f2f85fc15992a41ae06560fdc0ddbd663488821af6a34d2f0a3a87c4ba9bb
2
SIZE (qfsm-0.52.0-Source.tar.bz2) = 2830833
2
SIZE (qfsm-0.53.0-Source.tar.bz2) = 1498547
(-)cad/qfsm/files/patch-CMakeLists.txt (+41 lines)
Line 0 Link Here
1
--- CMakeLists.txt.orig	2012-05-30 18:36:12.000000000 +0900
2
+++ CMakeLists.txt	2012-06-23 18:00:22.000000000 +0900
3
@@ -35,6 +35,9 @@
4
 ENDIF ( WIN32 )
5
 
6
 
7
+SET(QFSM_AVOID_GRAPHVIZ "" CACHE BOOL "Avoid linking against GraphViz")
8
+
9
+IF(NOT QFSM_AVOID_GRAPHVIZ)
10
 FIND_PACKAGE(GraphViz)
11
 IF(graphviz_FOUND)
12
   MESSAGE("Graphviz library found")
13
@@ -45,13 +48,14 @@
14
 ELSE(graphviz_FOUND)
15
   MESSAGE("WARNING: Graphviz library not found")
16
 ENDIF(graphviz_FOUND)
17
+ENDIF(NOT QFSM_AVOID_GRAPHVIZ)
18
 
19
 FIND_PACKAGE(Qt4 REQUIRED)
20
 
21
 ADD_DEFINITIONS(-DQT3_SUPPORT -DSVG)
22
 
23
 #SET( CMAKE_BUILD_TYPE Debug )
24
-SET( CMAKE_BUILD_TYPE Release )
25
+#SET( CMAKE_BUILD_TYPE Release )
26
 
27
 SET( QT_USE_QT3SUPPORT TRUE )
28
 SET( QT_USE_QTXML TRUE )
29
@@ -405,9 +409,9 @@
30
 
31
 
32
 
33
-IF(UNIX AND NOT WIN32)
34
-  SET(CMAKE_INSTALL_PREFIX "/usr")
35
-ENDIF(UNIX AND NOT WIN32)
36
+#IF(UNIX AND NOT WIN32)
37
+#  SET(CMAKE_INSTALL_PREFIX "/usr")
38
+#ENDIF(UNIX AND NOT WIN32)
39
 
40
 IF(UNIX AND NOT WIN32)
41
   ADD_DEFINITIONS(-DQFSM_LANGUAGE_DIR="${CMAKE_INSTALL_PREFIX}/share/qfsm/")
(-)cad/qfsm/pkg-plist (+3 lines)
Lines 38-48 Link Here
38
%%PORTDOCS%%%%DOCSDIR%%/zoom.png
38
%%PORTDOCS%%%%DOCSDIR%%/zoom.png
39
%%PORTDOCS%%%%DOCSDIR%%/zoomin.png
39
%%PORTDOCS%%%%DOCSDIR%%/zoomin.png
40
%%PORTDOCS%%%%DOCSDIR%%/zoomout.png
40
%%PORTDOCS%%%%DOCSDIR%%/zoomout.png
41
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii.gv
41
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii_example.fsm
42
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii_example.fsm
43
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bin.gv
42
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bin_example.fsm
44
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bin_example.fsm
43
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datum.fsm
45
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datum.fsm
44
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/float.fsm
46
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/float.fsm
45
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integer.fsm
47
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integer.fsm
48
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/more_complex_nonsense.fsm
46
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_example.fsm
49
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_example.fsm
47
share/icons/hicolor/32x32/apps/qfsm.png
50
share/icons/hicolor/32x32/apps/qfsm.png
48
share/icons/hicolor/32x32/mimetypes/x-qfsm.png
51
share/icons/hicolor/32x32/mimetypes/x-qfsm.png

Return to bug 169404