/[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.30 Revision 1.32
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.30 2006/09/07 18:34:00 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.32 2006/09/10 10:29:21 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
185 -e '/@.*strip/d' \ 185 -e '/@.*strip/d' \
186 -e '/strip \$(LIBDIR)\/\$@/d' \ 186 -e '/strip \$(LIBDIR)\/\$@/d' \
187 -e '/^STRIP =/d' \ 187 -e '/^STRIP =/d' \
188 -e '/@.*\$(STRIP)/d' 188 -e '/@.*\$(STRIP)/d'
189 eend $? 189 eend $?
190 PLUGIN_MAKEFILE_PATCHED=1
190 ;; 191 ;;
191 add_local_patch) 192 add_local_patch)
192 cd ${S} 193 cd ${S}
193 if test -d "${VDR_LOCAL_PATCHES_DIR}/${PN}"; then 194 if test -d "${VDR_LOCAL_PATCHES_DIR}/${PN}"; then
194 echo 195 echo
203 shift 204 shift
204 done 205 done
205} 206}
206 207
207vdr-plugin_copy_source_tree() { 208vdr-plugin_copy_source_tree() {
209 pushd . >/dev/null
208 cp -r ${S} ${T}/source-tree 210 cp -r ${S} ${T}/source-tree
209 cd ${T}/source-tree 211 cd ${T}/source-tree
210 mv Makefile.orig Makefile 212 mv Makefile.orig Makefile
211 sed -i Makefile \ 213 sed -i Makefile \
212 -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \ 214 -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \
213 -e 's:^CXXFLAGS:#CXXFLAGS:' \ 215 -e 's:^CXXFLAGS:#CXXFLAGS:' \
214 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \ 216 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \
215 -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):' 217 -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):'
218 popd >/dev/null
216} 219}
217 220
218vdr-plugin_install_source_tree() { 221vdr-plugin_install_source_tree() {
219 einfo "Installing sources" 222 einfo "Installing sources"
220 destdir=${VDRSOURCE_DIR}/vdr-${VDRVERSION}/PLUGINS/src/${VDRPLUGIN} 223 destdir=${VDRSOURCE_DIR}/vdr-${VDRVERSION}/PLUGINS/src/${VDRPLUGIN}
232 case "$1" in 235 case "$1" in
233 prepare) 236 prepare)
234 [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_copy_source_tree 237 [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_copy_source_tree
235 ;; 238 ;;
236 compile) 239 compile)
240 if [[ -z ${PLUGIN_MAKEFILE_PATCHED} ]]; then
241 eerror "Wrong use of vdr-plugin.eclass."
242 eerror "An ebuild for a vdr-plugin will not work without"
243 eerror "calling vdr-plugin_src_unpack to patch the Makefile."
244 echo
245 eerror "Please report this at bugs.gentoo.org."
246 die "vdr-plugin_src_unpack not called!"
247 fi
237 cd ${S} 248 cd ${S}
238 249
239 emake ${VDRPLUGIN_MAKE_TARGET:-all} || die "emake failed" 250 emake ${BUILD_PARAMS} ${VDRPLUGIN_MAKE_TARGET:-all} || die "emake failed"
240 ;; 251 ;;
241 esac 252 esac
242 253
243 shift 254 shift
244 done 255 done

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20