blob: dd3ad70fd301798e3e0d8a6da3ce10122484529f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# ex:ts=8
# Ports collection makefile for: qfsm
# Date created: Mar 14, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= qfsm
PORTVERSION= 0.52.0
PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
DISTNAME= ${PORTNAME}-${PORTVERSION}-Source
MAINTAINER= ports@FreeBSD.org
COMMENT= A graphical tool for designing finite state machines
USE_BZIP2= yes
USE_XORG= xi
USE_QT_VER= 4
QT_COMPONENTS= corelib gui qt3support svg xml \
moc_build porting_build qmake_build \
uic_build uic3_build rcc_build
USE_GNOME= desktopfileutils
USE_CMAKE= yes
CMAKE_USE_PTHREAD= yes
INSTALLS_ICONS= yes
.if !defined(WITH_DEBUG)
CMAKE_ARGS+= -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG"
.endif
post-patch:
@${REINPLACE_CMD} -e 's|(/usr/include/.*$$|(|g ; \
/^\/usr\/include/d ; \
/SET.*CMAKE_BUILD_TYPE/d ; \
/SET.*CMAKE_INSTALL_PREFIX/d' ${WRKSRC}/CMakeLists.txt
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} qfsm ${PREFIX}/bin)
@${MKDIR} ${PREFIX}/share/applications
(cd ${WRKSRC}/desktop && ${INSTALL_DATA} qfsm.desktop \
${PREFIX}/share/applications)
.for i in 32x32 48x48 64x64
@${MKDIR} ${PREFIX}/share/icons/hicolor/${i}/apps
(cd ${WRKSRC}/desktop/${i}/apps && ${INSTALL_DATA} qfsm.png \
${PREFIX}/share/icons/hicolor/${i}/apps)
@${MKDIR} ${PREFIX}/share/icons/hicolor/${i}/mimetypes
(cd ${WRKSRC}/desktop/${i}/mimetypes && ${INSTALL_DATA} x-qfsm.png \
${PREFIX}/share/icons/hicolor/${i}/mimetypes)
.endfor
@${MKDIR} ${PREFIX}/share/mimelnk/application
(cd ${WRKSRC}/desktop && ${INSTALL_DATA} x-qfsm.desktop \
${PREFIX}/share/mimelnk/application)
@${MKDIR} ${DATADIR}
(cd ${WRKSRC}/po && ${INSTALL_DATA} *.qm ${DATADIR})
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/doc/user && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
@-update-desktop-database
.include <bsd.port.mk>
|