ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/misc/qt4-qtdemo/Makefile
Revision: 11653
Committed: Sat Jul 23 23:46:58 2011 UTC (12 years, 9 months ago) by laffer1
File size: 2116 byte(s)
Log Message:
4.7.2

File Contents

# User Rev Content
1 laffer1 11653 # $MidnightBSD$
2     # $FreeBSD: ports/misc/qt4-qtdemo/Makefile,v 1.21 2010/12/02 19:47:13 makc Exp $
3 laffer1 6546
4     PORTNAME= qtdemo
5 laffer1 11653 DISTVERSION= ${QT4_VERSION}
6 laffer1 6546 CATEGORIES?= misc
7     PKGNAMEPREFIX= qt4-
8    
9     MAINTAINER= ports@MidnightBSD.org
10     COMMENT= Qt demonstration and example programs
11 laffer1 11653 LICENSE= gpl3
12 laffer1 6546
13     USE_QT_VER= 4
14 laffer1 11653 QT_COMPONENTS= qmake_build moc_build rcc_build uic_build corelib designer \
15     gui network opengl sql svg qtestlib xml imageformats_run dbus \
16     script webkit phonon help assistant_run phonon-gst scripttools \
17     xmlpatterns multimedia
18 laffer1 6546 QT_NONSTANDARD= yes
19     QT_DIST= yes
20 laffer1 11653 MAKE_JOBS_SAFE= yes
21 laffer1 6546
22     HAS_CONFIGURE= yes
23    
24     ALL_TARGET= first
25     CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
26 laffer1 11653 MAKE_ENV?= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib:$$LD_LIBRARY_PATH \
27 laffer1 6718 PATH=${WRKSRC}/bin:$$PATH
28 laffer1 6546
29 laffer1 11653 DO_NOT_EXTRACT= doc mkspecs qmake translations \
30     src/activeqt src/openvg src/s60installs src/s60main src/tools \
31     src/winmain src/3rdparty/clucene src/3rdparty/freetype \
32     src/3rdparty/libjpeg src/3rdparty/libmng src/3rdparty/libpng \
33     src/3rdparty/libtiff
34 laffer1 6546 EXTRACT_AFTER_ARGS= | ${TAR} -xf -
35     .for dne in ${DO_NOT_EXTRACT}
36     EXTRACT_AFTER_ARGS+= --exclude '${DISTNAME}/${dne}'
37     .endfor
38    
39 laffer1 11653 BUILD_WRKSRC= ${WRKSRC}/demos
40     INSTALL_WRKSRC= ${BUILD_WRKSRC}
41 laffer1 6546
42 laffer1 11653 EXTRA_PATCHES= ${.CURDIR}/../../devel/qt4/files/patch-configure
43    
44 laffer1 6546 post-patch:
45     ${REINPLACE_CMD} -e '/app +=/s|"assistant"|"assistant-qt4"|' \
46 laffer1 11653 ${BUILD_WRKSRC}/${PORTNAME}/menumanager.cpp \
47     ${WRKSRC}/examples/help/remotecontrol/remotecontrol.cpp \
48     ${WRKSRC}/examples/help/simpletextviewer/assistant.cpp
49 laffer1 6546
50     pre-configure:
51 laffer1 11653 ${MKDIR} ${WRKSRC}/mkspecs/modules
52     ${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/bin/qmake
53     ${LN} -sf ${LOCALBASE}/bin/moc-qt4 ${WRKSRC}/bin/moc
54     ${LN} -sf ${LOCALBASE}/bin/uic-qt4 ${WRKSRC}/bin/uic
55     ${LN} -sf ${LOCALBASE}/bin/rcc ${WRKSRC}/bin/rcc
56 laffer1 6546
57     post-build:
58 laffer1 11653 cd ${WRKSRC}/examples && ${SETENV} MAKEOBJDIR=. ${MAKE}
59 laffer1 6546
60     post-install:
61 laffer1 11653 cd ${WRKSRC}/examples && ${SETENV} MAKEOBJDIR=. ${MAKE} install
62     ${FIND} -E ${PREFIX}/share/examples/qt4/examples/declarative/cppextensions -regex ".*\.(moc|obj|pch|rcc)" -type d | ${XARGS} ${RM} -r
63 laffer1 6546
64     .include <bsd.port.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.5