2013-09-20 16:43:52 +00:00
|
|
|
# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
|
2001-04-22 01:40:59 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gngb
|
2006-09-12 07:40:10 +00:00
|
|
|
PORTVERSION= 20060309
|
2012-02-18 10:18:33 +00:00
|
|
|
PORTREVISION= 5
|
2001-04-22 01:40:59 +00:00
|
|
|
CATEGORIES= emulators
|
2004-02-02 15:51:50 +00:00
|
|
|
MASTER_SITES= http://m.peponas.free.fr/gngb/download/
|
2001-04-22 01:40:59 +00:00
|
|
|
|
2003-11-03 01:19:26 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= GameBoy(tm) emulator
|
2001-04-22 01:40:59 +00:00
|
|
|
|
2004-01-23 22:24:30 +00:00
|
|
|
USE_SDL= sdl
|
2014-02-03 11:12:04 +00:00
|
|
|
USES= gmake
|
2004-02-02 15:51:50 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2012-07-05 17:26:10 +00:00
|
|
|
USE_CSTD= gnu89
|
2004-02-02 15:51:50 +00:00
|
|
|
|
2014-02-03 11:12:04 +00:00
|
|
|
PLIST_FILES= bin/gngb \
|
|
|
|
man/man1/gngb.1.gz
|
2004-02-02 15:51:50 +00:00
|
|
|
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2002-07-30 11:55:28 +00:00
|
|
|
|
2004-04-17 12:39:35 +00:00
|
|
|
|
2002-07-30 11:55:28 +00:00
|
|
|
.if defined(WITH_GL)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_GL= gl
|
2002-07-30 11:55:28 +00:00
|
|
|
.else
|
2004-02-02 15:51:50 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-gl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_GL)
|
2002-07-30 11:55:28 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "You can enable OpenGL support by defining WITH_GL"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
2004-02-02 15:51:50 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
|
|
|
s|"$$SDL_CONFIG" = yes|-n "$$SDL_CONFIG"|g ; \
|
|
|
|
s|sdl-config |$$SDL_CONFIG |g ; \
|
|
|
|
s|$$OPT||g' ${WRKSRC}/configure
|
2001-04-22 01:40:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|