1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/nspr/nspr.conf
3 # Copyright (C) 2008 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
14 includedir=$includedir/nspr
17 [ $arch_sizeof_char_p = 8 ] && var_append confopt ' ' '--enable-64bit'
19 atstage cross && hook_add premake 5 "eval $MAKE -C config"
21 var_append makeopt ' ' 'AS=$CC'
24 cp $confdir/nspr.pc.in ${root}$(pkgprefix libdir pkgconfig)/pkgconfig/nspr.pc
25 chmod 644 ${root}$(pkgprefix libdir pkgconfig)/pkgconfig/nspr.pc
27 sed -e "s,@libdir@,$libdir,g" \
28 -e "s,@prefix@,/$prefix,g" \
29 -e "s,@exec_prefix@,\$\{prefix},g" \
30 -e "s,@includedir@,\$\{prefix}/include/nspr," \
31 -e "s,@NSPR_VER@,`nspr-config --version`,g" \
32 -i ${root}$(pkgprefix libdir pkgconfig)/pkgconfig/nspr.pc
34 hook_add postmake 1 nspr_setup
37 # create symlinks to shared nspr libs
41 mv ${file} ${file}.${ver}
42 ln -sf ${file}.${ver} ${file}
43 ln -sf nspr/${file}.${ver} ../${file}
47 hook_add postmake 5 nspr_libs