ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/misc/qt4-qtdemo/Makefile
Revision: 19887
Committed: Fri Aug 21 00:14:01 2015 UTC (8 years, 8 months ago) by laffer1
File size: 2235 byte(s)
Log Message:
this is still having issues, but at least we fixed some problems

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME= qtdemo
4 DISTVERSION= ${QT4_VERSION}
5 PORTREVISION= 2
6 CATEGORIES= misc
7 PKGNAMEPREFIX= qt4-
8
9 MAINTAINER= ports@MidnightBSD.org
10 COMMENT= Qt 4 demonstration and example applications
11
12 LICENSE= gpl3
13
14 USES= pkgconfig
15 USE_GSTREAMER= yes
16 USE_QT4= qmake_build moc_build rcc_build uic_build corelib designer \
17 gui network opengl sql svg qtestlib xml imageformats_run dbus \
18 script webkit phonon help assistant_run phonon-gst_run scripttools \
19 xmlpatterns multimedia
20 QT_DIST= yes
21
22 HAS_CONFIGURE= yes
23
24 ALL_TARGET= first
25 CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
26 MAKE_ENV?= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib:$$LD_LIBRARY_PATH \
27 PATH=${WRKSRC}/bin:$$PATH
28
29 # qtlogo.png is installed by qt4-gui
30 DESKTOP_ENTRIES="Qt 4 Examples and Demos" "" \
31 "${QT_PREFIX}/share/pixmaps/qtlogo.png" \
32 "${PREFIX}/${QT_BINDIR_REL}/qtdemo" \
33 "Development;Qt;" true
34
35 DO_NOT_EXTRACT= doc mkspecs qmake translations \
36 src/activeqt src/openvg src/s60installs src/s60main src/tools \
37 src/winmain src/3rdparty/clucene src/3rdparty/freetype \
38 src/3rdparty/libjpeg src/3rdparty/libmng src/3rdparty/libpng \
39 src/3rdparty/libtiff
40 .for dne in ${DO_NOT_EXTRACT}
41 EXTRACT_AFTER_ARGS+= --exclude '${DISTNAME}/${dne}'
42 .endfor
43
44 BUILD_WRKSRC= ${WRKSRC}/demos
45 INSTALL_WRKSRC= ${BUILD_WRKSRC}
46
47 post-patch:
48 ${REINPLACE_CMD} -e '/app +=/s|"assistant"|"assistant${_QT_BINSUFX}"|' \
49 ${BUILD_WRKSRC}/${PORTNAME}/menumanager.cpp \
50 ${WRKSRC}/examples/help/remotecontrol/remotecontrol.cpp \
51 ${WRKSRC}/examples/help/simpletextviewer/assistant.cpp
52
53 pre-configure:
54 ${MKDIR} ${WRKSRC}/mkspecs/modules
55 ${LN} -sf ${QMAKE} ${WRKSRC}/bin/qmake
56 ${LN} -sf ${MOC} ${WRKSRC}/bin/moc
57 ${LN} -sf ${UIC} ${WRKSRC}/bin/uic
58 ${LN} -sf ${RCC} ${WRKSRC}/bin/rcc
59
60 post-build:
61 cd ${WRKSRC}/examples && \
62 ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKEFLAGS} ${MAKEFILE} \
63 ${_MAKE_JOBS} ${MAKE_ARGS} ${FAKE_MAKEARGS} ${ALL_TARGET}
64
65 post-install:
66 cd ${WRKSRC}/examples && \
67 ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKEFLAGS} ${MAKEFILE} \
68 ${MAKE_ARGS} ${FAKE_MAKEARGS} ${INSTALL_TARGET}
69 ${FIND} -E ${PREFIX}/share/examples/qt4/examples/declarative/cppextensions -regex ".*\.(moc|obj|pch|rcc)" -type d | ${XARGS} ${RM} -r
70
71 .include <bsd.port.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H