2001-04-22 02:32:32 +02:00
|
|
|
# New ports collection makefile for: generator
|
|
|
|
# Date created: 16 April 2001
|
|
|
|
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= generator
|
2003-12-04 09:28:03 +01:00
|
|
|
PORTVERSION= 0.35
|
2006-09-20 13:21:59 +02:00
|
|
|
PORTREVISION= 6
|
2001-04-22 02:32:32 +02:00
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= http://www.squish.net/generator/files/
|
|
|
|
|
2006-04-09 15:08:16 +02:00
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= SEGA Genesis emulator
|
2001-04-22 02:32:32 +02:00
|
|
|
|
2003-12-04 09:28:03 +01:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
2003-11-22 18:51:22 +01:00
|
|
|
|
2003-12-04 09:28:03 +01:00
|
|
|
USE_GNOME= gtk12
|
2004-03-08 02:01:31 +01:00
|
|
|
USE_SDL= sdl
|
2003-12-04 09:28:03 +01:00
|
|
|
USE_GMAKE= yes
|
2006-04-24 22:55:04 +02:00
|
|
|
|
2001-04-22 02:32:32 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-04-24 22:55:04 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS+=--with-gtk
|
|
|
|
|
2003-12-04 09:28:03 +01:00
|
|
|
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
|
|
|
|
AUTOHEADER="${TRUE}"
|
|
|
|
|
2005-06-12 09:17:43 +02:00
|
|
|
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
|
|
|
|
RAZE "Use RAZE z80 emulation (only for i386)" on \
|
|
|
|
SDL_AUDIO "Use SDL for audio" off
|
|
|
|
|
2006-04-24 22:55:04 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME}-gtk
|
2005-06-12 09:17:43 +02:00
|
|
|
|
2003-12-04 09:28:03 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-04-07 08:42:33 +02:00
|
|
|
|
2005-07-15 20:50:09 +02:00
|
|
|
.if ${ARCH} != "amd64" && ${ARCH} != "i386"
|
|
|
|
post-patch:
|
|
|
|
# These architectures do not support "-minline-all-stringops"
|
|
|
|
@${REINPLACE_CMD} -e 's|-minline-all-stringops||g' \
|
2006-04-24 22:55:04 +02:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
. if ${ARCH} == "alpha"
|
2005-07-15 20:50:09 +02:00
|
|
|
# "-ffast-math" does not work on alpha
|
|
|
|
@${REINPLACE_CMD} -e 's|-ffast-math||g' \
|
2006-04-24 22:55:04 +02:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
. endif
|
2004-02-26 09:31:15 +01:00
|
|
|
.endif
|
|
|
|
|
2005-06-12 09:17:43 +02:00
|
|
|
# Generator does not automatically determine the GCC version.
|
2006-04-24 22:55:04 +02:00
|
|
|
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
|
|
|
|
. if ${OSVERSION} < 500035
|
|
|
|
CONFIGURE_ARGS+=--with-gcc=2
|
|
|
|
. elif ${OSVERSION} >= 500035
|
|
|
|
CONFIGURE_ARGS+=--with-gcc=3
|
|
|
|
. endif
|
2005-09-04 14:55:45 +02:00
|
|
|
.else
|
2006-04-24 22:55:04 +02:00
|
|
|
CONFIGURE_ARGS+=--without-gcc
|
2005-06-12 09:17:43 +02:00
|
|
|
.endif
|
|
|
|
|
2006-04-24 22:55:04 +02:00
|
|
|
.if !defined(WITHOUT_RAZE) && ${ARCH} == "i386"
|
|
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
CONFIGURE_ARGS+=--with-raze
|
2003-04-07 08:42:33 +02:00
|
|
|
.else
|
2006-04-24 22:55:04 +02:00
|
|
|
CONFIGURE_ARGS+=--with-cmz80
|
2003-04-07 08:42:33 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-12 09:17:43 +02:00
|
|
|
.if defined(WITH_SDL_AUDIO)
|
2006-04-24 22:55:04 +02:00
|
|
|
CONFIGURE_ARGS+=--with-sdl-audio
|
2005-06-12 09:17:43 +02:00
|
|
|
.endif
|
2003-11-22 18:51:22 +01:00
|
|
|
|
2006-04-24 22:55:04 +02:00
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD}
|
|
|
|
|
2003-04-07 08:42:33 +02:00
|
|
|
.include <bsd.port.post.mk>
|