|
|
@ -24,21 +24,19 @@ |
|
|
|
# var_append makeopt " " "opt" |
|
|
|
# var_append makeinstopt " " "PREFIX=$root/$prefix" |
|
|
|
|
|
|
|
pwlib_preconf() { |
|
|
|
if pkginstalled openldap; then |
|
|
|
var_append configprefix ' ' \ |
|
|
|
'CPPFLAGS="-I${pkg_openldap_prefix}/include"' |
|
|
|
var_append configprefix ' ' \ |
|
|
|
'LDFLAGS="-L${pkg_openldap_prefix}/lib"' |
|
|
|
var_append confopt ' ' '--enable-openldap' |
|
|
|
fi |
|
|
|
# var_append confopt ' ' '--enable-plugins' |
|
|
|
} |
|
|
|
var_append extraconfopt ' ' '--enable-plugins --disable-oss --enable-v4l2' |
|
|
|
|
|
|
|
pwlib_premake() { |
|
|
|
pkginstalled openldap && var_append makeopt ' ' 'CFLAGS="-I${pkg_openldap_prefix}/include"' |
|
|
|
} |
|
|
|
if pkginstalled openldap; then |
|
|
|
var_append configprefix ' ' \ |
|
|
|
'CPPFLAGS="-I${pkg_openldap_prefix}/include"' |
|
|
|
var_append configprefix ' ' \ |
|
|
|
'LDFLAGS="-L${pkg_openldap_prefix}/lib"' |
|
|
|
var_append extraconfopt ' ' '--enable-openldap' |
|
|
|
fi |
|
|
|
|
|
|
|
pkginstalled openldap && var_append makeopt ' ' 'CFLAGS="-I${pkg_openldap_prefix}/include"' |
|
|
|
|
|
|
|
hook_add inmake 3 pwlib_inmake |
|
|
|
pwlib_inmake() { |
|
|
|
rm -rf $libdir/libpt.so $root/$prefix/include/pt{,c}lib |
|
|
|
|
|
|
@ -46,9 +44,5 @@ pwlib_inmake() { |
|
|
|
cp -a version.h $datadir/pwlib |
|
|
|
} |
|
|
|
|
|
|
|
hook_add preconf 3 pwlib_preconf |
|
|
|
hook_add premake 3 pwlib_premake |
|
|
|
hook_add inmake 3 pwlib_inmake |
|
|
|
|
|
|
|
var_remove GCC3_WRAPPER_INSERT " " "-fstack-protector" |
|
|
|
|