blob: b3a94a8b4f21e25734cfe30dff9d0c22e913f01a (
plain)
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
|
# New ports collection makefile for: qtscriptgenerator
# Date Created: 13 Apr 2009
# Whom: Mina R Waheeb <syncer@gmail.com>
#
# $FreeBSD$
PORTNAME= qtscriptgenerator
PORTVERSION= 0.2.0
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= syncer@gmail.com
COMMENT= Tool that generates Qt bindings for Qt Script
OPTIONS= PHONON "Build Phonon support" on
USE_QT_VER= 4
QT_COMPONENTS= corelib declarative designer doc help help-tools gui \
iconengines imageformats inputmethods linguist network \
opengl pixeltool porting qdbusviewer \
qt3support qtestlib qvfb script scripttools \
sql svg webkit xml xmlpatterns xmlpatterns-tool \
qmake_build moc_build rcc_build uic_build
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
.if !defined(WITHOUT_PHONON)
QT_COMPONENTS+= phonon
PLIST_SUB+= PHONON=""
.else
EXTRA_PATCHES= ${FILESDIR}/extra-patch-no_phonon
PLIST_SUB+= PHONON="@comment "
.endif
do-configure:
@cd ${WRKSRC}/generator && \
${SETENV} ${CONFIGURE_ENV} ${QMAKE} \
PREFIX=${PREFIX} \
generator.pro
do-build:
@echo "---> Building generator"
@cd ${WRKSRC}/generator && \
${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} && \
${SETENV} ${CONFIGURE_ENV} ./generator \
--include-paths=${PREFIX}/include/:${PREFIX}/include/qt4/
@echo "---> Configuring generated files"
@cd ${WRKSRC}/qtbindings && \
${SETENV} ${CONFIGURE_ENV} ${QMAKE} \
PREFIX=${PREFIX} \
INCLUDEPATH+=${PREFIX}/include/qt4/phonon \
LIBS+=-L${PREFIX}/lib \
qtbindings.pro
@echo "---> Building generated files"
@cd ${WRKSRC}/qtbindings && \
${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS}
do-install:
${MKDIR} ${PREFIX}/${QT_PLUGINDIR_REL}/script
cd ${WRKSRC}/plugins/script && \
${COPYTREE_SHARE} \* ${PREFIX}/${QT_PLUGINDIR_REL}/script
.include <bsd.port.mk>
|