403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/emulators/gngeo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/emulators/gngeo/Makefile
PORTNAME=	gngeo
PORTVERSION=	0.8
DISTVERSIONPREFIX=	${PORTNAME}_
PORTREVISION=	5
CATEGORIES=	emulators
MASTER_SITES=	LOCAL/acm/${PORTNAME}

MAINTAINER=	acm@FreeBSD.org
COMMENT=	NeoGeo emulator
WWW=		https://github.com/pepone42/gngeo

LICENSE=	GPLv2

BROKEN_FreeBSD_13=	ld: error: duplicate symbol: current_fix
BROKEN_FreeBSD_14=	ld: error: duplicate symbol: current_fix
BROKEN_i386=	unknown argument: '-frerun-loop-opt'

USES=		autoreconf compiler:features gl gmake sdl
USE_SDL=	image sdl
USE_GL=		yes
USE_GITHUB=	yes
GH_ACCOUNT=	pepone42

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--program-transform-name="" --disable-gp2x
MAKE_JOBS_UNSAFE=	yes

CPPFLAGS+=	${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
LDFLAGS+=	`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib
USE_CSTD=	gnu89
MAKE_ARGS+=	CC_FOR_BUILD=${CC}

SUB_FILES=	pkg-message

OPTIONS_DEFINE_i386=	ASM RAZE STAR
OPTIONS_DEFAULT_i386=	ASM
RAZE_DESC=	Use Raze as z80 emulator (broken)
STAR_DESC=	Use Starscream as 68k emulator (broken)

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MI386ASM} || ${PORT_OPTIONS:MRAZE} || \
    ${PORT_OPTIONS:MSTAR}
BUILD_DEPENDS+=		nasm:devel/nasm
.endif

.if ${PORT_OPTIONS:MI386ASM}
CONFIGURE_ARGS+=	--enable-i386asm
.else
CONFIGURE_ARGS+=	--disable-i386asm
.endif

.if ${PORT_OPTIONS:MRAZE}
CONFIGURE_ARGS+=	--with-z80core=raze
BROKEN=			fails to link
.else
CONFIGURE_ARGS+=	--with-z80core=mamez80
.endif

.if ${PORT_OPTIONS:MSTAR}
CONFIGURE_ARGS+=	--with-m68kcore=starscream
BROKEN=			fails to link
.else
CONFIGURE_ARGS+=	--with-m68kcore=gen68k
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|x86_64|amd64|' ${WRKSRC}/configure
.if ${COMPILER_TYPE} == "clang"
	@${REINPLACE_CMD} -e 's|-frerun-loop-opt||; \
		s|-falign-jumps=2||; s|-falign-loops=2||; \
		s|-fschedule-insns2||; s|-malign-double||; \
		s|-frerun-loop-opt||; s|-O3||' \
		${WRKSRC}/configure
.endif
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' \
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
		${WRKSRC}/src/generator68k/Makefile.in

pre-configure:
	@cd ${WRKSRC} && ${AUTORECONF} -i

post-install:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${STAGEDIR}${EXAMPLESDIR}/gngeorc
	${INSTALL_DATA} ${WRKSRC}/romrc ${STAGEDIR}${DATADIR}/romrc
	${INSTALL_DATA} ${WRKSRC}/gngeo.dat/gngeo_data.zip ${STAGEDIR}${DATADIR}/gngeo_data.zip

.include <bsd.port.post.mk>

Youez - 2016 - github.com/yon3zu
LinuXploit