398c8f81ad
- Add support for SDL Joysticks. - Possibly run on more than i386.
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# New ports collection makefile for: generator
|
|
# Date created: 16 April 2001
|
|
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= generator
|
|
PORTVERSION= 0.34
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= http://www.squish.net/generator/files/
|
|
|
|
MAINTAINER= nakai@FreeBSD.org
|
|
COMMENT= SEGA Genesis emulator
|
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
|
|
SDL-1.1.5:${PORTSDIR}/devel/sdl12
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
.endif
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
|
|
|
USE_GMAKE= yes
|
|
USE_REINPLACE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-gtk
|
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
CONFIGURE_ARGS+= --with-raze
|
|
.else
|
|
CONFIGURE_ARGS+= --with-cmz80
|
|
.endif
|
|
|
|
MAKE_ENV+= GTK_CONFIG="${GTK_CONFIG}" \
|
|
SDL_CONFIG="${SDL_CONFIG}"
|
|
CONFIGURE_ENV+= GTK_CONFIG="${GTK_CONFIG}" \
|
|
SDL_CONFIG="${SDL_CONFIG}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
.if ${OSVERSION} >= 500035
|
|
@${REINPLACE_CMD} -e \
|
|
's|-malign-loops|-falign-loops|g ; \
|
|
s|-malign-jumps|-falign-jumps|g ; \
|
|
s|-malign-functions|-falign-functions|g' ${WRKSRC}/configure.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|-malign-loops|-falign-loops|g ; \
|
|
s|-malign-jumps|-falign-jumps|g ; \
|
|
s|-malign-functions|-falign-functions|g' ${WRKSRC}/configure
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|