Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 466312 | Differences between
and this patch

Collapse All | Expand All

(-)wxGTK-2.8.12.1.ebuild.orig (-1 / +21 lines)
Lines 72-80 Link Here
72
	epatch "${FILESDIR}"/${PN}-2.8.7-mmedia.patch              # Bug #174874
72
	epatch "${FILESDIR}"/${PN}-2.8.7-mmedia.patch              # Bug #174874
73
	epatch "${FILESDIR}"/${PN}-2.8.10.1-odbc-defines.patch     # Bug #310923
73
	epatch "${FILESDIR}"/${PN}-2.8.10.1-odbc-defines.patch     # Bug #310923
74
	sed \
74
	sed \
75
		-e '/^SEARCH_INCLUDE="/,/"/cSEARCH_INCLUDE="/usr/include"' \
75
		-e "s:/usr:${EPREFIX}/usr:g" \
76
		-e "s:/usr:${EPREFIX}/usr:g" \
76
		-e '/SEARCH_INCLUDE="\\/,/"/cSEARCH_INCLUDE="'${EPREFIX}'/usr/include"' \
77
		-i configure || die "sed on configure failed"
77
		-i configure || die "sed on configure failed"
78
79
	if [[ "$CFLAGS $CXXFLAGS $LDFLAGS" =~ (-flto|-O4) ]]; then
80
		epatch "${FILESDIR}"/${PN}-2.8.12.1-setconcurrency-backport.patch
81
82
		# wxGTK:2.8 does not like eauto{,re}conf, bakefile/m4 version mismatch
83
		# so we do not patch *.in / *.ac for this build
84
		ebegin "LTO enabled compiler flags detected, patching configure"
85
		cp configure{,.before.sed}
86
		sed	-e '/^for ac_func in thr_/ s:thr:pthread:' \
87
			-e '/^char *(.f) *() *=/ s:():() __attribute__((used)):' \
88
			-i configure &>/dev/null
89
		eend $? || die "sed on configure failed"
90
91
		# decomment to see changes to configure
92
		#diff -ur configure{.before.sed,}
93
		rm -f configure.before.sed
94
	fi
95
96
	# epatch_user source with portage patches applied
97
	epatch_user
78
}
98
}
79
99
80
src_configure() {
100
src_configure() {

Return to bug 466312