mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 09:10:32 -04:00
The conflict checks compare the patterns first against the package names without version (as reported by "pkg query "%n"), then - if there was no match - agsinst the full package names including the version (as reported by "pkg query "%n-%v"). Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter for the bash package in any version. But that pattern is functionally identical with just "bash". Approved by: portmgr (blanket)
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# Created by: Pavel I Volkov <pavelivolkov@googlemail.com>
|
|
|
|
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>
|