blob: 030cd7306b2904d6a8291f3775f0237cc96c932c (
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
|
# Created by: alepulver
# $FreeBSD$
PORTNAME= advancemame
PORTVERSION= 1.2
PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= SDL MAME port with advanced TV and monitor video support
LICENSE= GPLv2
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
USE_SDL= sdl
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-asm --disable-svgalib --disable-fb \
--disable-alsa --enable-oss --disable-slang \
--disable-ncurses --disable-kevent
DATADIR= ${PREFIX}/share/advance
CFLAGS+= -idirafter ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN_FILES= advdev.1 advj.1 advk.1 advm.1 advmame.1 advs.1
PORTDOCS= *
OPTIONS_DEFINE= FREETYPE DOCS
OPTIONS_DEFAULT=FREETYPE
FREETYPE_CONFIGURE_ENABLE= freetype
FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
BROKEN_powerpc= Does not compile on powerpc
post-patch:
@${REINPLACE_CMD} -e \
's|-lpthread|-pthread|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|@@|@|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
'/\(pkgdocdir\)/s|^|#| ; \
/WHOLE_CFLAGS_OPT/s|-O2|| ; \
/WHOLE_LDFLAGS/s|-s||' ${WRKSRC}/advance/advance.mak
@${REINPLACE_CMD} -e \
's|-lpthread|-pthread|' ${WRKSRC}/advance/emu.mak
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} advj advk advm advmame advs \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN_FILES} \
${STAGEDIR}${MANPREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/support && ${INSTALL_DATA} *.dat ${STAGEDIR}${DATADIR})
.for i in artwork diff image rom sample snap
@${MKDIR} ${STAGEDIR}${DATADIR}/${i}
@${ECHO_CMD} -n > ${STAGEDIR}${DATADIR}/${i}/.keep_me
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \
${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.[ht]* ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|