distribution/packages/compat/lutris-wine/package.mk

61 lines
1.6 KiB
Makefile
Raw Normal View History

2023-03-04 14:11:39 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present Fewtarius
# Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="lutris-wine"
PKG_VERSION="7.2-2"
2023-03-05 13:58:07 +00:00
PKG_ARCH="x86_64 i686"
2023-03-04 14:11:39 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/lutris/wine"
PKG_URL="${PKG_SITE}/archive/refs/tags/${PKG_NAME}-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain bison flex lutris-wine:host"
PKG_DEPENDS_HOST="toolchain bison:host flex:host"
PKG_TOOLCHAIN="configure"
pre_configure_host() {
PKG_CONFIGURE_OPTS_HOST+=" --enable-win64 --disable-tests"
2023-03-05 13:58:07 +00:00
case ${TARGET_ARCH} in
i686)
PKG_CONFIGURE_OPTS_HOST+=" --without-freetype"
;;
esac
2023-03-04 14:11:39 +00:00
}
pre_configure_target() {
2023-03-05 13:58:07 +00:00
PKG_CONFIGURE_OPTS_TARGET+=" --disable-tests --with-wine-tools=${TOOLCHAIN}/wine"
case ${TARGET_ARCH} in
x86_64)
PKG_CONFIGURE_OPTS_TARGET+=" --enable-win64"
;;
i686)
PKG_CONFIGURE_OPTS_TARGET+=" --without-freetype"
;;
esac
2023-03-04 14:11:39 +00:00
}
make_host() {
make -C ${PKG_BUILD}/.${HOST_NAME}
make -C ${PKG_BUILD}/.${HOST_NAME}/tools
make -C ${PKG_BUILD}/.${HOST_NAME}/tools/sfnt2fon
make -C ${PKG_BUILD}/.${HOST_NAME}/tools/widl
make -C ${PKG_BUILD}/.${HOST_NAME}/tools/winebuild
make -C ${PKG_BUILD}/.${HOST_NAME}/tools/winegcc
make -C ${PKG_BUILD}/.${HOST_NAME}/tools/wmc
make -C ${PKG_BUILD}/.${HOST_NAME}/tools/wrc
}
makeinstall_host() {
mkdir -p ${TOOLCHAIN}/wine/tools
cp -rf ${PKG_BUILD}/.${HOST_NAME}/tools/* ${TOOLCHAIN}/wine/tools
}
2023-03-05 13:58:07 +00:00
post_install() {
case ${TARGET_ARCH} in
x86_64)
cp -vPr ${ROOT}/build.${DISTRO}-${DEVICE}.i686/lutris-wine-*/.install_pkg/usr/ ${INSTALL}/
;;
esac
}