/[gentoo-x86]/eclass/vdr-plugin-2.eclass
Gentoo

Diff of /eclass/vdr-plugin-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.16 2012/12/31 18:53:47 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.17 2012/12/31 19:49:41 hd_brummy Exp $
4 4
5# @ECLASS: vdr-plugin-2.eclass 5# @ECLASS: vdr-plugin-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# vdr@gentoo.org 7# vdr@gentoo.org
8# @BLURB: common vdr plugin ebuild functions 8# @BLURB: common vdr plugin ebuild functions
210 # Do not overwrite CXXFLAGS, add LDFLAGS if missing 210 # Do not overwrite CXXFLAGS, add LDFLAGS if missing
211 sed -i Makefile \ 211 sed -i Makefile \
212 -e '/^CXXFLAGS[[:space:]]*=/s/=/?=/' \ 212 -e '/^CXXFLAGS[[:space:]]*=/s/=/?=/' \
213 -e '/LDFLAGS/!s:-shared:$(LDFLAGS) -shared:' 213 -e '/LDFLAGS/!s:-shared:$(LDFLAGS) -shared:'
214 214
215 # Do not use {C,CXX}FLAGS from pkg-config vdr.pc, >=media-video/vdr-1.7.34
216 # we do not have the chance to overwrite it with *.eclass
217 sed -e "/^export[[:space:]]*CFLAGS[[:space:]]*=/s/=/?=/" \
218 -e "/^export[[:space:]]*CXXFLAGS[[:space:]]*=/s/=/?=/" \
219 -i Makefile
220
215 # Disabling file stripping, the package manager takes care of it 221 # Disabling file stripping, the package manager takes care of it
216 sed -i Makefile \ 222 sed -i Makefile \
217 -e '/@.*strip/d' \ 223 -e '/@.*strip/d' \
218 -e '/strip \$(LIBDIR)\/\$@/d' \ 224 -e '/strip \$(LIBDIR)\/\$@/d' \
219 -e 's/STRIP.*=.*$/STRIP = true/' 225 -e 's/STRIP.*=.*$/STRIP = true/'
443 APIVERSION=$(awk -F'"' '/define APIVERSION/ {print $2}' "${VDR_INCLUDE_DIR}"/config.h) 449 APIVERSION=$(awk -F'"' '/define APIVERSION/ {print $2}' "${VDR_INCLUDE_DIR}"/config.h)
444 [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}" 450 [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}"
445 fi 451 fi
446 452
447 einfo "Compiling against" 453 einfo "Compiling against"
448 einfo "\tvdr-${VDRVERSION}} [API version ${APIVERSION}]" 454 einfo "\tvdr-${VDRVERSION} [API version ${APIVERSION}]"
449 455
450 if [[ -n "${VDR_LOCAL_PATCHES_DIR}" ]]; then 456 if [[ -n "${VDR_LOCAL_PATCHES_DIR}" ]]; then
451 eerror "Using VDR_LOCAL_PATCHES_DIR is deprecated!" 457 eerror "Using VDR_LOCAL_PATCHES_DIR is deprecated!"
452 eerror "Please move all your patches into" 458 eerror "Please move all your patches into"
453 eerror "${EROOT}/etc/portage/patches/${CATEGORY}/${P}" 459 eerror "${EROOT}/etc/portage/patches/${CATEGORY}/${P}"

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20