e32afb6fea
first component is now a package name+version/pattern, no more executable/patchname/whatnot. While there, introduce BUILD_USES_MSGFMT as shorthand to pull in devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current). Patch by Alistair Crooks <agc@netbsd.org>
38 lines
1 KiB
Makefile
38 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.10 2001/03/27 03:19:50 hubertf Exp $
|
|
#
|
|
|
|
DISTNAME= SDL-1.1.6
|
|
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
|
|
DEPENDS+= pth>=1.3.5:../../devel/pth
|
|
#DEPENDS+= unproven-pthreads>=0.16
|
|
DEPENDS+= esound>=0.2.18:../../audio/esound
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_GMAKE= YES
|
|
USE_MESA= YES
|
|
USE_X11= YES
|
|
USE_LIBTOOL= YES
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
CONFIGURE_ARGS+= --disable-pthread-sem
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -D_POSIX_THREAD_SYSCALL_SOFT=1"
|
|
LDFLAGS+= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib
|
|
#CC= ${LOCALBASE}/pthreads/bin/pgcc
|
|
|
|
pre-patch:
|
|
cd ${WRKSRC} && ${MKDIR} src/audio/netbsd
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf
|
|
|
|
post-configure:
|
|
cd ${WRKSRC}/src/audio && ${CP} *.[ch] netbsd/
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|