0d2725682b
structure (i.e. include/SDL for includes and sdl-config for configuration binary) - Update graphics/sdl_ttf to version 2.0.8 - Update graphics/sdl_image to version 1.2.5 - Update audio/sdl_mixer to version 1.2.7 - Update net/sdl_net to version 1.2.6 - Update Mk/bsd.sdl.mk accordingly - Fix dependent ports to fit the new directory structure and avoid several API breakages - Bump up portrevisions for all dependent ports to allow them to be upgraded by portupgrade/portmaster etc tools Approved by: kris (portmgr), sem (mentor)
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# New ports collection makefile for: gngb
|
|
# Date created: 16 April 2001
|
|
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gngb
|
|
PORTVERSION= 20060309
|
|
PORTREVISION= 1
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= http://m.peponas.free.fr/gngb/download/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= GameBoy(tm) emulator
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_GNOME= gnometarget
|
|
USE_SDL= sdl
|
|
USE_GETOPT_LONG= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
PLIST_FILES= bin/gngb
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
MAN1= gngb.1
|
|
|
|
.if defined(WITH_GL)
|
|
USE_GL= yes
|
|
.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>
|