mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
emulators/vba: Fix build with llvm16
- Utilize USES=localbase - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
eccdc51402
commit
15c5abdbf4
1 changed files with 19 additions and 21 deletions
|
@ -12,41 +12,39 @@ WWW= https://web.archive.org/web/20110718045837/http://vba.ngemu.com/
|
||||||
LICENSE= GPLv2+
|
LICENSE= GPLv2+
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
BUILD_DEPENDS= nasm:devel/nasm
|
|
||||||
LIB_DEPENDS= libpng.so:graphics/png
|
|
||||||
|
|
||||||
BROKEN_powerpc= Runaway cc1plus process
|
BROKEN_powerpc= Runaway cc1plus process
|
||||||
BROKEN_sparc64= Runaway cc1plus process
|
BROKEN_sparc64= Runaway cc1plus process
|
||||||
|
|
||||||
USES= gettext gmake sdl
|
BUILD_DEPENDS= nasm:devel/nasm
|
||||||
GNU_CONFIGURE= yes
|
LIB_DEPENDS= libpng.so:graphics/png
|
||||||
|
|
||||||
|
USES= gettext gmake localbase sdl
|
||||||
|
USE_CXXSTD= c++14
|
||||||
USE_SDL= sdl
|
USE_SDL= sdl
|
||||||
|
|
||||||
CPPFLAGS+= -I${LOCALBASE}/include
|
GNU_CONFIGURE= yes
|
||||||
LIBS+= -L${LOCALBASE}/lib -lintl
|
|
||||||
|
LIBS+= -lintl
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/VisualBoyAdvance-${PORTVERSION}
|
|
||||||
SUB_FILES= pkg-message
|
SUB_FILES= pkg-message
|
||||||
|
|
||||||
DATA_FILES= ${WRKSRC}/src/VisualBoyAdvance.cfg
|
WRKSRC= ${WRKDIR}/VisualBoyAdvance-${PORTVERSION}
|
||||||
PROG_FILES= ${WRKSRC}/src/sdl/VisualBoyAdvance
|
|
||||||
PORTDOCS= AUTHORS NEWS README ChangeLog
|
PORTDOCS= AUTHORS NEWS README ChangeLog
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS GTK2 PROFILING
|
OPTIONS_DEFINE= DOCS GTK2 PROFILING
|
||||||
OPTIONS_SUB= yes
|
OPTIONS_SUB= yes
|
||||||
PROFILING_DESC= Enable profiling
|
PROFILING_DESC= Enable profiling
|
||||||
|
|
||||||
GTK2_CONFIGURE_ON= --enable-gtk=2.4
|
|
||||||
GTK2_LIB_DEPENDS= libglademm-2.4.so:devel/libglademm24
|
GTK2_LIB_DEPENDS= libglademm-2.4.so:devel/libglademm24
|
||||||
GTK2_USES= pkgconfig
|
GTK2_USES= pkgconfig
|
||||||
|
GTK2_CONFIGURE_ON= --enable-gtk=2.4
|
||||||
|
GTK2_VARS= PROG_FILES+=${WRKSRC}/src/gtk/gvba \
|
||||||
|
GTK2_DATA_FILES=${WRKSRC}/src/gtk/vba.glade
|
||||||
PROFILING_CONFIGURE_ENABLE= profiling
|
PROFILING_CONFIGURE_ENABLE= profiling
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
DATA_FILES= ${WRKSRC}/src/VisualBoyAdvance.cfg
|
||||||
|
PROG_FILES= ${WRKSRC}/src/sdl/VisualBoyAdvance
|
||||||
.if ${PORT_OPTIONS:MGTK2}
|
|
||||||
PROG_FILES+= ${WRKSRC}/src/gtk/gvba
|
|
||||||
GTK2_DATA_FILES= ${WRKSRC}/src/gtk/vba.glade
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e '/for(int i = 0; i < 16; i++/s| i|&_|g' \
|
@${REINPLACE_CMD} -e '/for(int i = 0; i < 16; i++/s| i|&_|g' \
|
||||||
|
@ -57,12 +55,12 @@ do-install:
|
||||||
${SED} -e 's|filter=0|filter=1|' ${DATA_FILES} > ${DATA_FILES}-default
|
${SED} -e 's|filter=0|filter=1|' ${DATA_FILES} > ${DATA_FILES}-default
|
||||||
${INSTALL_DATA} ${DATA_FILES}-default ${STAGEDIR}${PREFIX}/bin
|
${INSTALL_DATA} ${DATA_FILES}-default ${STAGEDIR}${PREFIX}/bin
|
||||||
|
|
||||||
do-install-GTK2-on:
|
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/VisualBoyAdvance
|
|
||||||
${INSTALL_DATA} ${GTK2_DATA_FILES} ${STAGEDIR}${PREFIX}/share/VisualBoyAdvance
|
|
||||||
|
|
||||||
do-install-DOCS-on:
|
do-install-DOCS-on:
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||||
|
|
||||||
|
do-install-GTK2-on:
|
||||||
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/VisualBoyAdvance
|
||||||
|
${INSTALL_DATA} ${GTK2_DATA_FILES} ${STAGEDIR}${PREFIX}/share/VisualBoyAdvance
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue