Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / qt4-libs / Makefile
blobd8e1b027e739c1f9436f1cc75e68ebc25c6e5ce6
1 # $NetBSD: Makefile,v 1.86 2013/02/16 11:18:08 wiz Exp $
3 PKGNAME= qt4-libs-${QTVERSION}
4 PKGREVISION= 4
5 COMMENT= C++ X GUI toolkit
7 .include "../../x11/qt4-libs/Makefile.common"
9 # XXX this is to test what really gets installed when 'do-install' is disabled
10 INSTALL_DIRS+= src
12 BUILD_TARGET= sub-src
14 PTHREAD_OPTS+= require
15 UNLIMIT_RESOURCES= datasize
16 BUILDLINK_PASSTHRU_DIRS+=${QTPREFIX}
18 PLIST_SRC= ${WRKDIR}/PLIST ${PKGDIR}/PLIST
20 # built as plugins
21 CONFIGURE_ARGS+= -no-dbus
22 CONFIGURE_ARGS+= -no-libmng
23 CONFIGURE_ARGS+= -no-libtiff
24 CONFIGURE_ARGS+= -no-sql-sqlite
26 # kdelibs4 requires openssl support!
27 CONFIGURE_ARGS+= -openssl-linked
29 INSTALLATION_DIRS= lib/pkgconfig
30 INSTALLATION_DIRS+= ${QTPREFIX}/bin
31 INSTALLATION_DIRS+= ${QTPREFIX}/imports/Qt/labs/folderlistmodel
32 INSTALLATION_DIRS+= ${QTPREFIX}/imports/Qt/labs/gestures
33 INSTALLATION_DIRS+= ${QTPREFIX}/imports/Qt/labs/particles
34 INSTALLATION_DIRS+= ${QTPREFIX}/imports/QtWebKit
35 INSTALLATION_DIRS+= ${QTPREFIX}/include
36 INSTALLATION_DIRS+= ${QTPREFIX}/lib
37 INSTALLATION_DIRS+= ${QTPREFIX}/plugins/accessible
38 INSTALLATION_DIRS+= ${QTPREFIX}/plugins/bearer
39 INSTALLATION_DIRS+= ${QTPREFIX}/plugins/codecs
40 INSTALLATION_DIRS+= ${QTPREFIX}/plugins/graphicssystems
41 INSTALLATION_DIRS+= ${QTPREFIX}/plugins/iconengines
42 INSTALLATION_DIRS+= ${QTPREFIX}/plugins/imageformats
43 .if ${OPSYS} == "Darwin"
44 INSTALLATION_DIRS+= ${QTPREFIX}/qt_menu.nib
45 .else
46 INSTALLATION_DIRS+= ${QTPREFIX}/plugins/inputmethods
47 .endif
49 INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
51 SUBST_CLASSES+= no-libtool
52 SUBST_MESSAGE.no-libtool= Removing unwanted libtool link command.
53 SUBST_STAGE.no-libtool= post-configure
54 SUBST_FILES.no-libtool= translations/Makefile
55 SUBST_SED.no-libtool= -e '/@: IGNORE THIS LINE/s,=.*$$,= @:,'
57 do-install:
58 .for prog in moc rcc uic
59 ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${DESTDIR}${QTPREFIX}/bin/
60 .endfor
61 ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/uic3 \
62 ${DESTDIR}${QTPREFIX}/bin/
63 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
64 ${WRKSRC}/imports/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.la \
65 ${DESTDIR}${QTPREFIX}/imports/Qt/labs/folderlistmodel/
66 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
67 ${WRKSRC}/imports/Qt/labs/gestures/libqmlgesturesplugin.la \
68 ${DESTDIR}${QTPREFIX}/imports/Qt/labs/gestures/
69 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
70 ${WRKSRC}/imports/Qt/labs/particles/libqmlparticlesplugin.la \
71 ${DESTDIR}${QTPREFIX}/imports/Qt/labs/particles/
72 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
73 ${WRKSRC}/imports/QtWebKit/libqmlwebkitplugin.la \
74 ${DESTDIR}${QTPREFIX}/imports/QtWebKit/
75 .for incl in corelib declarative gui multimedia network opengl qt3support script scripttools sql svg testlib xml xmlpatterns 3rdparty/webkit/Source/WebKit/qt
76 cd ${WRKSRC}/src/${incl} && env ${MAKE_ENV} ${INSTALL_ENV} \
77 ${MAKE_PROGRAM} install_flat_headers install_targ_headers install_class_headers
78 .endfor
79 cd ${DESTDIR}${PREFIX} && find qt4/include -type f -print > ${WRKDIR}/PLIST
80 .for lib in Qt3Support QtCore QtDeclarative QtGui QtMultimedia QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtTest QtWebKit QtXml QtXmlPatterns jscore webcore
81 ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${lib}.la \
82 ${DESTDIR}${QTPREFIX}/lib/
83 sed -e "s:${WRKSRC}:${QTPREFIX}:g" \
84 -e "s:${QTPREFIX}/lib/lib\\([A-Za-z3]*\\)\\.la:-l\\1:g" \
85 ${WRKSRC}/lib/pkgconfig/${lib}.pc > ${WRKDIR}/${lib}.pc
86 ${INSTALL_DATA} ${WRKDIR}/${lib}.pc ${DESTDIR}${PREFIX}/lib/pkgconfig/
87 .endfor
88 ${INSTALL_DATA} ${WRKSRC}/tools/porting/src/q3porting.xml ${DESTDIR}${QTPREFIX}
89 .for plug in qtaccessiblecompatwidgets qtaccessiblewidgets
90 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
91 ${WRKSRC}/plugins/accessible/lib${plug}.la \
92 ${DESTDIR}${QTPREFIX}/plugins/accessible/
93 .endfor
94 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
95 ${WRKSRC}/plugins/bearer/libqgenericbearer.la \
96 ${DESTDIR}${QTPREFIX}/plugins/bearer/
97 .for codec in qcncodecs qjpcodecs qkrcodecs qtwcodecs
98 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
99 ${WRKSRC}/plugins/codecs/lib${codec}.la \
100 ${DESTDIR}${QTPREFIX}/plugins/codecs/
101 .endfor
102 .for plug in qglgraphicssystem qtracegraphicssystem
103 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
104 ${WRKSRC}/plugins/graphicssystems/lib${plug}.la \
105 ${DESTDIR}${QTPREFIX}/plugins/graphicssystems/
106 .endfor
107 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
108 ${WRKSRC}/plugins/iconengines/libqsvgicon.la \
109 ${DESTDIR}/${QTPREFIX}/plugins/iconengines/
110 .for plug in qgif qico qjpeg qsvg qtga
111 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
112 ${WRKSRC}/plugins/imageformats/lib${plug}.la \
113 ${DESTDIR}${QTPREFIX}/plugins/imageformats/
114 .endfor
115 .if ${OPSYS} == "Darwin"
116 ${INSTALL_DATA} ${WRKSRC}/src/gui/mac/qt_menu.nib/*.nib \
117 ${DESTDIR}${QTPREFIX}/qt_menu.nib/
118 .else
119 ${LIBTOOL} --mode=install ${INSTALL_LIB} \
120 ${WRKSRC}/plugins/inputmethods/libqimsw-multi.la \
121 ${DESTDIR}/${QTPREFIX}/plugins/inputmethods/
122 .endif
124 .if ${OPSYS} != "Darwin"
125 .include "../../graphics/glu/buildlink3.mk"
126 .include "../../x11/libSM/buildlink3.mk"
127 .include "../../x11/libXcursor/buildlink3.mk"
128 .include "../../x11/libXft/buildlink3.mk"
129 .include "../../x11/libXmu/buildlink3.mk"
130 .include "../../x11/libXrandr/buildlink3.mk"
131 .endif
133 .include "../../devel/zlib/buildlink3.mk"
134 .include "../../fonts/fontconfig/buildlink3.mk"
135 .include "../../graphics/freetype2/buildlink3.mk"
136 .include "../../mk/jpeg.buildlink3.mk"
137 .include "../../graphics/png/buildlink3.mk"
138 .include "../../security/openssl/buildlink3.mk"
140 .include "../../mk/pthread.buildlink3.mk"
141 .include "../../mk/bsd.pkg.mk"