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

Diff of /eclass/vdr-plugin.eclass

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

Revision 1.28 Revision 1.29
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/Attic/vdr-plugin.eclass,v 1.28 2006/07/19 20:24:53 hd_brummy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.29 2006/08/29 10:33:19 zzam Exp $
4# 4#
5# Author: 5# Author:
6# Matthias Schwarzott <zzam@gentoo.org> 6# Matthias Schwarzott <zzam@gentoo.org>
7# Joerg Bornkessel <hd_brummy@gentoo.org> 7# Joerg Bornkessel <hd_brummy@gentoo.org>
8 8
111 111
112 # transition to /usr/share/... will need new vdr-scripts version stable 112 # transition to /usr/share/... will need new vdr-scripts version stable
113 VDR_RC_DIR="/usr/lib/vdr/rcscript" 113 VDR_RC_DIR="/usr/lib/vdr/rcscript"
114 114
115 # Pathes to includes 115 # Pathes to includes
116 VDR_INCLUDE_DIR="/usr/include" 116 VDR_INCLUDE_DIR="/usr/include/vdr"
117 DVB_INCLUDE_DIR="/usr/include" 117 DVB_INCLUDE_DIR="/usr/include"
118 118
119 119
120 VDRVERSION=$(awk -F'"' '/define VDRVERSION/ {print $2}' ${VDR_INCLUDE_DIR}/vdr/config.h) 120 VDRVERSION=$(awk -F'"' '/define VDRVERSION/ {print $2}' ${VDR_INCLUDE_DIR}/config.h)
121 APIVERSION=$(awk -F'"' '/define APIVERSION/ {print $2}' ${VDR_INCLUDE_DIR}/vdr/config.h) 121 APIVERSION=$(awk -F'"' '/define APIVERSION/ {print $2}' ${VDR_INCLUDE_DIR}/config.h)
122 [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}" 122 [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}"
123 123
124 einfo "Building ${PF} against vdr-${VDRVERSION}" 124 einfo "Building ${PF} against vdr-${VDRVERSION}"
125 einfo "APIVERSION: ${APIVERSION}" 125 einfo "APIVERSION: ${APIVERSION}"
126} 126}
154 sed -i Makefile \ 154 sed -i Makefile \
155 -e "s:^VDRDIR.*$:VDRDIR = ${VDR_INCLUDE_DIR}:" \ 155 -e "s:^VDRDIR.*$:VDRDIR = ${VDR_INCLUDE_DIR}:" \
156 -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \ 156 -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \
157 -e "s:^LIBDIR.*$:LIBDIR = ${S}:" \ 157 -e "s:^LIBDIR.*$:LIBDIR = ${S}:" \
158 -e "s:^TMPDIR.*$:TMPDIR = ${T}:" \ 158 -e "s:^TMPDIR.*$:TMPDIR = ${T}:" \
159 -e 's:-I$(VDRDIR)/include -I$(DVBDIR)/include:-I$(DVBDIR)/include -I$(VDRDIR)/include:' \
159 -e 's:-I$(VDRDIR)/include:-I$(VDRDIR):' \ 160 -e 's:-I$(VDRDIR)/include:-I'"${VDR_INCLUDE_DIR%vdr}"':' \
160 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \ 161 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):'
161 -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):' \
162 -e 's:$(VDRDIR)/\([a-z]*\.h\|Make.config\):$(VDRDIR)/vdr/\1:'
163 eend $? 162 eend $?
164 163
165 ebegin " Converting to APIVERSION" 164 ebegin " Converting to APIVERSION"
166 sed -i Makefile \ 165 sed -i Makefile \
167 -e 's:^APIVERSION = :APIVERSION ?= :' \ 166 -e 's:^APIVERSION = :APIVERSION ?= :' \
291 newins ${ROOT}${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN} 290 newins ${ROOT}${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN}
292 else 291 else
293 if which md5sum >/dev/null 2>&1; then 292 if which md5sum >/dev/null 2>&1; then
294 cd ${S} 293 cd ${S}
295 ( 294 (
296 cd ${ROOT}${VDR_INCLUDE_DIR}/vdr 295 cd ${ROOT}${VDR_INCLUDE_DIR}
297 md5sum *.h libsi/*.h|LC_ALL=C sort --key=2 296 md5sum *.h libsi/*.h|LC_ALL=C sort --key=2
298 ) > header-md5-${PN} 297 ) > header-md5-${PN}
299 doins header-md5-${PN} 298 doins header-md5-${PN}
300 fi 299 fi
301 fi 300 fi

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20