2002-11-25 00:05:18 +01:00
|
|
|
# New ports collection makefile for: pinball
|
|
|
|
# Date created: Tue 13 aug 2002 22:46:02 CEST
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pinball
|
2003-12-17 10:31:35 +01:00
|
|
|
PORTVERSION= 0.3.1
|
2004-12-06 18:04:31 +01:00
|
|
|
PORTREVISION= 3
|
2002-11-25 00:05:18 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2004-12-06 18:04:31 +01:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= Emilia Pinball is a free pinball game
|
2002-11-25 00:05:18 +01:00
|
|
|
|
|
|
|
.if !defined(WITH_ALLEGRO)
|
|
|
|
BUILD_DEPENDS= ${SDL_CONFIG}:${PORTSDIR}/devel/sdl12
|
|
|
|
.else
|
2004-12-06 18:04:31 +01:00
|
|
|
BROKEN= "support with Allegro is (temporarily) broken as of version 0.3.1"
|
2002-11-25 00:05:18 +01:00
|
|
|
BUILD_DEPENDS= ${ALLEGRO_CONFIG}:${PORTSDIR}/devel/allegro
|
2003-04-18 08:50:22 +02:00
|
|
|
LIB_DEPENDS= alleg.41:${PORTSDIR}/devel/allegro
|
2002-11-25 00:05:18 +01:00
|
|
|
.endif
|
|
|
|
|
2004-01-20 22:18:12 +01:00
|
|
|
USE_SDL= image mixer sdl
|
2002-11-25 00:05:18 +01:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
2004-12-06 18:04:31 +01:00
|
|
|
USE_GL= yes
|
|
|
|
USE_LIBTOOL_VER=15
|
2002-11-25 00:05:18 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
2003-12-17 10:31:35 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --without-debug
|
2002-11-25 00:05:18 +01:00
|
|
|
.if defined(WITH_ALLEGRO)
|
|
|
|
CONFIGURE_ARGS+= --with-allegro
|
2003-06-14 06:08:18 +02:00
|
|
|
EXTRA_LIBS= -lGL -lGLU
|
2002-11-25 00:05:18 +01:00
|
|
|
.endif
|
2003-06-14 06:08:18 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include -DRZR_LIBSTATIC" \
|
2004-01-20 22:18:12 +01:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${EXTRA_LIBS}"
|
2002-11-25 00:05:18 +01:00
|
|
|
ALLEGRO_CONFIG= ${LOCALBASE}/bin/allegro-config
|
|
|
|
|
|
|
|
DOCS= README
|
|
|
|
|
2004-02-09 03:08:06 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-11-25 00:05:18 +01:00
|
|
|
post-install:
|
2005-04-12 05:26:56 +02:00
|
|
|
@${MV} ${PREFIX}/bin/${MACHINE_ARCH}-unknown-freebsd${OSREL}-pinball \
|
2003-06-14 06:08:18 +02:00
|
|
|
${PREFIX}/bin/pinball
|
2005-04-12 05:26:56 +02:00
|
|
|
@${MV} ${PREFIX}/bin/${MACHINE_ARCH}-unknown-freebsd${OSREL}-pinball-config \
|
2003-06-14 06:08:18 +02:00
|
|
|
${PREFIX}/bin/pinball-config
|
2002-11-25 00:05:18 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
2003-06-14 06:08:18 +02:00
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
2002-11-25 00:05:18 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-09 03:08:06 +01:00
|
|
|
.include <bsd.port.post.mk>
|