blob: f601035628d7c05d420f01e3b08c5c044358b499 (
plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Created by: alepulver
PORTNAME= advancemame
PORTVERSION= 1.4
PORTREVISION= 3
CATEGORIES= emulators
MASTER_SITES= https://github.com/amadvance/advancemame/releases/download/${DISTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= SDL MAME port with advanced TV and monitor video support
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libexpat.so:textproc/expat2
USES= compiler:c11 gmake ncurses sdl
USE_SDL= sdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-svgalib --disable-fb --disable-alsa --enable-oss \
--disable-kevent
CFLAGS+= -idirafter ${LOCALBASE}/include \
-fcommon
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
DOCSDIR= ${PREFIX}/share/doc/advance
DATADIR= ${PREFIX}/share/advance
PORTDOCS= *
OPTIONS_DEFINE= DOCS FREETYPE SLANG
OPTIONS_DEFINE_i386= ASM
OPTIONS_DEFAULT= FREETYPE
OPTIONS_DEFAULT_i386= ASM
ASM_BUILD_DEPENDS= nasm:devel/nasm
ASM_USE= GCC=yes
ASM_CONFIGURE_ENABLE= asm
FREETYPE_USES= pkgconfig
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2
FREETYPE_CONFIGURE_ENABLE= freetype
SLANG_LIB_DEPENDS= libslang.so:devel/libslang2
SLANG_CONFIGURE_ENABLE= slang
SLANG_LDFLAGS= -lncurses
BINARY_ALIAS= freetype-config=true
DEPRECATED= Heavily outdated and unmaintained
EXPIRATION_DATE= 2021-10-31
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc
USE_GCC= yes
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-lpthread|-pthread| ; \
/prefix/s|^\(docdir\)|#\1| ; \
/prefix/s|^\(mandir\)|#\1|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|@@|@| ; \
/^INSTALL_PROGRAM /s|=.*|= @INSTALL_PROGRAM@| ; \
/^INSTALL_MAN /s|=.*|= @INSTALL_MAN@| ; \
/^INSTALL_DATA /s|=.*|= @INSTALL_DATA@|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|\([[:space:]]\)\($$(bindir)\)|\1$$(DESTDIR)\2| ; \
s|\([[:space:]]\)\($$(pkgdir)\)|\1$$(DESTDIR)\2| ; \
s|\([[:space:]]\)\($$(pkgdocdir)\)|\1$$(DESTDIR)\2| ; \
s|\([[:space:]]\)\($$(mandir)\)|\1$$(DESTDIR)\2| ; \
/WHOLE_CFLAGS_OPT/s|-O2|| ; \
/WHOLE_LDFLAGS/s|-s||' ${WRKSRC}/advance/advance.mak
@${REINPLACE_CMD} -e \
's|-lpthread|-pthread|' ${WRKSRC}/advance/emu.mak
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|