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

PORTNAME=   advancemess
PORTVERSION=    0.102.0.1
PORTREVISION=   6
CATEGORIES= emulators
MASTER_SITES=   SF/advancemame/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    SDL MESS port with advanced TV and monitor video support

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

USE_GL=     yes
USES=       gmake
USE_SDL=    sdl
GNU_CONFIGURE=  yes
LDFLAGS+=   -L${LOCALBASE}/lib
CFLAGS+=    -idirafter ${LOCALBASE}/include

OPTIONS_DEFINE= FREETYPE SLANG
SLANG_DESC= Enable sLang support (for video driver)

FREETYPE_CONFIGURE_ENABLE=  freetype
FREETYPE_LIB_DEPENDS=       libfreetype.so:${PORTSDIR}/print/freetype2

SLANG_CONFIGURE_ENABLE= slang
SLANG_LIB_DEPENDS=  libslang.so:${PORTSDIR}/devel/libslang2

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
.endif

post-patch:
    @${REINPLACE_CMD} -E -e '/pkgdocdir/d' \
        -e 's,(bin|man|pkg)dir),DESTDIR)$$(&,' \
        ${WRKSRC}/advance/advance.mak

.include <bsd.port.post.mk>