52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
|
# New ports collection makefile for: freeipmi
|
||
|
# Date created: 20/Oct/2004
|
||
|
# Whom: Dmitry Frolov <frol@nov.net>
|
||
|
#
|
||
|
# $FreeBSD$
|
||
|
#
|
||
|
|
||
|
PORTNAME= freeipmi
|
||
|
PORTVERSION= 0.1.3
|
||
|
CATEGORIES= sysutils
|
||
|
MASTER_SITES= ftp://ftp.californiadigital.com/pub/${PORTNAME}/download/${PORTVERSION}/
|
||
|
|
||
|
PATCH_SITES= ftp://ftp.riss-telecom.ru/pub/patches/
|
||
|
PATCHFILES= ${DISTNAME}-fbsd.diff
|
||
|
|
||
|
MAINTAINER= frolov@riss-telecom.ru
|
||
|
COMMENT= Library and tools to support IPMI-capable hardware
|
||
|
|
||
|
LIB_DEPENDS+= guile:${PORTSDIR}/lang/guile
|
||
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone
|
||
|
|
||
|
USE_REINPLACE= yes
|
||
|
USE_LIBTOOL_VER= 15
|
||
|
USE_GMAKE= yes
|
||
|
GNU_CONFIGURE= yes
|
||
|
INSTALLS_SHLIB= yes
|
||
|
PLIST_SUB+= SHLIBVER=${SHLIBVER} RUNDIR=${RUNDIR} LOGDIR=${LOGDIR}
|
||
|
MAN1+= bmc-config.1 bmc-info.1 fish.1 sel.1 sensors.1
|
||
|
MAN5+= ipmipower.conf.5
|
||
|
MAN8+= bmc-watchdog.8 ipmipower.8 ipmiping.8 rmcpping.8
|
||
|
INFO+= freeipmi
|
||
|
PORTDOCS= *
|
||
|
PKGDEINSTALL= ${PKGINSTALL}
|
||
|
|
||
|
OPTIONS+= IOPERM "Use i386_set_ioperm(2) instead of io(4)" off
|
||
|
|
||
|
SHLIBVER= 1
|
||
|
|
||
|
.include <bsd.port.pre.mk>
|
||
|
|
||
|
.if defined(WITH_IOPERM)
|
||
|
MYDEFS+= -DUSE_IOPERM
|
||
|
.endif
|
||
|
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include ${MYDEFS}" \
|
||
|
LDFLAGS="-L${LOCALBASE}/lib -largp"
|
||
|
|
||
|
post-install:
|
||
|
@${SETENV} PKG_PREFIX=${PREFIX} \
|
||
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||
|
|
||
|
.include <bsd.port.post.mk>
|