/[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.19 Revision 1.20
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.19 2006/04/26 13:36:10 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.20 2006/05/02 15:00:15 zzam Exp $
4# 4#
5# Author: 5# Author:
6# Matthias Schwarzott <zzam@gentoo.org> 6# Matthias Schwarzott <zzam@gentoo.org>
7 7
8# vdr-plugin.eclass 8# vdr-plugin.eclass
117 case "$1" in 117 case "$1" in
118 unpack) 118 unpack)
119 base_src_unpack 119 base_src_unpack
120 ;; 120 ;;
121 patchmakefile) 121 patchmakefile)
122 cd ${S} 122 if ! cd ${S}; then
123 ewarn "There seems to be no plugin-directory with the name ${S##*/}"
124 ewarn "Perhaps you find one among these:"
125 cd "${WORKDIR}"
126 einfo "$(/bin/ls -1 ${WORKDIR})"
127 die "Could not change to plugin-source-directory!"
128 fi
123 129
124 ebegin "Patching Makefile" 130 ebegin "Patching Makefile"
131 [[ -e Makefile ]] || die "Makefile of plugin can not be found!"
125 sed -i.orig Makefile \ 132 sed -i.orig Makefile \
126 -e "s:^VDRDIR.*$:VDRDIR = ${VDR_INCLUDE_DIR}:" \ 133 -e "s:^VDRDIR.*$:VDRDIR = ${VDR_INCLUDE_DIR}:" \
127 -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \ 134 -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \
128 -e "s:^LIBDIR.*$:LIBDIR = ${S}:" \ 135 -e "s:^LIBDIR.*$:LIBDIR = ${S}:" \
129 -e "s:^TMPDIR.*$:TMPDIR = ${T}:" \ 136 -e "s:^TMPDIR.*$:TMPDIR = ${T}:" \

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20