pkgsrc/multimedia/smpeg/Makefile
2016-02-25 15:49:43 +00:00

40 lines
945 B
Makefile

# $NetBSD: Makefile,v 1.31 2016/02/25 15:49:44 jperkin Exp $
#
DISTNAME= smpeg-0.4.4
PKGREVISION= 16
CATEGORIES= devel multimedia
MASTER_SITES= #
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.lokigames.com/development/smpeg.php3
COMMENT= SDL MPEG Player Library
LICENSE= gnu-lgpl-v2
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
CPPFLAGS+= -Dunix=1
# smpeg sources (glmovie.c & glmovie-tile.c) assume <malloc.h> exists.
# Create a fake one for platforms that don't have it.
#
post-wrapper:
if ${TEST} ! -f /usr/include/malloc.h; then \
${ECHO} "#include <stdlib.h>" \
> ${BUILDLINK_DIR}/include/malloc.h; \
fi
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin"
CONFIGURE_ARGS+= --enable-mmx
.endif
MAKE_ENV.SunOS+= SunOS_LDFLAGS="-shared -mimpure-text"
.include "options.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"