blob: 354458c203cade78b92dc0efb2f545d97fd0a2be (
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
|
# New ports collection makefile for: bouml
# Date created: 14 June 2005
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= bouml
PORTVERSION= 2.21.3
CATEGORIES= devel
MASTER_SITES= http://bouml.free.fr/
DISTFILES= ${PORTNAME}_${PORTVERSION}${EXTRACT_SUFX}
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}_${PORTREVISION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= BOUML, a free UML 2 modeler
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
USE_QT_VER= 3
QTDIR?= ${X11BASE}
ALL_TARGET= compile
MAKE_ENV= QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++" \
QTDIR="${QTDIR}"
INSTALLS_ICONS= yes
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
.if !defined(NOPORTDOCS)
DISTFILES+= doc${EXTRACT_SUFX}
IGNOREFILES+= doc${EXTRACT_SUFX}
PORTDOCS= *
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= Does not compile with gcc-2.95
.endif
pre-configure:
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%DESKTOPDIR%%|${DESKTOPDIR}|' ${WRKSRC}/${MAKEFILE}
${FIND} ${WRKSRC} -name "*.pro" | \
${XARGS} ${REINPLACE_CMD} -e '/^CONFIG/s/$$/ thread/'
post-install:
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
${CHMOD} -R ${SHAREMODE} ${DATADIR}/xmi/*
${FIND} ${DATADIR} -type f -perm 755 | ${XARGS} ${STRIP_CMD}
.if !defined(NOPORTDOCS)
cd ${WRKDIR}/doc && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
cd ${WRKDIR}/doc && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.post.mk>
|