Lines 2-9
Link Here
|
2 |
# $FreeBSD: head/emulators/gxemul/Makefile 360915 2014-07-06 14:55:37Z bapt $ |
2 |
# $FreeBSD: head/emulators/gxemul/Makefile 360915 2014-07-06 14:55:37Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= gxemul |
4 |
PORTNAME= gxemul |
5 |
PORTVERSION= 0.6.0 |
5 |
PORTVERSION= 0.6.0.1 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= emulators |
6 |
CATEGORIES= emulators |
8 |
MASTER_SITES= http://gxemul.sourceforge.net/src/ \ |
7 |
MASTER_SITES= http://gxemul.sourceforge.net/src/ \ |
9 |
http://gavare.se/gxemul/src/ |
8 |
http://gavare.se/gxemul/src/ |
Lines 11-49
Link Here
|
11 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
12 |
COMMENT= Instruction-level machine emulator |
11 |
COMMENT= Instruction-level machine emulator |
13 |
|
12 |
|
14 |
OPTIONS_DEFINE= X11 DOCS |
13 |
LICENSE= BSD3CLAUSE |
15 |
OPTIONS_DEFAULT= X11 |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
16 |
|
15 |
|
|
|
16 |
USE_GCC= yes |
17 |
HAS_CONFIGURE= yes |
17 |
HAS_CONFIGURE= yes |
|
|
18 |
CONFIGURE_ARGS= --without-unittests |
18 |
ALL_TARGET= build |
19 |
ALL_TARGET= build |
19 |
MAKE_JOBS_UNSAFE= yes |
20 |
MAKE_JOBS_UNSAFE= yes |
20 |
|
21 |
|
21 |
PORTDOCS= * |
|
|
22 |
PLIST_FILES= bin/gxemul \ |
23 |
man/man1/gxemul.1.gz |
24 |
|
25 |
USE_GCC= yes |
26 |
|
27 |
# svgalib installs vga.h, which conflicts with gxemul when building with |
22 |
# svgalib installs vga.h, which conflicts with gxemul when building with |
28 |
# a virtual VGA adaptor. |
23 |
# a virtual VGA adaptor. |
29 |
CONFLICTS= svgalib-[0-9]* |
24 |
CONFLICTS= svgalib-[0-9]* |
30 |
|
25 |
|
31 |
X11_USE= xorg=x11 |
26 |
PORTDOCS= * |
32 |
X11_CONFIGURE_OFF=--disable-x |
27 |
PLIST_FILES= bin/gxemul man/man1/gxemul.1.gz |
|
|
28 |
|
29 |
OPTIONS_DEFINE= DOCS X11 |
30 |
OPTIONS_DEFAULT= X11 |
31 |
|
32 |
X11_USE= xorg=x11 |
33 |
X11_CONFIGURE_OFF= --disable-x |
33 |
|
34 |
|
34 |
post-patch: |
35 |
post-patch: |
35 |
@${REINPLACE_CMD} -Ee \ |
36 |
@${REINPLACE_CMD} -Ee \ |
36 |
's|/usr/X11R6|${LOCALBASE}|g; \ |
37 |
's|/usr/X11R6|${LOCALBASE}|g; \ |
37 |
s|-O[0-9]?||g; \ |
38 |
/CXXFLAGS=/s|-O[0-9]?||g; \ |
38 |
s|-f[a-zA-Z-]+||g' ${WRKSRC}/configure |
39 |
/CXXFLAGS=/s|-f[a-zA-Z-]+||g' ${WRKSRC}/configure |
39 |
|
40 |
|
40 |
do-install: |
41 |
do-install: |
41 |
${INSTALL_PROGRAM} ${WRKSRC}/gxemul ${STAGEDIR}${PREFIX}/bin |
42 |
(cd ${WRKSRC} && ${INSTALL_PROGRAM} gxemul \ |
42 |
${INSTALL_DATA} ${WRKSRC}/man/gxemul.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 |
43 |
${STAGEDIR}${PREFIX}/bin) |
43 |
${MKDIR} ${STAGEDIR}${DOCSDIR}/components \ |
44 |
(cd ${WRKSRC}/man && ${INSTALL_MAN} gxemul.1 \ |
44 |
${STAGEDIR}${DOCSDIR}/machines |
45 |
${STAGEDIR}${MAN1PREFIX}/man/man1) |
45 |
${INSTALL_DATA} ${WRKSRC}/doc/components/* ${STAGEDIR}${DOCSDIR}/components |
46 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
46 |
${INSTALL_DATA} ${WRKSRC}/doc/machines/* ${STAGEDIR}${DOCSDIR}/machines |
47 |
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . \ |
47 |
${INSTALL_DATA} `find ${WRKSRC}/doc/ -type f -depth 1` ${STAGEDIR}${DOCSDIR} |
48 |
${STAGEDIR}${DOCSDIR}) |
48 |
|
49 |
|
49 |
.include <bsd.port.mk> |
50 |
.include <bsd.port.mk> |