blob: 7f9d4f446d36dd1434e68d7d8bba479a835627fe (
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
|
# Created by: Janni
# $FreeBSD$
PORTNAME= gxemul
PORTVERSION= 0.6.0.1
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://gxemul.sourceforge.net/src/ \
http://gavare.se/gxemul/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Instruction-level machine emulator
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GCC= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --without-unittests
ALL_TARGET= build
MAKE_JOBS_UNSAFE= yes
# svgalib installs vga.h, which conflicts with gxemul when building with
# a virtual VGA adaptor.
CONFLICTS= svgalib-[0-9]*
PORTDOCS= *
PLIST_FILES= bin/gxemul man/man1/gxemul.1.gz
OPTIONS_DEFINE= DOCS X11
OPTIONS_DEFAULT= X11
X11_USE= xorg=x11
X11_CONFIGURE_OFF= --disable-x
post-patch:
@${REINPLACE_CMD} -Ee \
's|/usr/X11R6|${LOCALBASE}|g; \
/CXXFLAGS=/s|-O[0-9]?||g; \
/CXXFLAGS=/s|-f[a-zA-Z-]+||g' ${WRKSRC}/configure
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} gxemul \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/man && ${INSTALL_MAN} gxemul.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|