blob: f9a847e892b4f47bdc78c8e42a24bdd14da8767e (
plain) (
blame)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# $FreeBSD$
PORTNAME= agar
PORTVERSION= 1.5.0
CATEGORIES= devel
MASTER_SITES= http://stable.hypertriton.com/agar/
MAINTAINER= vedge@hypertriton.com
COMMENT= Cross-platform GUI toolkit
LICENSE= BSD2CLAUSE
USES= libtool pathfix perl5 pkgconfig jpeg
USE_PERL5= build
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DEBUG FONTCONFIG GUI NETWORK PORTAUDIO SDL SNDFILE X11 XINERAMA
OPTIONS_DEFAULT=FONTCONFIG GUI NETWORK PORTAUDIO SDL SNDFILE X11 XINERAMA
OPTIONS_SUB= yes
NETWORK_DESC= Network support in AG_Net(3)
DEBUG_CONFIGURE_ENABLE= debug
NETWORK_CONFIGURE_ENABLE=network
PORTAUDIO_CONFIGURE_ENABLE=au
PORTAUDIO_CONFIGURE_ON= --with-portaudio=${LOCALBASE}
PORTAUDIO_CONFIGURE_OFF=--without-portaudio
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
PORTAUDIO_IMPLIES= SNDFILE
SNDFILE_CONFIGURE_ON= --with-sndfile=${LOCALBASE}
SNDFILE_CONFIGURE_OFF= --without-sndfile
SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile
SNDFILE_IMPLIES= PORTAUDIO
GUI_CONFIGURE_ENABLE= gui
GUI_USE= JPEG=jpeg
GUI_CONFIGURE_ON= --with-jpeg=${LOCALBASE} \
--with-png=${LOCALBASE} \
--with-freetype=${LOCALBASE}
GUI_LIB_DEPENDS= libpng.so:graphics/png \
libfreetype.so:print/freetype2
FONTCONFIG_CONFIGURE_WITH=fontconfig
FONTCONFIG_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig
FONTCONFIG_IMPLIES= GUI
X11_USE= GL=gl XORG=x11,xext
X11_CONFIGURE_ON= --with-x=${LOCALBASE} --with-glx
X11_CONFIGURE_OFF= --without-x --without-glx
X11_IMPLIES= GUI
XINERAMA_USE= XORG=xinerama
XINERAMA_CONFIGURE_WITH=xinerama
XINERAMA_IMPLIES= X11
SDL_USE= SDL=sdl GL=gl
SDL_CONFIGURE_WITH= sdl
SDL_IMPLIES= GUI
.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64")
CONFIGURE_ARGS+= --with-sse \
--with-sse-inline
PLIST_SUB+= SSE=""
.else
CONFIGURE_ARGS+= --without-sse
PLIST_SUB+= SSE="@comment "
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libag_*.so.*
post-patch-GUI-off:
@${REINPLACE_CMD} -e 's|^LIBS=.*|LIBS=|' ${WRKSRC}/au/Makefile
@${REINPLACE_CMD} -e 's|^LIBS=.*|LIBS=|' ${WRKSRC}/math/Makefile
.include <bsd.port.mk>
|