2001-04-05 19:01:48 +00:00
|
|
|
# New ports collection makefile for: libuta
|
|
|
|
# Date created: 29 March 2001
|
|
|
|
# Whom: Oliver Lehmann <lehmann@ans-netz.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libuta
|
2002-10-31 21:14:52 +00:00
|
|
|
PORTVERSION= 0.4.4
|
2001-04-05 19:01:48 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2003-05-17 22:07:22 +00:00
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
2003-02-21 11:23:04 +00:00
|
|
|
COMMENT= A Graphical User Interface library for C++
|
2001-04-05 19:01:48 +00:00
|
|
|
|
2002-07-02 13:47:31 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2003-07-30 17:24:56 +00:00
|
|
|
sigc.1:${PORTSDIR}/devel/libsigc++
|
2001-04-05 19:01:48 +00:00
|
|
|
|
2002-03-14 07:30:37 +00:00
|
|
|
USE_FREETYPE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2003-07-30 17:24:56 +00:00
|
|
|
USE_SDL= yes
|
2002-07-02 13:47:31 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_REINPLACE= yes
|
2003-07-30 18:06:18 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2001-04-05 19:01:48 +00:00
|
|
|
|
2003-07-30 17:24:56 +00:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
|
2002-07-02 13:47:31 +00:00
|
|
|
|
|
|
|
SDL11_FILES= configure uta/color.h uta/event.h uta/keysym.h uta/mutex.h \
|
|
|
|
uta/pixelformat.h uta/rect.h uta/sge_blib.cc uta/sge_blib.h \
|
|
|
|
uta/sge_draw.cc uta/sge_draw.h uta/sound.h uta/surface_io.cc \
|
|
|
|
uta/surface.h uta/timer.cc
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/lib/libSDL_mixer.so.2)
|
|
|
|
WITH_SDL_MIXER= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SDL_MIXER)
|
|
|
|
LIB_DEPENDS+= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build options:"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITH_SDL_MIXER=yes Enable music and sound support"
|
|
|
|
@${ECHO} ""
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for i in ${SDL11_FILES}
|
2003-05-17 22:07:22 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/$i
|
2002-07-02 13:47:31 +00:00
|
|
|
.endfor
|
|
|
|
|
2002-07-23 16:53:14 +00:00
|
|
|
pre-configure:
|
2003-05-17 22:07:22 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|<freetype/freetype.h>|<freetype1/freetype/freetype.h>|g' ${WRKSRC}/configure
|
2002-07-23 16:53:14 +00:00
|
|
|
|
2002-07-02 13:47:31 +00:00
|
|
|
.include <bsd.port.post.mk>
|