| @@ -1,33 +1,38 @@ | | | @@ -1,33 +1,38 @@ |
1 | # $NetBSD: Makefile,v 1.1 2020/03/18 01:23:01 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2020/03/18 01:46:12 nia Exp $ |
2 | | | 2 | |
3 | DISTNAME= allegro-5.2.6.0 | | 3 | DISTNAME= allegro-5.2.6.0 |
4 | PKGNAME= ${DISTNAME:S/allegro-/allegro5-/1} | | 4 | PKGNAME= ${DISTNAME:S/allegro-/allegro5-/1} |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= devel | | 6 | CATEGORIES= devel |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=liballeg/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=liballeg/} |
7 | GITHUB_PROJECT= allegro5 | | 8 | GITHUB_PROJECT= allegro5 |
8 | GITHUB_RELEASE= ${PKGVERSION_NOREV} | | 9 | GITHUB_RELEASE= ${PKGVERSION_NOREV} |
9 | | | 10 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= https://liballeg.org/ | | 12 | HOMEPAGE= https://liballeg.org/ |
12 | COMMENT= Cross-platform library aimed at video game programming | | 13 | COMMENT= Cross-platform library aimed at video game programming |
13 | LICENSE= zlib | | 14 | LICENSE= zlib |
14 | | | 15 | |
15 | USE_CMAKE= yes | | 16 | USE_CMAKE= yes |
16 | USE_TOOLS+= pkg-config | | 17 | USE_TOOLS+= pkg-config |
17 | USE_LANGUAGES= c c++ | | 18 | USE_LANGUAGES= c c++ |
18 | | | 19 | |
19 | CMAKE_ARGS+= -Wno-dev | | 20 | CMAKE_ARGS+= -Wno-dev |
20 | CMAKE_ARGS+= -DWANT_IMAGE_FREEIMAGE=OFF | | 21 | CMAKE_ARGS+= -DWANT_IMAGE_FREEIMAGE=OFF |
| | | 22 | # TODO: make this work and turn it into an option |
| | | 23 | CMAKE_ARGS+= -DWANT_DOCS=OFF |
| | | 24 | CMAKE_ARGS+= -DWANT_DEMO=OFF |
| | | 25 | CMAKE_ARGS+= -DWANT_EXAMPLES=OFF |
21 | | | 26 | |
22 | .include "../../mk/oss.buildlink3.mk" | | 27 | .include "../../mk/oss.buildlink3.mk" |
23 | .if ${OSS_TYPE} != "none" | | 28 | .if ${OSS_TYPE} != "none" |
24 | LDFLAGS+= ${LIBOSSAUDIO} | | 29 | LDFLAGS+= ${LIBOSSAUDIO} |
25 | .else | | 30 | .else |
26 | CMAKE_ARGS+= -DWANT_OSS=OFF | | 31 | CMAKE_ARGS+= -DWANT_OSS=OFF |
27 | .endif | | 32 | .endif |
28 | | | 33 | |
29 | PKGCONFIG_OVERRIDE+= misc/allegro.pc.in | | 34 | PKGCONFIG_OVERRIDE+= misc/allegro.pc.in |
30 | PKGCONFIG_OVERRIDE+= misc/allegro_acodec.pc.in | | 35 | PKGCONFIG_OVERRIDE+= misc/allegro_acodec.pc.in |
31 | PKGCONFIG_OVERRIDE+= misc/allegro_audio.pc.in | | 36 | PKGCONFIG_OVERRIDE+= misc/allegro_audio.pc.in |
32 | PKGCONFIG_OVERRIDE+= misc/allegro_color.pc.in | | 37 | PKGCONFIG_OVERRIDE+= misc/allegro_color.pc.in |
33 | PKGCONFIG_OVERRIDE+= misc/allegro_dialog.pc.in | | 38 | PKGCONFIG_OVERRIDE+= misc/allegro_dialog.pc.in |
| @@ -47,15 +52,14 @@ PKGCONFIG_OVERRIDE+= misc/allegro_video. | | | @@ -47,15 +52,14 @@ PKGCONFIG_OVERRIDE+= misc/allegro_video. |
47 | . include "../../graphics/MesaLib/buildlink3.mk" | | 52 | . include "../../graphics/MesaLib/buildlink3.mk" |
48 | . include "../../graphics/glu/buildlink3.mk" | | 53 | . include "../../graphics/glu/buildlink3.mk" |
49 | . include "../../graphics/png/buildlink3.mk" | | 54 | . include "../../graphics/png/buildlink3.mk" |
50 | . include "../../mk/jpeg.buildlink3.mk" | | 55 | . include "../../mk/jpeg.buildlink3.mk" |
51 | .endif | | 56 | .endif |
52 | .include "../../audio/dumb/buildlink3.mk" | | 57 | .include "../../audio/dumb/buildlink3.mk" |
53 | .include "../../audio/flac/buildlink3.mk" | | 58 | .include "../../audio/flac/buildlink3.mk" |
54 | .include "../../audio/libvorbis/buildlink3.mk" | | 59 | .include "../../audio/libvorbis/buildlink3.mk" |
55 | .include "../../audio/opusfile/buildlink3.mk" | | 60 | .include "../../audio/opusfile/buildlink3.mk" |
56 | .include "../../devel/physfs/buildlink3.mk" | | 61 | .include "../../devel/physfs/buildlink3.mk" |
57 | .include "../../graphics/freetype2/buildlink3.mk" | | 62 | .include "../../graphics/freetype2/buildlink3.mk" |
58 | .include "../../graphics/libwebp/buildlink3.mk" | | 63 | .include "../../graphics/libwebp/buildlink3.mk" |
59 | .include "../../multimedia/libtheora/buildlink3.mk" | | 64 | .include "../../multimedia/libtheora/buildlink3.mk" |
60 | .include "../../net/enet/buildlink3.mk" | | | |
61 | .include "../../mk/bsd.pkg.mk" | | 65 | .include "../../mk/bsd.pkg.mk" |