freebsd-ports/net/wmwlmon/Makefile

45 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wmwlmon
# Date created: 04 May 2006
# Whom: Marcus Glocker <marcus@nazgul.ch>
#
# $FreeBSD$
#
PORTNAME= wmwlmon
PORTVERSION= 0.9
PORTREVISION= 4
CATEGORIES= net windowmaker
MASTER_SITES= http://www.nazgul.ch/dev/ \
http://dougbarton.us/Downloads/
DISTNAME= wmwlmon-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= DockApp showing the state of a wireless network device
USE_XORG= x11 xpm
MAN1= wmwlmon.1
PLIST_FILES= bin/wmwlmon
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600100
IGNORE= needs WLAN infrastructure from 6.0-RELEASE or newer
.elif ${OSVERSION} > 700047
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-wl.c ${PATCHDIR}/extra-patch-wmwlmon.1
pre-everything::
@${ECHO_CMD} "========================================================"
@${ECHO_CMD} "On FreeBSD > 700047 there is no wi(4) support"
@${ECHO_CMD} "========================================================"
.endif
post-patch:
${REINPLACE_CMD} -e 's#/usr/X11R6#${LOCALBASE}#g' \
-e 's#/usr/local#${LOCALBASE}#g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wmwlmon ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/wmwlmon.1 ${MANPREFIX}/man/man1
.include <bsd.port.post.mk>