All pastes #368351 Raw Edit

hillct

public text v1 · immutable
#368351 ·published 2007-02-23 00:35 UTC
rendered paste body
SECTION = "libs"
DEPENDS += "perl"
RDEPENDS += "libpam perl-module-posix"
SRC_URI = "http://www.cpan.org/modules/by-module/Authen/Authen-PAM-${PV}.tar.gz \
           file://perl-module-authen-pam-${PV}.patch;patch=1"
LICENSE = "Artistic"
S = "${WORKDIR}/Authen-PAM-${PV}"
FILES_${PN} += "${libdir}/perl5"
INCLUDEPATH = " ${STAGING_DIR}/${TARGET_SYS}/usr/include ${STAGING_DIR}/${TARGET_SYS}/usr/include/gdbm "

inherit autotools

do_configure () {
  oe_runconf
  perl Makefile.PL
  if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
    . ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh
    sed -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:; s:\(SITEARCHEXP = \).*:\1${sitearchexp}:; s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5:; s: \(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5:" < Makefile > Makefile.new
    mv Makefile.new Makefile
  fi
}

#do_compile () {
#        oe_runmake PASTHRU_INC="${CFLAGS}"
#}

do_install () {
        oe_runmake install_vendor
}


#######################   Sepate Patch File Below   #######################

*** Authen-PAM-0.16.old/Makefile.PL     2007-02-22 16:40:31.470293391 -0500
--- Authen-PAM-0.16/Makefile.PL 2007-02-22 16:41:38.908480570 -0500
***************
*** 5,12 ****
      $ENV{'CC'} # If a compiler is not specified on the command line then
        or $ENV{'CC'} = $Config{'cc'}; # use the one with which perl was built

!     system("./configure") == 0 or
!       die "Error in configuring the Authen::PAM module.\n";

      # returns a reference to anonymous hash which is then interpreted as
      # additional options to the WriteMakeFile
--- 5,12 ----
      $ENV{'CC'} # If a compiler is not specified on the command line then
        or $ENV{'CC'} = $Config{'cc'}; # use the one with which perl was built

! #    system("./configure") == 0 or
! #      die "Error in configuring the Authen::PAM module.\n";

      # returns a reference to anonymous hash which is then interpreted as
      # additional options to the WriteMakeFile