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 |