2001-04-22 03:40:59 +02:00
|
|
|
# New ports collection makefile for: gngb
|
|
|
|
# Date created: 16 April 2001
|
|
|
|
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gngb
|
2003-11-03 10:10:16 +01:00
|
|
|
PORTVERSION= 20030809
|
2001-04-22 03:40:59 +02:00
|
|
|
CATEGORIES= emulators
|
2003-11-03 10:10:16 +01:00
|
|
|
MASTER_SITES= http://membres.lycos.fr/frogus/gngb/download/ \
|
|
|
|
http://m.peponas.free.fr/gngb/download/
|
2002-07-30 13:55:28 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
2001-04-22 03:40:59 +02:00
|
|
|
|
2003-11-03 02:19:26 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= GameBoy(tm) emulator
|
2001-04-22 03:40:59 +02:00
|
|
|
|
2003-01-02 16:06:10 +01:00
|
|
|
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12
|
2001-04-22 03:40:59 +02:00
|
|
|
|
2002-07-30 13:55:28 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-11-15 21:20:56 +01:00
|
|
|
USE_REINPLACE= yes
|
2001-04-22 03:40:59 +02:00
|
|
|
USE_GMAKE= yes
|
2003-10-03 15:18:22 +02:00
|
|
|
USE_GETOPT_LONG=yes
|
2002-07-30 13:55:28 +02:00
|
|
|
USE_XLIB= yes
|
2001-04-22 03:40:59 +02:00
|
|
|
USE_X_PREFIX= yes
|
2002-07-30 13:55:28 +02:00
|
|
|
CONFIGURE_ENV= CFLAGS="-I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib"
|
|
|
|
PORT_CFLAGS= -DSDL_YUV -I${LOCALBASE}/include -I${LOCALBASE}/include/SDL11 -I${X11BASE}/include
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
@${ECHO_MSG} "You can enable additional compilation optimizations"
|
|
|
|
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_GL)
|
|
|
|
CONFIGURE_ARGS= --with-gl
|
|
|
|
PORT_CFLAGS+= -DSDL_GL
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "You can enable OpenGL support by defining WITH_GL"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
2003-11-15 21:20:56 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|sdl-config|sdl11-config|g; \
|
|
|
|
s|-lSDL|-lSDL-1.1|g; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2002-07-30 13:55:28 +02:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
2003-11-15 21:20:56 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|\(CFLAGS =\).*|\1 ${PORT_CFLAGS} ${CFLAGS}|' ${WRKSRC}/src/Makefile
|
2002-07-30 13:55:28 +02:00
|
|
|
.endif
|
2001-04-22 03:40:59 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|