2018-05-17 10:21:41 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2018/05/17 10:21:42 espie Exp $
|
2005-12-26 11:30:12 +00:00
|
|
|
|
2007-09-15 20:04:18 +00:00
|
|
|
COMMENT= writes any log live onto the background
|
2006-01-22 15:11:48 +00:00
|
|
|
V= 0.6
|
|
|
|
DISTNAME= xrootconsole-${V}
|
2018-05-17 10:21:41 +00:00
|
|
|
REVISION= 3
|
2012-09-28 18:58:59 +00:00
|
|
|
CATEGORIES= x11
|
2005-12-26 11:30:12 +00:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2012-09-28 18:58:59 +00:00
|
|
|
WANTLIB= X11 c util
|
2005-12-26 11:30:12 +00:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xrootconsole/}
|
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST= Yes
|
2005-12-26 11:30:12 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I$(X11BASE)/include
|
|
|
|
|
|
|
|
OBJS = main.o util.o
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
2006-01-22 15:11:48 +00:00
|
|
|
${CC} ${CFLAGS} -c main.c -DXROOTCONSOLE_VERSION=\"${V}\"; \
|
|
|
|
${CC} ${CFLAGS} -c util.c -DXROOTCONSOLE_VERSION=\"${V}\"; \
|
2012-09-28 18:58:59 +00:00
|
|
|
${CC} ${LDFLAGS} ${OBJS} -L$(X11BASE)/lib -lX11 -lutil -o xrootconsole
|
2005-12-26 11:30:12 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xrootconsole ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/xrootconsole.1 ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|