blob: e38ac4267c1f04c5f37557011f4561b8b29aa061 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
NAME="openpgm"
DESC="An implementation of the PGM reliable multicast protocol"
MAKEDEPS="python perl"
PKG_VER=5.2.122
SOURCE="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openpgm/libpgm-$PKG_VER.tar.bz2"
ADDITIONAL="
libpgm-fix-pkgconfig.patch
openpgm-fix-includes.patch
python3.patch
"
prepare() {
cd openpgm/pgm
for p in $BUILD_ROOT/*.patch; do
patch -Np1 -i $p
done
}
build() {
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
./configure \
--prefix=/usr \
--enable-shared \
--disable-static \
PYTHON=python3
make
}
package() {
make install DESTDIR="$PKG_DEST"
}
|