#!/bin/sh

. config/options $1

cd $PKG_BUILD/librtmp

make prefix=/usr \
     incdir=/usr/include/librtmp \
     libdir=/usr/lib \
     mandir=/usr/share/man \
     CC="$CC" \
     LD="$LD" \
     AR="$AR" \
     CRYPTO="OPENSSL" \
     XCFLAGS="$CFLAGS $LDFLAGS"

$MAKEINSTALL prefix=/usr \
             incdir=/usr/include/librtmp \
             libdir=/usr/lib \
             mandir=/usr/share/man \
             CC="$CC" \
             LD="$LD" \
             AR="$AR" \
             CRYPTO="OPENSSL" \
             XCFLAGS="$CFLAGS $LDFLAGS"
