svn commit: r380151 - branches/2015Q1/emulators/gngeo
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Feb 28 16:19:17 UTC 2015
Author: amdmi3
Date: Sat Feb 28 16:19:16 2015
New Revision: 380151
URL: https://svnweb.freebsd.org/changeset/ports/380151
QAT: https://qat.redports.org/buildarchive/r380151/
Log:
MFH: r380131
- Simplify MASTER_SITES
- Remove unneeded MAN1
- Don't show pkg-message from Makefile
- Disable and mark broken RAZE and STAR options, as they fail to link
- Fix configure to properly detect amd64 arch
- When compiling with clang, drop compiler flags not supported by it
- Disable -malign-double on amd64, gcc says it makes no sense
Approved by: bapt
Approved by: ports-secteam (zi)
Modified:
branches/2015Q1/emulators/gngeo/Makefile
Directory Properties:
branches/2015Q1/ (props changed)
Modified: branches/2015Q1/emulators/gngeo/Makefile
==============================================================================
--- branches/2015Q1/emulators/gngeo/Makefile Sat Feb 28 16:18:02 2015 (r380150)
+++ branches/2015Q1/emulators/gngeo/Makefile Sat Feb 28 16:19:16 2015 (r380151)
@@ -5,13 +5,12 @@ PORTNAME= gngeo
PORTVERSION= 0.8
PORTREVISION= 2
CATEGORIES= emulators
-MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
+MASTER_SITES= GOOGLE_CODE/${PORTNAME}
MAINTAINER= acm at FreeBSD.org
COMMENT= NeoGeo emulator
-USES= gmake
+USES= compiler:features gmake
USE_SDL= image sdl
USE_GL= yes
@@ -27,11 +26,10 @@ MAKE_ARGS+= CC_FOR_BUILD=${CC}
SUB_FILES= pkg-message
OPTIONS_DEFINE_i386= ASM RAZE STAR
-OPTIONS_DEFAULT_i386= ASM RAZE STAR
-RAZE_DESC= Use Raze as z80 emulator
-STAR_DESC= Use Starscream as 68k emulator
+OPTIONS_DEFAULT_i386= ASM
+RAZE_DESC= Use Raze as z80 emulator (broken)
+STAR_DESC= Use Starscream as 68k emulator (broken)
-MAN1= gngeo.1
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MI386ASM} || ${PORT_OPTIONS:MRAZE} || \
@@ -47,17 +45,29 @@ CONFIGURE_ARGS+= --disable-i386asm
.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 ${ARCH} == "amd64"
+ @${REINPLACE_CMD} -e 's|-malign-double||' ${WRKSRC}/configure
+.endif
+.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||' \
+ ${WRKSRC}/configure
+.endif
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
${WRKSRC}/src/generator68k/Makefile.in
@@ -65,6 +75,5 @@ post-patch:
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${STAGEDIR}${EXAMPLESDIR}/gngeorc
- @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.post.mk>
More information about the svn-ports-branches
mailing list