blob: bd6b1bce006dadeb99b6e07eeceac5bb570809e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# New ports collection makefile for: vba
# Date Created: 02 September 2003
# Whom: <arundel@gmx.net>
#
# $FreeBSD$
PORTNAME= vba
PORTVERSION= 1.7.1
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= sdl
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 ${WRKSRC}/src/TestEmu
DOC_FILES= COPYING AUTHORS NEWS README ChangeLog INSTALL
pre-everything::
@${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."
@${ECHO_MSG} ""
do-install:
${INSTALL} -d ${TARGET_DIR}
${INSTALL_PROGRAM} ${PROG_FILES} ${TARGET_DIR}
.if !exists (${PREFIX}/bin/VisualBoyAdvance.cfg)
${INSTALL_DATA} ${DATA_FILES} ${TARGET_DIR}
.endif
post-install:
.ifndef(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for filename in ${DOC_FILES}
${INSTALL_MAN} ${WRKSRC}/${filename} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|