blob: 47a877250b0196e9c61789b2e595499fff7aa3e6 (
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
59
|
PORTNAME= dynamips
PORTVERSION= 0.2.17
DISTVERSIONPREFIX= v
CATEGORIES= emulators
PKGNAMESUFFIX= -community
MAINTAINER= pavelivolkov@gmail.com
COMMENT= Cisco 1700/2600/3600/3700/7200 Simulator
LICENSE= GPLv2
BROKEN_riscv64= fails to compile: common/dynamips_common.h:71:2: Please define your architecture!
BROKEN_sparc64= fails to compile: invokes x86 assembler
LIB_DEPENDS= libelf.so:devel/libelf
CFLAGS+= -I${PREFIX}/include/libelf
CONFLICTS= dynamips dynamips-devel
USES= cmake:insource
USE_GITHUB= yes
OPTIONS_DEFINE= DOCS
MAKE_JOBS_UNSAFE= yes
GH_ACCOUNT= GNS3
CMAKE_ARGS+= -DDYNAMIPS_CODE=${DYNAMIPS_CODE} -DDYNAMIPS_ARCH=${DYNAMIPS_ARCH}
.include <bsd.port.pre.mk>
PLIST_FILES= bin/${PORTNAME} bin/nvram_export \
man/man1/${PORTNAME}.1.gz man/man1/nvram_export.1.gz \
man/man7/hypervisor_mode.7.gz
PORTDOCS= *
DYNAMIPS_CODE= stable
.if ${OPSYS} == FreeBSD
DYNAMIPS_ARCH= nojit
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${DYNAMIPS_CODE}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${DYNAMIPS_CODE}/nvram_export ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/nvram_export.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/hypervisor_mode.7 ${STAGEDIR}${MANPREFIX}/man/man7
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in README.md README.hypervisor RELEASE-NOTES ChangeLog MAINTAINERS
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.post.mk>
|