1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../nspr/nspr.conf
5 # Copyright (C) 2008 - 2019 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 includedir=$includedir/nspr
18 [ $arch_sizeof_char_p = 8 ] && var_append confopt ' ' '--enable-64bit'
20 hook_add preconf 3 'cd nspr/'
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
38 # create symlinks to shared nspr libs
42 mv ${file} ${file}.${ver}
43 ln -sf ${file}.${ver} ${file}
44 ln -sf nspr/${file}.${ver} ../${file}
48 hook_add postmake 5 nspr_libs