1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/emulators/dynamips/Makefile
Pawel Pekala 8fa5b9d5df - Add staging support
- Convert to new LIB_DEPENDS format, USES=gmake
- Register CONFLICTS
- Define DOCS option
2014-04-09 15:15:50 +00:00

52 lines
1.4 KiB
Makefile

# Created by: Max Khon <fjoe@FreeBSD.org>
# $FreeBSD$
PORTNAME= dynamips
DISTVERSION= 0.2.7
PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= http://www.ipflow.utc.fr/dynamips/
MAINTAINER= ports@FreeBSD.org
COMMENT= Cisco 3600/7200 Simulator
LIB_DEPENDS= libelf.so:${PORTSDIR}/devel/libelf
USES= gmake
ALL_TARGET= ${PORTNAME} nvram_export
MAKE_ENV= DYNAMIPS_ARCH=${DYNAMIPS_ARCH}\
PTHREAD_LIBS=${PTHREAD_LIBS}
MAKE_JOBS_UNSAFE= yes
CONFLICTS= dynamips-community-[0-9]* dynamips-devel-[0-9]*
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= README README.hypervisor
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
DYNAMIPS_ARCH= "x86"
.elif ${ARCH} == "amd64"
DYNAMIPS_ARCH= "amd64"
.else
DYNAMIPS_ARCH= "nojit"
.endif
MAKE_ENV+= HAS_POSIX_MEMALIGN=1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/nvram_export ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.hypervisor ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/nvram_export.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/hypervisor_mode.7 ${STAGEDIR}${PREFIX}/man/man7
.include <bsd.port.post.mk>