2000-09-25 08:58:43 +02:00
|
|
|
# New ports collection makefile for: clanlib
|
|
|
|
# Date created: 10 May 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= clanlib
|
2004-07-12 20:35:35 +02:00
|
|
|
PORTVERSION= 0.7.8.1
|
2000-09-25 08:58:43 +02:00
|
|
|
CATEGORIES= devel
|
2004-08-17 11:03:33 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-07-12 20:35:35 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
2003-09-24 15:01:39 +02:00
|
|
|
DISTNAME= ClanLib-${PORTVERSION:R}-${PORTVERSION:E}
|
2000-09-25 08:58:43 +02:00
|
|
|
|
2004-07-12 20:35:35 +02:00
|
|
|
MAINTAINER= bogorodskiy@inbox.ru
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Cross-platform game SDK
|
2000-09-25 08:58:43 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= Hermes.1:${PORTSDIR}/graphics/Hermes \
|
2003-09-24 15:01:39 +02:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png
|
2000-09-25 08:58:43 +02:00
|
|
|
|
2004-01-24 15:30:59 +01:00
|
|
|
# conflicts with devel/clanlib
|
|
|
|
CONFLICTS= clanlib-0.6.*
|
|
|
|
|
2003-09-24 15:01:39 +02:00
|
|
|
WRKSRC= ${WRKDIR}/ClanLib-${PORTVERSION:R}
|
|
|
|
|
2004-01-29 13:00:19 +01:00
|
|
|
LATEST_LINK= clanlib-devel
|
2003-09-24 15:01:39 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
USE_XLIB= yes
|
|
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
|
|
|
USE_GMAKE= yes
|
2004-07-09 19:43:11 +02:00
|
|
|
USE_INC_LIBTOOL_VER= 13
|
2003-11-17 13:03:17 +01:00
|
|
|
USE_REINPLACE= yes
|
2003-09-24 15:01:39 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --disable-clanJavaScript --disable-docs
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2004-07-12 20:35:35 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2003-09-24 15:01:39 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-09-29 06:30:59 +02:00
|
|
|
.if ${ARCH} != "i386" && ${ARCH} != "amd64"
|
|
|
|
BROKEN= "Does not compile on !i386 and !amd64"
|
2004-02-26 09:15:37 +01:00
|
|
|
.endif
|
|
|
|
|
2003-09-24 15:01:39 +02:00
|
|
|
.if ${OSVERSION} < 500032
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/stlport
|
|
|
|
LDFLAGS+= -lstlport_gcc
|
|
|
|
CFLAGS+= -O0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_SDL)
|
|
|
|
CONFIGURE_ARGS+= --disable-clanSDL
|
|
|
|
PLIST_SUB+= SDL="@comment "
|
|
|
|
.else
|
2004-03-08 02:01:31 +01:00
|
|
|
USE_SDL= sdl
|
2003-09-24 15:01:39 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-sdltest
|
|
|
|
PLIST_SUB+= SDL=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_OPENGL)
|
|
|
|
CONFIGURE_ARGS+= --disable-clanGL
|
|
|
|
PLIST_SUB+= OPENGL="@comment "
|
2000-09-25 08:58:43 +02:00
|
|
|
.else
|
2004-07-12 20:35:35 +02:00
|
|
|
USE_GL= yes
|
2003-09-24 15:01:39 +02:00
|
|
|
PLIST_SUB+= OPENGL=""
|
2000-09-25 08:58:43 +02:00
|
|
|
.endif
|
|
|
|
|
2003-12-20 17:37:57 +01:00
|
|
|
.if defined(WITHOUT_MIKMOD)
|
2003-09-24 15:01:39 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-clanMikMod
|
|
|
|
PLIST_SUB+= LIBMIKMOD="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
|
|
|
|
PLIST_SUB+= LIBMIKMOD=""
|
2000-09-25 08:58:43 +02:00
|
|
|
.endif
|
|
|
|
|
2003-12-20 17:37:57 +01:00
|
|
|
.if defined(WITHOUT_VORBIS)
|
2003-09-24 15:01:39 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-clanVorbis
|
|
|
|
PLIST_SUB+= LIBVORBIS="@comment "
|
|
|
|
.else
|
2003-12-20 17:37:57 +01:00
|
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
2003-09-24 15:01:39 +02:00
|
|
|
PLIST_SUB+= LIBVORBIS=""
|
|
|
|
.endif
|
|
|
|
|
2003-10-17 00:51:31 +02:00
|
|
|
pre-everything::
|
2003-09-24 15:01:39 +02:00
|
|
|
@${ECHO_MSG} "ClanLib has the following tunables option(s):"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " WITHOUT_SDL=yes Turns off SDL support"
|
|
|
|
@${ECHO_MSG} " WITHOUT_OPENGL=yes Turns off OpenGL support"
|
2003-12-20 17:37:57 +01:00
|
|
|
@${ECHO_MSG} " WITHOUT_MIKMOD=yes Turns off libmikmod support"
|
|
|
|
@${ECHO_MSG} " WITHOUT_VORBIS=yes Turns off libvorbis support"
|
2003-09-24 15:01:39 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
post-patch:
|
2003-10-24 17:17:18 +02:00
|
|
|
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|SDL/SDL|SDL|g'
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread||g' \
|
|
|
|
${WRKSRC}/Sources/Core/Makefile.in
|
2003-09-24 15:01:39 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|@perl_exec@|${PERL}|g' \
|
|
|
|
${WRKSRC}/Documentation/Utilities/webbuilder.pl.in
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|