mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
json-c-32: new port at 0.17
This commit is contained in:
1
multilib/json-c-32/.checksums
Normal file
1
multilib/json-c-32/.checksums
Normal file
@@ -0,0 +1 @@
|
||||
bad8f5e91b7b2563ee2d507054c70eb2 json-c-0.17.tar.gz
|
||||
14
multilib/json-c-32/.pkgfiles
Normal file
14
multilib/json-c-32/.pkgfiles
Normal file
@@ -0,0 +1,14 @@
|
||||
json-c-32-0.17-1
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/lib32/
|
||||
drwxr-xr-x root/root usr/lib32/cmake/
|
||||
drwxr-xr-x root/root usr/lib32/cmake/json-c/
|
||||
-rw-r--r-- root/root usr/lib32/cmake/json-c/json-c-config.cmake
|
||||
-rw-r--r-- root/root usr/lib32/cmake/json-c/json-c-targets-release.cmake
|
||||
-rw-r--r-- root/root usr/lib32/cmake/json-c/json-c-targets.cmake
|
||||
-rw-r--r-- root/root usr/lib32/libjson-c.a
|
||||
lrwxrwxrwx root/root usr/lib32/libjson-c.so -> libjson-c.so.5
|
||||
lrwxrwxrwx root/root usr/lib32/libjson-c.so.5 -> libjson-c.so.5.3.0
|
||||
-rwxr-xr-x root/root usr/lib32/libjson-c.so.5.3.0
|
||||
drwxr-xr-x root/root usr/lib32/pkgconfig/
|
||||
-rw-r--r-- root/root usr/lib32/pkgconfig/json-c.pc
|
||||
29
multilib/json-c-32/spkgbuild
Normal file
29
multilib/json-c-32/spkgbuild
Normal file
@@ -0,0 +1,29 @@
|
||||
# description : JSON implementation in C
|
||||
# depends : cmake ninja json-c
|
||||
|
||||
name=json-c-32
|
||||
version=0.17
|
||||
release=1
|
||||
source="https://s3.amazonaws.com/json-c_releases/releases/${name%-*}-$version.tar.gz"
|
||||
|
||||
build() {
|
||||
export CC="gcc -m32"
|
||||
export CXX="g++ -m32"
|
||||
export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
|
||||
|
||||
cmake -S ${name%-*}-$version -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib32 \
|
||||
-DCMAKE_INSTALL_LIBEXECDIR=/usr/lib32 \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-Wno-dev
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
||||
rm -rf $PKG/usr/share $PKG/usr/include $PKG/usr/bin
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user