use X11_BUILDLINK_MK as a test value. Generally just reordering the inclusions so that x11.buildlink.mk comes before the other buildlink.mk files will make everthing work.
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.24 2001/10/23 13:14:49 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= SDL-1.2.2
|
|
CATEGORIES= devel games
|
|
MASTER_SITES= http://www.libsdl.org/release/
|
|
|
|
MAINTAINER= wiz@netbsd.org
|
|
HOMEPAGE= http://www.libsdl.org/
|
|
COMMENT= Simple DirectMedia Layer, a cross-platform multimedia library
|
|
|
|
BUILD_DEPENDS+= autoconf>=2.13:../../devel/autoconf
|
|
BUILD_DEPENDS+= automake>=1.4:../../devel/automake
|
|
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
|
|
BUILDLINK_DEPENDS.pth= pth>=1.4.0
|
|
|
|
USE_BUILDLINK_ONLY= YES
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_GMAKE= YES
|
|
|
|
USE_LIBTOOL= YES
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OBJECT_FMT} == "ELF"
|
|
NASMFLAGS= -f elf
|
|
.else
|
|
NASMFLAGS= -f aoutb
|
|
.endif
|
|
|
|
.ifdef SDL_USE_NAS
|
|
.include "../../audio/nas/buildlink.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nas
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --disable-arts
|
|
CONFIGURE_ARGS+= --disable-pthread-sem
|
|
CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS}"
|
|
MAKE_ENV+= NASMFLAGS="${NASMFLAGS}"
|
|
|
|
pre-patch:
|
|
cd ${WRKSRC} && ${MKDIR} src/audio/netbsd
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf --force --foreign
|
|
|
|
post-configure:
|
|
cd ${WRKSRC}/src/audio && ${CP} *.[ch] netbsd/
|
|
|
|
.include "../../mk/x11.buildlink.mk"
|
|
.include "../../audio/esound/buildlink.mk"
|
|
.include "../../devel/pth/buildlink.mk"
|
|
.include "../../graphics/Mesa/buildlink.mk"
|
|
.include "../../mk/ossaudio.buildlink.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|