0fada05abc
Sebastian Trahm <inthisdefiance at gmx.net>
39 lines
922 B
Makefile
39 lines
922 B
Makefile
# $OpenBSD: Makefile,v 1.3 2006/01/22 15:11:48 sturm Exp $
|
|
|
|
COMMENT= "writes any log live onto the background"
|
|
V= 0.6
|
|
DISTNAME= xrootconsole-${V}
|
|
PKGNAME= ${DISTNAME}p0
|
|
CATEGORIES= x11
|
|
|
|
MAINTAINER= Sebastian Trahm <inthisdefiance@gmx.net>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= X11 c util
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xrootconsole/}
|
|
|
|
NO_REGRESS= Yes
|
|
USE_X11= Yes
|
|
|
|
CFLAGS+= -I$(X11BASE)/include
|
|
|
|
OBJS = main.o util.o
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && \
|
|
${CC} ${CFLAGS} -c main.c -DXROOTCONSOLE_VERSION=\"${V}\"; \
|
|
${CC} ${CFLAGS} -c util.c -DXROOTCONSOLE_VERSION=\"${V}\"; \
|
|
${CC} ${LDFLAGS} ${OBJS} -L$(X11BASE)/lib -lX11 -lutil -o xrootconsole;
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xrootconsole ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/xrootconsole.1 ${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|