diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/netsurf/netsurf.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/network/netsurf/netsurf.SlackBuild b/network/netsurf/netsurf.SlackBuild index 738a5511bf02..ed5e52a26a56 100644 --- a/network/netsurf/netsurf.SlackBuild +++ b/network/netsurf/netsurf.SlackBuild @@ -54,14 +54,14 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-all-$VERSION.tar.gz -cd $PRGNAM-all-$VERSION +rm -rf netsurf-all-$VERSION +tar xvf $CWD/netsurf-all-$VERSION.tar.gz +cd netsurf-all-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -73,12 +73,17 @@ if [ "${NETSURF_USE_VIDEO:-NO}"=="YES" ]; then patch --verbose -p1 < $CWD/enable-deprecated.diff fi +sed \ + -e 's:_BSD_SOURCE:_DEFAULT_SOURCE:' \ + -e 's:(WARNFLAGS) -Werror:(WARNFLAGS):' \ + -i */Makefile */*/Makefile.target + make install DESTDIR=$PKG PREFIX=/usr \ NETSURF_USE_MOZJS=${NETSURF_USE_MOZJS:-YES} \ NETSURF_USE_WEBP=${NETSURF_USE_WEBP:-NO} \ NETSURF_USE_VIDEO=${NETSURF_USE_VIDEO:-NO} -mkdir $PKG/usr/share/pixmaps +mkdir -p $PKG/usr/share/pixmaps cp netsurf/gtk/res/netsurf.png $PKG/usr/share/pixmaps cp netsurf/gtk/res/netsurf.xpm $PKG/usr/share/pixmaps |