* manually add pygments hatchling DEP and update .cache
[t2sde.git] / package / develop / nspr / nspr.conf
blob528f1f2f533abe35f3a75c0221de1cac8651517a
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/nspr/nspr.conf
3 # Copyright (C) 2008 - 2024 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
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 ---
12 srcdir="nspr*/nspr"
14 includedir=$includedir/nspr
15 libdir=$libdir/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'
23 nspr_setup() {
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
36 nspr_libs() {
37         # create symlinks to shared nspr libs
38         (
39         cd $root$libdir
40         for file in *.so; do
41                 mv ${file} ${file}.${ver}
42                 ln -sf ${file}.${ver} ${file}
43                 ln -sf nspr/${file}.${ver} ../${file}
44         done
45         )
47 hook_add postmake 5 nspr_libs