diff options
Diffstat (limited to 'libraries/librhtv/librhtv.SlackBuild')
-rw-r--r-- | libraries/librhtv/librhtv.SlackBuild | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libraries/librhtv/librhtv.SlackBuild b/libraries/librhtv/librhtv.SlackBuild index af7a046305e0f..1dfdbc3b9d270 100644 --- a/libraries/librhtv/librhtv.SlackBuild +++ b/libraries/librhtv/librhtv.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=librhtv VERSION=${VERSION:-2.2.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -75,19 +75,22 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ + +# remove mentioning of local building directory information in +# include/tv/configtv.h +sed -i -e "s/\/tmp\/SBo\/librhtv-$VERSION\/tvision\/include//g" \ + -e "s/\/tmp\/SBo\/librhtv-$VERSION\/tvision\/makes//g" \ + -e "s/\/tmp\/SBo\/librhtv-$VERSION\/tvision//g" include/tv/configtv.h # need to modified the libdir in the Makefile if [ "$ARCH" = "x86_64" ]; then sed -i -s 's/prefix)\/lib/prefix)\/lib64/g' Makefile fi - make make install prefix=$PKG/usr -rm -rf $PKG/usr/bin -strip --strip-unneeded $PKG/usr/lib$LIBDIRSUFFIX/librhtv.so.$VERSION +strip --strip-unneeded $PKG/usr/lib$LIBDIRSUFFIX/librhtv.so.$VERSION \ +$PKG/usr/bin/* mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig if [ "$ARCH" != "x86_64" ]; then |