|
Lines 9-19
Link Here
|
| 9 |
|
9 |
|
| 10 |
SLOT="3" |
10 |
SLOT="3" |
| 11 |
KEYWORDS="~x86 ~amd64 ~ppc" |
11 |
KEYWORDS="~x86 ~amd64 ~ppc" |
| 12 |
IUSE="cups debug doc firebird gif ipv6 mysql nis odbc opengl postgres sqlite" |
12 |
IUSE="cups debug doc firebird gif jpeg mng png ipv6 mysql nis odbc opengl postgres sqlite" |
| 13 |
|
13 |
|
| 14 |
DEPEND="media-libs/libpng |
14 |
DEPEND="png? ( media-libs/libpng ) |
| 15 |
media-libs/jpeg |
15 |
jpeg? ( media-libs/jpeg ) |
| 16 |
media-libs/libmng |
16 |
mng? ( media-libs/libmng ) |
| 17 |
media-libs/lcms |
17 |
media-libs/lcms |
| 18 |
sys-libs/zlib |
18 |
sys-libs/zlib |
| 19 |
cups? ( net-print/cups ) |
19 |
cups? ( net-print/cups ) |
|
Lines 64-69
Link Here
|
| 64 |
src_compile() { |
64 |
src_compile() { |
| 65 |
addwrite "${QTBASE}/etc/settings" |
65 |
addwrite "${QTBASE}/etc/settings" |
| 66 |
|
66 |
|
|
|
67 |
use png && myconf="${myconf} -plugin-imgfmt-png -system-libpng" || myconf="${myconf} -no-imgfmt-png" |
| 68 |
use mng && myconf="${myconf} -plugin-imgfmt-mng -system-libmng" || myconf="${myconf} -no-imgfmt-mng" |
| 69 |
use jpeg && myconf="${myconf} -plugin-imgfmt-jpeg -system-libjpeg" || myconf="${myconf}" |
| 67 |
use gif && myconf="${myconf} -qt-gif" || myconf="${myconf} -no-gif" |
70 |
use gif && myconf="${myconf} -qt-gif" || myconf="${myconf} -no-gif" |
| 68 |
use cups && myconf="${myconf} -cups" || myconf="${myconf} -no-cups" |
71 |
use cups && myconf="${myconf} -cups" || myconf="${myconf} -no-cups" |
| 69 |
use nis && myconf="${myconf} -nis" || myconf="${myconf} -no-nis" |
72 |
use nis && myconf="${myconf} -nis" || myconf="${myconf} -no-nis" |
|
Lines 75-91
Link Here
|
| 75 |
use sqlite && myconf="${myconf} -plugin-sql-sqlite" || myconf="${myconf} -no-sql-sqlite" |
78 |
use sqlite && myconf="${myconf} -plugin-sql-sqlite" || myconf="${myconf} -no-sql-sqlite" |
| 76 |
use debug && myconf="${myconf} -debug" || myconf="${myconf} -release -no-g++-exceptions" |
79 |
use debug && myconf="${myconf} -debug" || myconf="${myconf} -release -no-g++-exceptions" |
| 77 |
|
80 |
|
| 78 |
./configure ${myconf} -shared -depths 8,16,24,32 -system-zlib -thread -stl \ |
81 |
./configure ${myconf} -depths 8,16,24,32 -system-zlib -thread -qvfb -prefix ${QTBASE} || die |
| 79 |
-freetype -qvfb -plugin-imgfmt-{jpeg,mng,png} -system-lib{jpeg,mng,png} \ |
|
|
| 80 |
-prefix ${QTBASE} -platform ${PLATFORM} -xplatform ${XPLATFORM} \ |
| 81 |
-embedded -no-sql-odbc || die |
| 82 |
|
82 |
|
| 83 |
export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
83 |
export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
| 84 |
|
84 |
|
| 85 |
cd ${S} && emake symlinks src-qmake src-moc sub-src || die "make failed" |
85 |
cd ${S} && emake symlinks src-qmake src-moc sub-src || die "make failed" |
| 86 |
|
86 |
|
| 87 |
# the designer is not compiled when using -embedded, but we need the uic |
87 |
# tools needed for compiling things with Qt Embedded |
| 88 |
cd ${S}/tools/designer/uic && emake || die "making uic failed" |
88 |
cd ${S}/tools/designer/uic && emake || die "making uic failed" |
|
|
89 |
cd ${S}/tools/linguist/lrelease && emake || die "making lrelease failed" |
| 90 |
cd ${S}/tools/linguist/lupdate && emake || die "making lupdate failed" |
| 89 |
|
91 |
|
| 90 |
cd ${S} && emake sub-tools || die "making tools failed" |
92 |
cd ${S} && emake sub-tools || die "making tools failed" |
| 91 |
|
93 |
|
|
Lines 97-102
Link Here
|
| 97 |
src_install() { |
99 |
src_install() { |
| 98 |
INSTALL_ROOT=${D} emake install |
100 |
INSTALL_ROOT=${D} emake install |
| 99 |
|
101 |
|
|
|
102 |
# tools needed for compiling things with Qt Embedded |
| 103 |
cd ${S}/tools/designer/uic && INSTALL_ROOT=${D} emake install |
| 104 |
cd ${S}/tools/linguist/lrelease && INSTALL_ROOT=${D} emake install |
| 105 |
cd ${S}/tools/linguist/lupdate && INSTALL_ROOT=${D} emake install |
| 106 |
|
| 100 |
# fix .prl files |
107 |
# fix .prl files |
| 101 |
find ${D}/${QTBASE}/lib* -name "*.prl" -exec sed -i -e "s:${S}:${QTBASE}:g" {} \; |
108 |
find ${D}/${QTBASE}/lib* -name "*.prl" -exec sed -i -e "s:${S}:${QTBASE}:g" {} \; |
| 102 |
|
109 |
|