diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-10-03 13:07:59 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-10-03 13:07:59 +0000 |
commit | 0e78f2abe294f40c373343e0af27217db7e6be61 (patch) | |
tree | e38d04ff0cf662dec2b1b96c9d25bc2f9e9a0d69 /emulators/vba/Makefile | |
parent | 275be4db98edb4d981e5a76ab7f72f98fd306a04 (diff) | |
download | ports-0e78f2abe294f40c373343e0af27217db7e6be61.tar.gz ports-0e78f2abe294f40c373343e0af27217db7e6be61.zip |
Notes
Diffstat (limited to 'emulators/vba/Makefile')
-rw-r--r-- | emulators/vba/Makefile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/emulators/vba/Makefile b/emulators/vba/Makefile new file mode 100644 index 000000000000..1bb4348f04bd --- /dev/null +++ b/emulators/vba/Makefile @@ -0,0 +1,76 @@ +# New ports collection makefile for: vba +# Date Created: 02 September 2003 +# Whom: <arundel@gmx.net> +# +# $FreeBSD$ + +PORTNAME= vba +PORTVERSION= 1.6a +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= VisualBoyAdvance-src-${PORTVERSION} + +MAINTAINER= arundel@gmx.net +COMMENT= Currently the best Gameboy Advance emulator! + +BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png + +USE_X_PREFIX= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +USE_SDL= yes +WRKSRC= ${WRKDIR}/VisualBoyAdvance-${PORTVERSION} + +TARGET_DIR= ${PREFIX}/bin/ + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500035 +CFLAGS+= -O0 +.else +CLAGS+= +.endif + +DATA_FILES= ${WRKSRC}/src/VisualBoyAdvance.cfg +PROG_FILES= ${WRKSRC}/src/VisualBoyAdvance +DOC_FILES= ${WRKSRC}/COPYING ${WRKSRC}/COPYRIGHT.TXT ${WRKSRC}/NEWS ${WRKSRC}/README + +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} "VisualBoyAdvance has the following tunable option(s):" + @${ECHO_MSG} "" + @${ECHO_MSG} "--enable-gp enable GP32 emulation (default is NO)" + @${ECHO_MSG} "--enable-c-core enable C core (default is YES)" + @${ECHO_MSG} "--enable-dev enable development features (default is YES)" + @${ECHO_MSG} "--with-mmx use MMX (default is NO)" + @${ECHO_MSG} "--with-profiling enable profiling (default is YES)" + @${ECHO_MSG} "--with-sdl-prefix=PFX Prefix where SDL is installed (optional)" + @${ECHO_MSG} "--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)" + @${ECHO_MSG} "--disable-sdltest Do not try to compile and run a test SDL program" + @${ECHO_MSG} "--with-x use the X Window System" + @${ECHO_MSG} "" + @${ECHO_MSG} "GCC must be 3.x or greater in order to compile GBA.cpp with -O2. Earlier" + @${ECHO_MSG} "versions have a problem during optimization that requires an absurd" + @${ECHO_MSG} "ammount of memory and usually ends up crashing the compiler/computer" + @${ECHO_MSG} "" + @${ECHO_MSG} "Note by MAINTAINER: Currently everything < 500035 is being build with -O0" + @${ECHO_MSG} "flag. The options above are untested and probably don't work" + @${ECHO_MSG} "" + +do-build: + cd ${WRKSRC} && ${GMAKE} + +do-install: + ${INSTALL} -d ${TARGET_DIR} && \ + ${INSTALL_PROGRAM} ${PROG_FILES} ${TARGET_DIR} && \ + ${INSTALL_DATA} ${DATA_FILES} ${TARGET_DIR} && \ + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${DOC_FILES} ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> |