c9ea361463
on sdl12-1.2.5
62 lines
1.3 KiB
Makefile
62 lines
1.3 KiB
Makefile
# New ports collection makefile for: libuta
|
|
# Date created: 29 March 2001
|
|
# Whom: Oliver Lehmann <lehmann@ans-netz.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libuta
|
|
PORTVERSION= 0.4.4
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
|
COMMENT= A Graphical User Interface library for C++
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
sigc.1:${PORTSDIR}/devel/libsigc++
|
|
|
|
OPTIONS= SDL_MIXER "music and sound support" off
|
|
|
|
USE_FREETYPE= yes
|
|
USE_LIBTOOL_VER= 13
|
|
USE_SDL= sdl
|
|
GNU_CONFIGURE= yes
|
|
USE_REINPLACE= yes
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
WANT_SDL= yes
|
|
|
|
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 ${HAVE_SDL:Mmixer}!=""
|
|
WITH_SDL_MIXER= yes
|
|
.endif
|
|
|
|
.if defined(WITH_SDL_MIXER)
|
|
USE_SDL+= mixer
|
|
.endif
|
|
|
|
post-patch:
|
|
.for i in ${SDL11_FILES}
|
|
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/$i
|
|
.endfor
|
|
|
|
pre-configure:
|
|
@${REINPLACE_CMD} -e '\
|
|
s|<freetype/freetype.h>|<freetype1/freetype/freetype.h>|g; \
|
|
s|-lpthread||g; \
|
|
s|-lc_r|${PTHREAD_LIBS}|g' \
|
|
${WRKSRC}/configure ${WRKSRC}/uta/font.h
|
|
|
|
.include <bsd.port.post.mk>
|