/[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.17 Revision 1.19
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.17 2006/03/17 15:13:24 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.19 2006/04/26 13:36:10 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
99vdr-plugin_pkg_setup() { 99vdr-plugin_pkg_setup() {
100 # -fPIC is needed for shared objects on some platforms (amd64 and others) 100 # -fPIC is needed for shared objects on some platforms (amd64 and others)
101 append-flags -fPIC 101 append-flags -fPIC
102 use debug && append-flags -g 102 use debug && append-flags -g
103 103
104 VDRVERSION=$(awk -F'"' '/VDRVERSION/ {print $2}' /usr/include/vdr/config.h) 104 VDRVERSION=$(awk -F'"' '/define VDRVERSION/ {print $2}' /usr/include/vdr/config.h)
105 APIVERSION=$(awk -F'"' '/define APIVERSION/ {print $2}' /usr/include/vdr/config.h)
106 [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}"
107
105 einfo "Building ${PF} against vdr-${VDRVERSION}" 108 einfo "Building ${PF} against vdr-${VDRVERSION}"
109 einfo "APIVERSION: ${APIVERSION}"
106} 110}
107 111
108vdr-plugin_src_unpack() { 112vdr-plugin_src_unpack() {
109 [ -z "$1" ] && vdr-plugin_src_unpack unpack patchmakefile 113 [ -z "$1" ] && vdr-plugin_src_unpack unpack patchmakefile
110 114
125 -e "s:^TMPDIR.*$:TMPDIR = ${T}:" \ 129 -e "s:^TMPDIR.*$:TMPDIR = ${T}:" \
126 -e 's:^CXXFLAGS:#CXXFLAGS:' \ 130 -e 's:^CXXFLAGS:#CXXFLAGS:' \
127 -e 's:-I$(VDRDIR)/include:-I$(VDRDIR):' \ 131 -e 's:-I$(VDRDIR)/include:-I$(VDRDIR):' \
128 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \ 132 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \
129 -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):' \ 133 -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):' \
130 -e 's:$(VDRDIR)/\([a-z]*\.h\|Make.config\):$(VDRDIR)/vdr/\1:' 134 -e 's:$(VDRDIR)/\([a-z]*\.h\|Make.config\):$(VDRDIR)/vdr/\1:' \
135 -e 's:^APIVERSION = :APIVERSION ?= :' \
136 -e 's:$(LIBDIR)/$@.$(VDRVERSION):$(LIBDIR)/$@.$(APIVERSION):' \
137 -e '1i\APIVERSION = '"${APIVERSION}"
131 eend $? 138 eend $?
132 ;; 139 ;;
133 esac 140 esac
134 141
135 shift 142 shift

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

  ViewVC Help
Powered by ViewVC 1.1.20