Add pre_make_target function to fix Makefile path issue in VLC package

This commit is contained in:
Douglas Teles
2026-03-25 18:46:13 -03:00
parent 3b53f8f74a
commit bb33293f38

View File

@@ -185,6 +185,12 @@ pre_configure_target() {
export LDFLAGS="${LDFLAGS} -lresolv -fopenmp -Wl,-rpath,../src/.libs"
}
pre_make_target() {
# Fix: po/Makefile references /config.status with wrong absolute path in cross-compile
# NLS is disabled anyway, so remove po from the build
sed -i 's/SUBDIRS = \(.*\) po\(.*\)/SUBDIRS = \1\2/' Makefile
}
post_makeinstall_target() {
rm -fr ${INSTALL}/usr/share/applications
rm -fr ${INSTALL}/usr/share/icons