1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/emulators/gngb/Makefile

45 lines
858 B
Makefile
Raw Normal View History

# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
# $FreeBSD$
PORTNAME= gngb
PORTVERSION= 20060309
PORTREVISION= 5
CATEGORIES= emulators
MASTER_SITES= http://m.peponas.free.fr/gngb/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= GameBoy(tm) emulator
2004-01-23 22:24:30 +00:00
USE_SDL= sdl
2014-02-03 11:12:04 +00:00
USES= gmake
GNU_CONFIGURE= yes
USE_CSTD= gnu89
2014-02-03 11:12:04 +00:00
PLIST_FILES= bin/gngb \
man/man1/gngb.1.gz
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
2004-04-17 12:39:35 +00:00
.if defined(WITH_GL)
USE_GL= gl
.else
CONFIGURE_ARGS+= --disable-gl
.endif
pre-everything::
.if !defined(WITH_GL)
@${ECHO_MSG}
@${ECHO_MSG} "You can enable OpenGL support by defining WITH_GL"
@${ECHO_MSG}
.endif
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
.include <bsd.port.mk>