2001-03-04 21:33:24 +01:00
|
|
|
# New ports collection makefile for: allegro
|
|
|
|
# Date created: 23-Feb-2001
|
|
|
|
# Whom: Jimmy Olgeni <olgeni@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= allegro
|
2007-05-03 23:07:14 +02:00
|
|
|
DISTVERSION= 4.3.1
|
2008-03-22 09:55:40 +01:00
|
|
|
PORTREVISION= 3
|
2001-03-04 21:33:24 +01:00
|
|
|
CATEGORIES= devel
|
2009-08-22 02:18:43 +02:00
|
|
|
MASTER_SITES= SF/alleg/${PORTNAME}-unstable/${PORTVERSION}
|
2006-08-14 01:20:09 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
2001-03-04 21:33:24 +01:00
|
|
|
|
2009-06-18 14:33:13 +02:00
|
|
|
MAINTAINER= EitanAdlerList@gmail.com
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= A cross-platform library for games and multimedia programming
|
2001-03-04 21:33:24 +01:00
|
|
|
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:262
|
2005-11-13 16:16:30 +01:00
|
|
|
USE_GMAKE= yes
|
2008-03-22 09:55:40 +01:00
|
|
|
USE_XORG= x11 xpm xext xcursor xxf86vm xxf86dga
|
2006-08-10 04:06:20 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-11-06 17:51:46 +01:00
|
|
|
WANT_GNOME= yes
|
2005-06-30 19:46:46 +02:00
|
|
|
|
2006-08-10 04:06:20 +02:00
|
|
|
OPTIONS= AL "Enable OpenAL support" off \
|
|
|
|
ARTS "Enable Arts support" off \
|
2006-04-24 22:53:10 +02:00
|
|
|
DEBUG "Build debugging library" off \
|
|
|
|
DEVEL "Build development utilities" on \
|
2005-11-13 16:16:30 +01:00
|
|
|
ESOUND "Enable Esound support" off \
|
2006-08-10 04:06:20 +02:00
|
|
|
JACK "Enable JACK support" off \
|
2005-11-13 16:16:30 +01:00
|
|
|
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
|
2006-04-24 22:53:10 +02:00
|
|
|
PROFILE "Build profiling library" off \
|
2005-11-13 16:16:30 +01:00
|
|
|
THREADS "Enable threads" on
|
2005-06-30 19:46:46 +02:00
|
|
|
|
2001-03-04 21:33:24 +01:00
|
|
|
MAKEFILE= makefile
|
2003-12-13 02:41:30 +01:00
|
|
|
ALL_TARGET= full-build
|
2001-03-04 21:33:24 +01:00
|
|
|
|
2006-04-24 22:53:10 +02:00
|
|
|
.include "Makefile.man"
|
|
|
|
|
|
|
|
INFO= allegro
|
|
|
|
|
2006-08-14 01:20:09 +02:00
|
|
|
CONFLICTS= allegro-[0-9]*
|
|
|
|
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
|
2002-11-06 17:51:46 +01:00
|
|
|
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
|
2006-08-10 04:06:20 +02:00
|
|
|
|
2003-03-30 05:04:33 +02:00
|
|
|
DEMO= demo.c demo.dat demo.h music.txt ../readme.txt
|
2006-08-14 01:20:09 +02:00
|
|
|
SHLIB_VER= 43
|
2002-11-06 17:51:46 +01:00
|
|
|
|
2009-07-16 21:42:39 +02:00
|
|
|
PORTSCOUT= limit:^4\.3\.[0-9]*
|
|
|
|
|
2002-11-06 17:51:46 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-08-10 04:06:20 +02:00
|
|
|
.if defined(WITH_AL)
|
|
|
|
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal
|
|
|
|
CONFIGURE_ARGS+=--enable-sgialdigi
|
|
|
|
PLIST_SUB+= AL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sgialdigi
|
|
|
|
PLIST_SUB+= AL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 22:53:10 +02:00
|
|
|
.if defined(WITH_ARTS)
|
2003-12-13 02:41:30 +01:00
|
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
2006-04-24 22:53:10 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-artsdigi
|
2003-12-13 02:41:30 +01:00
|
|
|
PLIST_SUB+= ARTS=""
|
|
|
|
.else
|
2006-04-24 22:53:10 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-artsdigi
|
2003-12-13 02:41:30 +01:00
|
|
|
PLIST_SUB+= ARTS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 22:53:10 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+=--enable-dbglib
|
|
|
|
PLIST_SUB+= DEBUG=""
|
2002-11-06 17:51:46 +01:00
|
|
|
.else
|
2006-04-24 22:53:10 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-dbglib
|
|
|
|
PLIST_SUB+= DEBUG="@comment "
|
2005-11-13 16:16:30 +01:00
|
|
|
.endif
|
|
|
|
|
2006-04-24 22:53:10 +02:00
|
|
|
.if !defined(WITHOUT_DEVEL)
|
2002-11-06 17:51:46 +01:00
|
|
|
INSTALL_TARGET= full-install install-man install-info
|
2006-04-24 22:53:10 +02:00
|
|
|
PLIST_SUB+= DEVEL=""
|
2005-11-13 16:16:30 +01:00
|
|
|
.else
|
|
|
|
INSTALL_TARGET= mini-install install-man install-info
|
2006-04-24 22:53:10 +02:00
|
|
|
PLIST_SUB+= DEVEL="@comment "
|
2002-10-21 19:48:49 +02:00
|
|
|
.endif
|
2002-01-07 05:07:09 +01:00
|
|
|
|
2006-04-24 22:53:10 +02:00
|
|
|
.if defined(WITH_ESOUND)
|
2005-11-13 16:16:30 +01:00
|
|
|
USE_GNOME+= esound
|
2006-04-24 22:53:10 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-esddigi
|
2005-11-13 16:16:30 +01:00
|
|
|
PLIST_SUB+= ESOUND=""
|
|
|
|
.else
|
2006-04-24 22:53:10 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-esddigi
|
2005-11-13 16:16:30 +01:00
|
|
|
PLIST_SUB+= ESOUND="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-08-10 04:06:20 +02:00
|
|
|
.if defined(WITH_JACK)
|
|
|
|
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
|
|
|
CONFIGURE_ARGS+=--enable-jackdigi
|
|
|
|
PLIST_SUB+= JACK=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-jackdigi
|
|
|
|
PLIST_SUB+= JACK="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 22:53:10 +02:00
|
|
|
.if defined(WITH_PROFILE)
|
|
|
|
CONFIGURE_ARGS+=--enable-proflib
|
|
|
|
PLIST_SUB+= PROFILE=""
|
2005-11-13 16:16:30 +01:00
|
|
|
.else
|
2006-04-24 22:53:10 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-proflib
|
|
|
|
PLIST_SUB+= PROFILE="@comment "
|
2005-11-13 16:16:30 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_THREADS)
|
2006-04-24 22:53:10 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-pthreads
|
2005-11-13 16:16:30 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -DHAVE_LIBPTHREAD" \
|
|
|
|
LDFLAGS="${PTHREAD_LIBS}"
|
|
|
|
.else
|
2006-04-24 22:53:10 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-pthreads
|
2003-03-30 05:04:33 +02:00
|
|
|
.endif
|
|
|
|
|
2002-11-06 17:51:46 +01:00
|
|
|
post-patch:
|
2005-11-13 16:16:30 +01:00
|
|
|
# Change "x.y.z" into "xy" in the shared library version.
|
|
|
|
@${REINPLACE_CMD} -e 's|${PORTVERSION}|${SHLIB_VER}|g' \
|
|
|
|
${WRKSRC}/makefile.ver
|
|
|
|
|
|
|
|
# Remove architecture specific optimizations.
|
|
|
|
@${REINPLACE_CMD} -e 's|$$TARGET_ARCH||g' \
|
|
|
|
${CONFIGURE_WRKSRC}/configure.in
|
|
|
|
|
|
|
|
# Remove "-ffast-math" flag on alpha, because it breaks.
|
|
|
|
.if ${ARCH} == "alpha"
|
|
|
|
@${REINPLACE_CMD} -e 's|-ffast-math||g' \
|
|
|
|
${CONFIGURE_WRKSRC}/configure.in
|
|
|
|
.endif
|
|
|
|
|
2006-08-14 01:20:09 +02:00
|
|
|
# Threading libraries.
|
|
|
|
@${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/' ${WRKSRC}/aclocal.m4
|
|
|
|
|
2005-11-13 16:16:30 +01:00
|
|
|
# Enable/disable compilation optimizations.
|
|
|
|
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
|
|
|
|
@${REINPLACE_CMD} -e 's|-O2||g ; \
|
|
|
|
s|-ffast-math||g ; \
|
|
|
|
s|-fomit-frame-pointer||g ; \
|
|
|
|
s|-funroll-loops||g' \
|
2006-04-24 22:53:10 +02:00
|
|
|
${CONFIGURE_WRKSRC}/configure.in
|
2005-11-13 16:16:30 +01:00
|
|
|
.endif
|
2001-03-04 21:33:24 +01:00
|
|
|
|
|
|
|
post-install:
|
2005-11-13 16:16:30 +01:00
|
|
|
# Documentation.
|
2002-09-18 02:31:23 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-21 19:48:49 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-11-13 16:16:30 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/html/*.html ${DOCSDIR}
|
2003-03-30 05:04:33 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/html/*.css ${DOCSDIR}
|
2005-11-13 16:16:30 +01:00
|
|
|
|
|
|
|
# Examples.
|
2003-03-30 05:04:33 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/demo/demo ${EXAMPLESDIR}
|
2005-11-13 16:16:30 +01:00
|
|
|
. for f in ${DEMO}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/${f} ${EXAMPLESDIR}
|
|
|
|
. endfor
|
2001-03-04 21:33:24 +01:00
|
|
|
.endif
|
|
|
|
|
2002-11-06 17:51:46 +01:00
|
|
|
.include <bsd.port.post.mk>
|