New upstream version 4.5
"Proper" fix for the linking problems when installing to DESTDIR Use pkgdef
This commit is contained in:
parent
1471142289
commit
337906edb7
@ -8,8 +8,8 @@
|
|||||||
#
|
#
|
||||||
# Check the following 4 variables before running the script
|
# Check the following 4 variables before running the script
|
||||||
topdir=pcre
|
topdir=pcre
|
||||||
version=4.4
|
version=4.5
|
||||||
pkgver=2
|
pkgver=1
|
||||||
source[0]=$topdir-$version.tar.bz2
|
source[0]=$topdir-$version.tar.bz2
|
||||||
# If there are no patches, simply comment this
|
# If there are no patches, simply comment this
|
||||||
#patch[0]=
|
#patch[0]=
|
||||||
@ -17,13 +17,6 @@ source[0]=$topdir-$version.tar.bz2
|
|||||||
# Source function library
|
# Source function library
|
||||||
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
||||||
|
|
||||||
# Fill in pkginfo values if necessary
|
|
||||||
# using pkgname,name,pkgcat,pkgvendor & pkgdesc
|
|
||||||
name="PCRE"
|
|
||||||
pkgcat="library"
|
|
||||||
pkgvendor="http://www.pcre.org"
|
|
||||||
pkgdesc="Perl Compatible Regular Expressions"
|
|
||||||
|
|
||||||
# Define script functions and register them
|
# Define script functions and register them
|
||||||
METHODS=""
|
METHODS=""
|
||||||
reg() {
|
reg() {
|
||||||
@ -39,15 +32,22 @@ prep()
|
|||||||
reg build
|
reg build
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
|
configure_args='--prefix=$prefix --enable-utf8'
|
||||||
|
generic_build
|
||||||
setdir source
|
setdir source
|
||||||
./configure --prefix=$prefix --disable-static --enable-utf8
|
$MAKE_PROG runtest
|
||||||
$MAKE_PROG
|
# Workaround libtool problems...
|
||||||
|
setdir source
|
||||||
|
${SED} -e "s# libpcre.la# -L$srcdir/$topsrcdir/.libs libpcre.la#g" libpcreposix.la > libpcreposix.la.new
|
||||||
|
${MV} libpcreposix.la.new libpcreposix.la
|
||||||
}
|
}
|
||||||
|
|
||||||
reg install
|
reg install
|
||||||
install()
|
install()
|
||||||
{
|
{
|
||||||
generic_install DESTDIR
|
generic_install DESTDIR
|
||||||
|
doc NEWS AUTHORS ChangeLog LICENCE
|
||||||
|
${RM} -f ${stagedir}${prefix}/${_libdir}/*.la
|
||||||
}
|
}
|
||||||
|
|
||||||
reg pack
|
reg pack
|
||||||
|
Loading…
x
Reference in New Issue
Block a user