system/cndrvcups-common: Fix 15.0 build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-09 14:05:49 -05:00 committed by Willy Sudiarto Raharjo
parent d07d6631fc
commit b4d39049e4
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220209 bkw: Modified by SlackBuilds.org, fix build on 15.0.
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cndrvcups-common PRGNAM=cndrvcups-common
@ -79,6 +81,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
SLKCFLAGS+=" -fcommon"
( (
cd buftool cd buftool
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
@ -90,8 +94,10 @@ find -L . \
make install DESTDIR=$PKG make install DESTDIR=$PKG
) )
# 20220209 bkw: for some reason this wasn't picking up the libs it needs...
( (
cd cngplp cd cngplp
LIBS="$( pkg-config --libs glib-2.0 gmodule-2.0 gtk+-2.0 )" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./autogen.sh \ ./autogen.sh \