2018-02-05 19:37:21 +01:00
|
|
|
# $NetBSD: Makefile,v 1.21 2018/02/05 18:37:21 jperkin Exp $
|
2007-02-09 20:57:48 +01:00
|
|
|
|
2007-11-14 19:44:45 +01:00
|
|
|
DISTNAME= mpeg4ip-1.6.1
|
|
|
|
PKGNAME= libmp4v2-1.6.1
|
2017-12-30 12:12:01 +01:00
|
|
|
PKGREVISION= 8
|
2007-02-09 20:57:48 +01:00
|
|
|
CATEGORIES= multimedia
|
2007-11-14 19:44:45 +01:00
|
|
|
# distfile at sf is corrupt
|
|
|
|
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mpeg4ip/}
|
|
|
|
MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL:=ahze/}
|
2007-02-09 20:57:48 +01:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://mpeg4ip.sourceforge.net/
|
2012-03-12 16:14:51 +01:00
|
|
|
COMMENT= Library for reading and modifying mp4 files
|
2007-02-09 20:57:48 +01:00
|
|
|
|
2018-02-05 19:37:21 +01:00
|
|
|
USE_LANGUAGES= c c++03
|
2007-02-09 20:57:48 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-12-04 16:07:03 +01:00
|
|
|
CONFIGURE_ARGS+= USENASM=no
|
2007-02-16 01:56:40 +01:00
|
|
|
# the "bootstrap" script checks too much, and isn't useful anyway
|
|
|
|
#CONFIGURE_SCRIPT= bootstrap
|
2007-02-09 20:57:48 +01:00
|
|
|
|
2007-11-27 22:24:32 +01:00
|
|
|
# libmp4v2 has config.{guess,sub} also in common/video/iso-mpeg4
|
|
|
|
# (unused by libmp4v2 build)
|
|
|
|
OVERRIDE_DIRDEPTH= 3
|
|
|
|
|
2017-04-17 10:40:56 +02:00
|
|
|
# to install mp4* tools
|
|
|
|
BUILD_DIRS= . lib/mp4v2/util
|
|
|
|
|
libmp4v2: fix build more properly.
if 0 likely out of bounds write, we only have one scratch channel,
don't write to a second if asked to do stereo (thanks, GCC 4.5.3!)
convert lowercase min, max to uppercase - libstdc++6 doesn't approve
of it. mostly using sed, because there's too many occurences.
if we're not returning anything, use a void return type.
fix likely issue with signed char - 0251 may be truncated, but the
equivalent \xa9 won't be.
don't store a return value if we're not going to check it.
correct misleading indentation.
Remove -fpermissive too, as it caused jperkin issues. I could build
without removing -Werror, but I'll keep it since it's full of warnings.
XXX do we want a security advisory for this, if it can be triggered?
2017-05-06 20:12:00 +02:00
|
|
|
# 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
|
2007-02-09 20:57:48 +01:00
|
|
|
|
2007-02-16 01:56:40 +01:00
|
|
|
pre-configure:
|
|
|
|
${TOUCH} ${WRKSRC}/bootstrapped
|
|
|
|
|
2017-04-17 10:40:56 +02:00
|
|
|
.include "../../devel/SDL/buildlink3.mk"
|
2007-02-09 20:57:48 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|