/[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.18 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.18 2006/04/26 12:57:05 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'"' '/APIVERSION/ {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}" 106 [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}"
107 107
108 einfo "Building ${PF} against vdr-${VDRVERSION}" 108 einfo "Building ${PF} against vdr-${VDRVERSION}"
109 einfo "APIVERSION: ${APIVERSION}" 109 einfo "APIVERSION: ${APIVERSION}"
110} 110}

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

  ViewVC Help
Powered by ViewVC 1.1.20