pkgsrc/devel/SDL/Makefile

73 lines
1.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.66 2006/07/01 18:18:17 jmmv Exp $
2006-06-12 18:20:44 +02:00
DISTNAME= SDL-1.2.10
PKGREVISION= 1
2006-06-12 18:20:44 +02:00
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
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
PTHREAD_OPTS+= require
2004-01-05 23:44:04 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
CONFIGURE_ARGS+= --disable-sdl-dlopen
2006-06-12 18:20:44 +02:00
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386"
. include "../../devel/binutils/buildlink3.mk"
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
NASMFLAGS_ELF= -f elf
NASMFLAGS_a.out= -f aoutb
.endif
CONFIGURE_ARGS+= --enable-dlopen
CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
MAKE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
# Pass in LDFLAGS via SYSTEM_LIBS as it's used as the linker options for
# finding various libraries. This ensure that any unusual -Wl,-R options
# are noted correctly in the generated sdl-config.
#
CONFIGURE_ENV+= SYSTEM_LIBS=${LDFLAGS:M*:Q}
# buildlink passthru the directories required for the Cocoa framework
# on Darwin if they exist.
.if ${OPSYS} == "Darwin"
COCOA_DIRS+= /System /Library /Developer
. for dir in ${COCOA_DIRS}
. if exists(${dir})
BUILDLINK_PASSTHRU_DIRS+= ${dir}
. endif
. endfor
.endif
.include "../../mk/oss.buildlink3.mk"
AM_CFLAGS= -D_PATH_DEV_DSP="\"${DEVOSSAUDIO}\""
MAKE_ENV+= AM_CFLAGS=${AM_CFLAGS:Q}
# Irix comes with GL, which works fine for SDL
.if ${OPSYS} != "IRIX"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.endif
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "pth"
# Let SDL know that we do not have native pthreads and are using GNU pth.
CONFIGURE_ARGS+= --disable-pthreads
CONFIGURE_ARGS+= --enable-pth
2006-06-12 18:20:44 +02:00
.endif
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"