Lines 6-26
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= libuta |
8 |
PORTNAME= libuta |
9 |
PORTVERSION= 0.3.38 |
9 |
PORTVERSION= 0.4.1 |
10 |
CATEGORIES= devel |
10 |
CATEGORIES= devel |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
|
13 |
|
14 |
MAINTAINER= lehmann@ans-netz.de |
14 |
MAINTAINER= lehmann@ans-netz.de |
15 |
|
15 |
|
16 |
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ |
16 |
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ |
17 |
sigc.1:${PORTSDIR}/devel/libsigc++ \ |
17 |
sigc.1:${PORTSDIR}/devel/libsigc++ \ |
18 |
SDL-1.1.4:${PORTSDIR}/devel/sdl12 \ |
18 |
SDL-1.1.4:${PORTSDIR}/devel/sdl12 |
19 |
SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer |
|
|
20 |
|
19 |
|
21 |
USE_FREETYPE= yes |
20 |
USE_FREETYPE= yes |
22 |
USE_LIBTOOL= yes |
21 |
USE_LIBTOOL= yes |
23 |
CONFIGURE_ARGS= --prefix=${PREFIX} |
22 |
GNU_CONFIGURE= yes |
24 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype1" |
23 |
USE_REINPLACE= yes |
25 |
|
24 |
|
26 |
.include <bsd.port.mk> |
25 |
CONFIGURE_ENV= SDL_CONFIG="${LOCALBASE}/bin/sdl11-config" \ |
|
|
26 |
LIBS="-L${LOCALBASE}/lib" |
27 |
|
28 |
SDL11_FILES= configure uta/color.h uta/event.h uta/keysym.h uta/mutex.h \ |
29 |
uta/pixelformat.h uta/rect.h uta/sge_blib.cc uta/sge_blib.h \ |
30 |
uta/sge_draw.cc uta/sge_draw.h uta/sound.h uta/surface_io.cc \ |
31 |
uta/surface.h uta/timer.cc |
32 |
|
33 |
.include <bsd.port.pre.mk> |
34 |
|
35 |
.if exists(${LOCALBASE}/lib/libSDL_mixer.so.2) |
36 |
WITH_SDL_MIXER= yes |
37 |
.endif |
38 |
|
39 |
.if defined(WITH_SDL_MIXER) |
40 |
LIB_DEPENDS+= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer |
41 |
.endif |
42 |
|
43 |
|
44 |
pre-everything:: |
45 |
@${ECHO} "" |
46 |
@${ECHO} "You may use the following build options:" |
47 |
@${ECHO} "" |
48 |
@${ECHO} " WITH_SDL_MIXER=yes Enable music and sound support" |
49 |
@${ECHO} "" |
50 |
|
51 |
post-patch: |
52 |
.for i in ${SDL11_FILES} |
53 |
${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/$i |
54 |
.endfor |
55 |
|
56 |
.include <bsd.port.post.mk> |