1 |
# $MidnightBSD$ |
2 |
# $FreeBSD: ports/graphics/qt4-imageformats/Makefile,v 1.22 2010/12/02 19:47:11 makc Exp $ |
3 |
|
4 |
PORTNAME= imageformats |
5 |
DISTVERSION= ${QT4_VERSION} |
6 |
CATEGORIES= graphics |
7 |
PKGNAMEPREFIX= qt4- |
8 |
|
9 |
MAINTAINER= ports@MidnightBSD.org |
10 |
COMMENT= Qt plugins for several image formats |
11 |
|
12 |
LICENSE= gpl3 |
13 |
|
14 |
LIB_DEPENDS= libmng.so:graphics/libmng \ |
15 |
libpng.so:graphics/png \ |
16 |
libtiff.so:graphics/tiff |
17 |
|
18 |
USES= jpeg pkgconfig |
19 |
USE_QT4= qmake_build moc_build rcc_build corelib gui svg xml |
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 |
DO_NOT_EXTRACT= demos doc examples mkspecs qmake tools translations \ |
30 |
src/activeqt src/dbus src/multimedia src/network src/opengl \ |
31 |
src/openvg src/phonon src/qt3support src/s60installs \ |
32 |
src/s60main src/script src/scripttools src/sql src/testlib \ |
33 |
src/tools src/winmain src/xml src/xmlpatterns \ |
34 |
src/3rdparty/clucene src/3rdparty/freetype \ |
35 |
src/3rdparty/libjpeg src/3rdparty/libmng src/3rdparty/libpng \ |
36 |
src/3rdparty/libtiff src/3rdparty/phonon src/3rdparty/webkit |
37 |
.for dne in ${DO_NOT_EXTRACT} |
38 |
EXTRACT_AFTER_ARGS+= --exclude '${DISTNAME}/${dne}' |
39 |
.endfor |
40 |
|
41 |
BUILD_WRKSRC= ${WRKSRC}/src/plugins/${PORTNAME} |
42 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
43 |
|
44 |
PLIST_SUB+= QT_PLUGINDIR_REL=${QT_PLUGINDIR_REL} |
45 |
|
46 |
pre-configure: |
47 |
${MKDIR} ${WRKSRC}/mkspecs |
48 |
${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/bin/qmake |
49 |
${LN} -sf ${LOCALBASE}/bin/moc-qt4 ${WRKSRC}/bin/moc |
50 |
${LN} -sf ${LOCALBASE}/bin/rcc ${WRKSRC}/bin/rcc |
51 |
|
52 |
.include <bsd.port.mk> |