1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/emulators/gngb/Makefile
Martin Wilke 3e4ed01146 - 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

50 lines
1010 B
Makefile

# New ports collection makefile for: gngb
# Date created: 16 April 2001
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gngb
PORTVERSION= 20060309
PORTREVISION= 4
CATEGORIES= emulators
MASTER_SITES= http://m.peponas.free.fr/gngb/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= GameBoy(tm) emulator
USE_GNOME= gnometarget
USE_SDL= sdl
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
PLIST_FILES= bin/gngb
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
MAN1= gngb.1
.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>