libmpeg2: fix compilation with gcc15
authorRosen Penev <[email protected]>
Fri, 17 Oct 2025 21:33:00 +0000 (14:33 -0700)
committerHannu Nyman <[email protected]>
Sat, 25 Oct 2025 05:26:37 +0000 (08:26 +0300)
Need a GNU_LIBRARY define for getopt.

Updated URL from a dead one.

Minor fixes.

Signed-off-by: Rosen Penev <[email protected]>
libs/libmpeg2/Makefile

index 678997d478190f8ee2e57e47b5e71295aececbf8..a51454e823c3d1892d404302290bde393f546310 100644 (file)
@@ -9,13 +9,15 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libmpeg2
 PKG_VERSION:=0.5.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=libmpeg2-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://libmpeg2.sourceforge.net/files/
+PKG_SOURCE_URL:=https://download.videolan.org/contrib/libmpeg2
 PKG_HASH:=dee22e893cb5fc2b2b6ebd60b88478ab8556cb3b93f9a0d7ce8f3b61851871d4
+PKG_MAINTAINER:=W. Michael Petullo <[email protected]>
 
 PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -24,7 +26,6 @@ define Package/libmpeg2
   CATEGORY:=Libraries
   TITLE:=MPEG-1 & -2 decoding library
   URL:=http://libmpeg2.sourceforge.net/
-  MAINTAINER:=W. Michael Petullo <[email protected]>
 endef
 
 define Package/libmpeg2/decription
@@ -35,6 +36,8 @@ CONFIGURE_ARGS += \
        --disable-sdl \
        --without-x \
 
+TARGET_CFLAGS += -D__GNU_LIBRARY__
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) \