freebsd-ports/sysutils/powerman/Makefile
Alexey Dokuchaev fce4ea0ff2 - Update to version 2.3.20 (project moved to GitHub)
- Provide detailed port description (obtained upstream)
- Remove bogus ${DESTDIR} reference from --localstatedir
- Install stripped binaries via `install-strip' (and
  teach configure script that elftoolchain's strip(1)
  can strip libraries); sort pkg-plist while here

PR:	199250
2015-04-12 09:23:44 +00:00

35 lines
876 B
Makefile

# Created by: Greg Lewis <glewis@FreeBSD.org>
# $FreeBSD$
PORTNAME= powerman
PORTVERSION= 2.3.20
CATEGORIES= sysutils parallel
MASTER_SITES= https://github.com/chaos/powerman/releases/download/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool for doing remote power control
LICENSE= GPLv2 # (or later)
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
USES= libtool perl5
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-httppower --localstatedir=/var \
--with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
USE_RC_SUBR= powerman
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e 's,GREP "GNU strip",EGREP "GNU|elftoolchain",' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/^install-data-am/s|:.*|:|' ${WRKSRC}/scripts/Makefile.in
.include <bsd.port.mk>