2003-10-03 15:07:59 +02:00
|
|
|
# New ports collection makefile for: vba
|
|
|
|
# Date Created: 02 September 2003
|
|
|
|
# Whom: <arundel@gmx.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= vba
|
2004-02-17 11:06:24 +01:00
|
|
|
PORTVERSION= 1.7.1
|
2004-05-14 13:54:26 +02:00
|
|
|
PORTREVISION= 2
|
2003-10-03 15:07:59 +02:00
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= VisualBoyAdvance-src-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= arundel@gmx.net
|
2004-05-14 13:54:26 +02:00
|
|
|
COMMENT= Open Source Gameboy Advance emulator
|
2003-10-03 15:07:59 +02:00
|
|
|
|
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-03-08 02:01:31 +01:00
|
|
|
USE_SDL= sdl
|
2003-10-03 15:07:59 +02:00
|
|
|
WRKSRC= ${WRKDIR}/VisualBoyAdvance-${PORTVERSION}
|
|
|
|
|
|
|
|
TARGET_DIR= ${PREFIX}/bin/
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-05-14 13:54:26 +02:00
|
|
|
.if (${OSVERSION} < 500035)
|
2003-10-03 15:07:59 +02:00
|
|
|
CFLAGS+= -O0
|
2004-05-14 13:54:26 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifndef(PROFILING)
|
|
|
|
CONFIGURE_ARGS= --without-profiling --disable-dev
|
2003-10-03 15:07:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
DATA_FILES= ${WRKSRC}/src/VisualBoyAdvance.cfg
|
2004-02-17 11:06:24 +01:00
|
|
|
PROG_FILES= ${WRKSRC}/src/VisualBoyAdvance ${WRKSRC}/src/TestEmu
|
|
|
|
DOC_FILES= COPYING AUTHORS NEWS README ChangeLog INSTALL
|
2003-10-03 15:07:59 +02:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
2004-05-14 13:54:26 +02:00
|
|
|
@${ECHO_MSG} "You can enable profiling by defining PROFILING."
|
2003-10-03 15:07:59 +02:00
|
|
|
@${ECHO_MSG} ""
|
2004-05-14 13:54:26 +02:00
|
|
|
@${ECHO_MSG} "Due to a bug in gcc2 optimsations other than -O0 will be ignored on"
|
|
|
|
@${ECHO_MSG} "FreeBSD releases that didn't ship with gcc3 (prior 500035)."
|
2003-10-03 15:07:59 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
do-install:
|
2004-02-17 11:06:24 +01:00
|
|
|
${INSTALL} -d ${TARGET_DIR}
|
|
|
|
${INSTALL_PROGRAM} ${PROG_FILES} ${TARGET_DIR}
|
2004-05-14 13:49:01 +02:00
|
|
|
${CP} ${DATA_FILES} ${DATA_FILES}-default
|
|
|
|
${INSTALL_DATA} ${DATA_FILES}-default ${TARGET_DIR}
|
2003-10-03 15:07:59 +02:00
|
|
|
|
|
|
|
post-install:
|
2004-01-21 23:43:20 +01:00
|
|
|
.ifndef(NOPORTDOCS)
|
2004-05-15 07:08:48 +02:00
|
|
|
${INSTALL} -d ${DOCSDIR}
|
2004-02-17 11:06:24 +01:00
|
|
|
.for filename in ${DOC_FILES}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${filename} ${DOCSDIR}
|
|
|
|
.endfor
|
2003-10-03 15:07:59 +02:00
|
|
|
.endif
|
2004-05-14 13:49:01 +02:00
|
|
|
${CAT} ${PKGMESSAGE}
|
2003-10-03 15:07:59 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|