aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/advancemenu/Makefile
blob: 817618e9130fbdd5420d54d9fe5ecd834cb8551d (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
# Created by: alepulver
# $FreeBSD$

PORTNAME=   advancemenu
PORTVERSION=    2.7
PORTREVISION=   2
CATEGORIES= emulators
MASTER_SITES=   SF/advancemame/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Frontend for AdvanceMAME, MAME, MESS, RAINE

LICENSE=    GPLv2

LIB_DEPENDS=    libexpat.so:${PORTSDIR}/textproc/expat2

USES=       gmake
USE_SDL=    sdl
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-svgalib --disable-fb --disable-alsa --enable-oss \
        --disable-slang --disable-ncurses --disable-kevent

CFLAGS+=    -idirafter ${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PORTDOCS=   *
PLIST_FILES=    bin/advmenu man/man1/advmenu.1.gz

OPTIONS_DEFINE=     DOCS FREETYPE
OPTIONS_DEFINE_i386=    ASM
OPTIONS_DEFAULT=    FREETYPE
OPTIONS_DEFAULT_i386=   ASM

ASM_BUILD_DEPENDS=  nasm:${PORTSDIR}/devel/nasm
ASM_CONFIGURE_ENABLE=   asm
FREETYPE_LIB_DEPENDS=   libfreetype.so:${PORTSDIR}/print/freetype2
FREETYPE_CONFIGURE_ENABLE=  freetype

post-patch:
    @${REINPLACE_CMD} -e \
        's|-lpthread|-pthread|' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e \
        's|@@|@|' ${WRKSRC}/Makefile.in

do-install:
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} advmenu \
        ${STAGEDIR}${PREFIX}/bin)
    (cd ${WRKSRC}/doc && ${INSTALL_MAN} advmenu.1 \
        ${STAGEDIR}${MANPREFIX}/man/man1)
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in HISTORY README RELEASE
    (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
        ${STAGEDIR}${DOCSDIR})
.endfor
    (cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* \
        ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>