diff options
Diffstat (limited to 'multimedia/libmp4v2/Makefile')
-rw-r--r-- | multimedia/libmp4v2/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/multimedia/libmp4v2/Makefile b/multimedia/libmp4v2/Makefile index a179913c656..c0dc306b8d8 100644 --- a/multimedia/libmp4v2/Makefile +++ b/multimedia/libmp4v2/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.16 2017/04/26 14:38:30 maya Exp $ +# $NetBSD: Makefile,v 1.17 2017/05/06 18:12:00 maya Exp $ DISTNAME= mpeg4ip-1.6.1 PKGNAME= libmp4v2-1.6.1 -PKGREVISION= 4 +PKGREVISION= 5 CATEGORIES= multimedia # distfile at sf is corrupt #MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mpeg4ip/} @@ -27,9 +27,16 @@ OVERRIDE_DIRDEPTH= 3 # to install mp4* tools BUILD_DIRS= . lib/mp4v2/util -# It's an unmaintained old library +CFLAGS+= -std=gnu89 BUILDLINK_TRANSFORM+= rm:-Werror -CFLAGS+= -Wno-return-type +BUILDLINK_TRANSFORM+= rm:-fpermissive + +# lowercase min,max cannot be used as macros, conflicts with libstdc++6 +SUBST_CLASSES+= minmax +SUBST_STAGE.minmax= post-patch +SUBST_FILES.minmax= common/video/iso-mpeg4/src/* +SUBST_SED.minmax= -e 's,min *(,MIN(,g' -e 's,max *(,MAX(,g' +SUBST_MESSAGE.minmax= replace lowercase min,max with uppercase pre-configure: ${TOUCH} ${WRKSRC}/bootstrapped |