nss: pkg-config tweaks.
This commit is contained in:
parent
ff97e3dbfe
commit
7c9b3462ae
@ -115,3 +115,5 @@ drwxr-xr-x root/root usr/lib/
|
|||||||
-rw-r--r-- root/root usr/lib/libsoftokn3.chk
|
-rw-r--r-- root/root usr/lib/libsoftokn3.chk
|
||||||
-rwxr-xr-x root/root usr/lib/libsoftokn3.so
|
-rwxr-xr-x root/root usr/lib/libsoftokn3.so
|
||||||
-rwxr-xr-x root/root usr/lib/libssl3.so
|
-rwxr-xr-x root/root usr/lib/libssl3.so
|
||||||
|
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||||
|
-rw-r--r-- root/root usr/lib/pkgconfig/nss.pc
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
da42596665f226de5eb3ecfc1ec57cd1 nss-3.12.6.tar.gz
|
da42596665f226de5eb3ecfc1ec57cd1 nss-3.12.6.tar.gz
|
||||||
17226659298a9d9bb3f323186d220f6f nss-config.in
|
17226659298a9d9bb3f323186d220f6f nss-config.in
|
||||||
|
4bb2893f773bb168271521e654861e29 nss.pc.in
|
||||||
|
20
nss/Pkgfile
20
nss/Pkgfile
@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
name=nss
|
name=nss
|
||||||
version=3.12.6
|
version=3.12.6
|
||||||
release=1
|
release=2
|
||||||
source=(ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_6_RTM/src/$name-$version.tar.gz \
|
source=(ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_6_RTM/src/$name-$version.tar.gz \
|
||||||
nss-config.in)
|
nss-config.in nss.pc.in)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
@ -21,7 +21,7 @@ build() {
|
|||||||
|
|
||||||
make -j1 -C mozilla/security/nss build_coreconf build_dbm all
|
make -j1 -C mozilla/security/nss build_coreconf build_dbm all
|
||||||
|
|
||||||
install -d $PKG/usr/{bin,lib,include/nss}
|
install -d $PKG/usr/{bin,lib/pkgconfig,include/nss}
|
||||||
|
|
||||||
for file in \
|
for file in \
|
||||||
libnss3.so libssl3.so libsmime3.so libsoftokn3.so \
|
libnss3.so libssl3.so libsmime3.so libsoftokn3.so \
|
||||||
@ -43,5 +43,19 @@ build() {
|
|||||||
|
|
||||||
# we have to provide our own nss-config, because xulrunner needs it
|
# we have to provide our own nss-config, because xulrunner needs it
|
||||||
install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
|
install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
|
||||||
|
|
||||||
sed -i "s/@VERSION@/$version/" $PKG/usr/bin/nss-config
|
sed -i "s/@VERSION@/$version/" $PKG/usr/bin/nss-config
|
||||||
|
|
||||||
|
NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
|
||||||
|
NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
|
||||||
|
sed $SRC/nss.pc.in \
|
||||||
|
-e "s,%libdir%,/usr/lib," \
|
||||||
|
-e "s,%prefix%,/usr," \
|
||||||
|
-e "s,%exec_prefix%,/usr/bin," \
|
||||||
|
-e "s,%includedir%,/usr/include/nss," \
|
||||||
|
-e "s,%NSS_VERSION%,$version," \
|
||||||
|
-e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
|
||||||
|
-e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
|
||||||
|
$PKG/usr/lib/pkgconfig/nss.pc
|
||||||
|
|
||||||
}
|
}
|
||||||
|
10
nss/nss.pc.in
Normal file
10
nss/nss.pc.in
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
prefix=%prefix%
|
||||||
|
exec_prefix=%exec_prefix%
|
||||||
|
libdir=%libdir%
|
||||||
|
includedir=%includedir%
|
||||||
|
|
||||||
|
Name: NSS
|
||||||
|
Description: Network Security Services
|
||||||
|
Version: %NSS_VERSION%
|
||||||
|
Libs: %FULL_NSS_LIBS%
|
||||||
|
Cflags: %FULL_NSS_CFLAGS%
|
Loading…
x
Reference in New Issue
Block a user