freebsd-ports/net/wmwave/Makefile
Robert Clausecker 3ed49e6414 net/wmwave: fix build with -fno-common
While we are at it:

 - define LICENSE
 - switch to USES=localbase
 - add missing include for errx()

PR:		267588
MFH:		2023Q1
Approved by:	build fix blanket, maintainer timeout
Approved by:	flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38511
2023-02-14 21:18:56 +01:00

31 lines
804 B
Makefile

PORTNAME= wmwave
DISTVERSION= 0-4
PORTREVISION= 7
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= benjsc@FreeBSD.org
COMMENT= Display 802.11 status in the WindowMaker Dock
WWW= https://sourceforge.net/projects/wmwave/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= localbase:ldflags xorg
USE_XORG= x11 xext xpm
PLIST_FILES= bin/wmwave man/man1/wmwave.1.gz
WRKSRC= ${WRKDIR}/${PORTNAME}
CFLAGS+= -DWICACHE
LDFLAGS+= -lX11 -lXpm -lXext -lm
do-build:
${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/${PORTNAME}.c ${WRKSRC}/wmgeneral.c \
-o ${WRKSRC}/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/wmwave.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>