blob: 0268bb9eb7f6f789749e05e0f78baab70fd2e665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $NetBSD: Makefile,v 1.26 2012/10/08 09:21:12 asau Exp $
#
DISTNAME= smpeg-0.4.4
PKGREVISION= 15
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
PKG_INSTALLATION_TYPES= overwrite pkgviews
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
.if ${OPSYS} == "SunOS"
MAKE_ENV+= SunOS_LDFLAGS="-shared -mimpure-text"
.endif
.include "options.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|