blob: 44eab659ba20fc2f65dbe574b4b4e5eb38e9b192 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.6 2021/01/01 09:52:20 ryoon Exp $
DISTNAME= allegro-5.2.6.0
PKGNAME= ${DISTNAME:S/allegro-/allegro5-/1}
PKGREVISION= 4
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=liballeg/}
GITHUB_PROJECT= allegro5
GITHUB_RELEASE= ${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://liballeg.org/
COMMENT= Cross-platform library aimed at video game programming
LICENSE= zlib
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
CMAKE_ARGS+= -Wno-dev
CMAKE_ARGS+= -DWANT_IMAGE_FREEIMAGE=OFF
# TODO: make this work and turn it into an option
CMAKE_ARGS+= -DWANT_DOCS=OFF
CMAKE_ARGS+= -DWANT_DEMO=OFF
CMAKE_ARGS+= -DWANT_EXAMPLES=OFF
.include "../../mk/oss.buildlink3.mk"
.if ${OSS_TYPE} != "none"
LDFLAGS+= ${LIBOSSAUDIO}
.else
CMAKE_ARGS+= -DWANT_OSS=OFF
.endif
PKGCONFIG_OVERRIDE+= misc/allegro.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_acodec.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_audio.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_color.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_dialog.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_font.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_image.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_main.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_memfile.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_monolith.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_physfs.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_primitives.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_ttf.pc.in
PKGCONFIG_OVERRIDE+= misc/allegro_video.pc.in
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
. include "../../graphics/MesaLib/buildlink3.mk"
. include "../../graphics/glu/buildlink3.mk"
. include "../../graphics/png/buildlink3.mk"
. include "../../x11/libXcursor/buildlink3.mk"
. include "../../x11/libSM/buildlink3.mk"
. include "../../mk/jpeg.buildlink3.mk"
.endif
.include "../../audio/dumb/buildlink3.mk"
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/opusfile/buildlink3.mk"
.include "../../devel/physfs/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../multimedia/libtheora/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|