37 lines
930 B
Makefile
37 lines
930 B
Makefile
# $NetBSD: Makefile,v 1.8 2014/06/09 14:18:06 ryoon Exp $
|
|
|
|
DISTNAME= SDL2-2.0.3
|
|
PKGREVISION= 3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.libsdl.org/release/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.libsdl.org/
|
|
COMMENT= Simple DirectMedia Layer is a cross-platform multimedia library
|
|
LICENSE= zlib
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_CMAKE= yes
|
|
USE_TOOLS+= pkg-config
|
|
|
|
PKGCONFIG_OVERRIDE+= sdl2.pc.in
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} != "Linux"
|
|
BUILDLINK_TRANSFORM+= rm:-ldl
|
|
.endif
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_FILES.prefix= build/cmake_install.cmake
|
|
SUBST_MESSAGE.prefix= Fixing PREFIX path.
|
|
SUBST_SED.prefix= -e "s|/usr/local|${PREFIX}|1"
|
|
SUBST_STAGE.prefix= pre-install
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../devel/libusb/buildlink3.mk"
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|