diff options
author | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
commit | d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch) | |
tree | ce5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /base/libnspr | |
parent | f29d3519ce073ec30f99754d93304324f7f26d65 (diff) |
Add ports.
Diffstat (limited to 'base/libnspr')
-rwxr-xr-x | base/libnspr/libnspr.build | 77 | ||||
-rw-r--r-- | base/libnspr/nspr-4.9.6-pkgconfig.patch.xz | bin | 0 -> 372 bytes |
2 files changed, 77 insertions, 0 deletions
diff --git a/base/libnspr/libnspr.build b/base/libnspr/libnspr.build new file mode 100755 index 0000000..63d7050 --- /dev/null +++ b/base/libnspr/libnspr.build @@ -0,0 +1,77 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=libnspr +VERSION=4.9.6 +BUILD=1 + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: libnspr (Netscape portable runtime) +${NAME}: +${NAME}: A library that provides platform independence for non-GUI operating +${NAME}: system facilities. These facilities include threads, thread +${NAME}: synchronization, normal file and network I/O, interval timing and +${NAME}: calendar time, basic memory management (malloc and free) and shared +${NAME}: library linking. +${NAME}: +${NAME}: Homepage: http://www.mozilla.org/projects/nspr +${NAME}: +${NAME}: +EOF + +# Sources + +SRCNAME[0]=nspr +SRCVERS[0]=${VERSION} +SRCPACK[0]=ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${SRCVERS[0]}/src/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz +SRCCOPY[0]="MPL2" + +build0() +{ +case "$(uname -m)" in + x86_64) + ARCH_FLAGS="--enable-64bit" + ;; +esac +cd mozilla/nsprpub +sed -i 's|$(libdir)/pkgconfig|$(datadir)/pkgconfig|g' config/Makefile.in +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --disable-debug \ + --enable-static=no \ + --enable-shared=yes \ + --enable-optimize \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --libdir="${SYS_DIR[lib]}" \ + --includedir="${SYS_DIR[include]}/nspr" \ + --localstatedir="${SYS_DIR[var]}" \ + ${ARCH_FLAGS} +make ${JOBS} +make install DESTDIR="${PKG}" +( + cd ${PKG}${SYS_DIR[share]}/pkgconfig + ln -sf nspr.pc mozilla-nspr.pc +) +chmod 0644 ${PKG}${SYS_DIR[lib]}/*.a +rm -rf \ + ${PKG}${SYS_DIR[bin]}/{compile-et.pl,prerr.properties} \ + ${PKG}${SYS_DIR[share]}/aclocal \ + ${PKG}${SYS_DIR[include]}/nspr/md +} diff --git a/base/libnspr/nspr-4.9.6-pkgconfig.patch.xz b/base/libnspr/nspr-4.9.6-pkgconfig.patch.xz Binary files differnew file mode 100644 index 0000000..5830ca4 --- /dev/null +++ b/base/libnspr/nspr-4.9.6-pkgconfig.patch.xz |