Files
@ 39d1268394e4
Branch filter:
Location: ohnobinki_overlay/dev-db/qt-unixODBC/qt-unixODBC-3.3.8b.ebuild - annotation
39d1268394e4
2.3 KiB
application/vnd.gentoo.ebuild
media-sound/glame fixed problem with newer guile
Without this patch, and using guile-8.5* and compiling media-sounds/glame with USE=gnome, I and another person got the following compile error:
glame_console.o: In function `port_register':
/var/tmp/portage/media-sound/glame-2.0.1/work/glame-2.0.1/src/gui/glame_console.c:63: undefined reference to `GLAME_NEWCELL'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: link errors found, deleting executable `glame'
collect2: ld returned 1 exit status
Without this patch, and using guile-8.5* and compiling media-sounds/glame with USE=gnome, I and another person got the following compile error:
glame_console.o: In function `port_register':
/var/tmp/portage/media-sound/glame-2.0.1/work/glame-2.0.1/src/gui/glame_console.c:63: undefined reference to `GLAME_NEWCELL'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: link errors found, deleting executable `glame'
collect2: ld returned 1 exit status
7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 4828dc0cb3be 4828dc0cb3be 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee 7dc23fdd78ee | # Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/qt-unixODBC/qt-unixODBC-3.3.8b.ebuild,v 1.4 2009/01/09 17:27:05 gmsoft Exp $
inherit eutils
SRCTYPE="free"
DESCRIPTION="QT version ${PV}"
HOMEPAGE="http://www.trolltech.com/"
SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-x11-${SRCTYPE}-${PV}.tar.gz"
IUSE=""
LICENSE="|| ( QPL-1.0 GPL-2 GPL-3 )"
SLOT="3"
KEYWORDS="~alpha amd64 hppa ~ia64 ~mips ~ppc ppc64 ~sparc ~x86"
DEPEND="~x11-libs/qt-${PV}
dev-db/unixODBC"
S="${WORKDIR}/qt-x11-${SRCTYPE}-${PV}"
QTBASE="/usr/qt/3"
export QTDIR=${S}
export PLATFORM=linux-g++
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/qt-no-rpath.patch
cp configure configure.orig
sed -e 's:read acceptance:acceptance=yes:' configure.orig > configure
sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
-e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
-e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
-e "s:\<QMAKE_CC\>.*=.*:QMAKE_CC=$(tc-getCC):" \
-e "s:\<QMAKE_CXX\>.*=.*:QMAKE_CXX=$(tc-getCXX):" \
-e "s:\<QMAKE_LINK\>.*=.*:QMAKE_LINK=$(tc-getCXX):" \
-e "s:\<QMAKE_LINK_SHLIB\>.*=.*:QMAKE_LINK_SHLIB=$(tc-getCXX):" \
-e "s:^QMAKE_LIBDIR\>.*=.*:QMAKE_LIBDIR=/usr/$(get_libdir) /$(get_libdir):" \
-e "s:_LIBDIR\(.*\)=[^/]*\(.*/\)lib:_LIBDIR\1=\2$(get_libdir):" \
"${S}"/mkspecs/${PLATFORM}/qmake.conf || die "sed to fix CFLAGS failed"
}
src_compile() {
export QTDIR=${S}
export SYSCONF=${D}${QTBASE}/etc/settings
# Let's just allow writing to these directories during Qt emerge
# as it makes Qt much happier.
addwrite "${QTBASE}/etc/settings"
addwrite "${HOME}/.qt"
export YACC='byacc -d'
./configure -sm -thread -stl -system-libjpeg -verbose -largefile \
-qt-imgfmt-{jpeg,mng,png} -tablet -system-libmng \
-system-libpng -lpthread -xft -platform ${PLATFORM} -xplatform \
${PLATFORM} -xrender -prefix ${QTBASE} -fast ${myconf} \
-dlopen-opengl -plugin-sql-odbc -L${QTBASE}/lib || die "configure failed"
cd "${S}"/plugins/src/sqldrivers/odbc
emake || die "emake failed"
}
src_install() {
insinto ${QTBASE}/plugins/sqldrivers
doins "${S}"/plugins/sqldrivers/libqsqlodbc.so || die "doins failed"
}
|