mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
0d78a6b671
now I only need to finish modules!
31 lines
670 B
Makefile
31 lines
670 B
Makefile
COMMENT= writes any log live onto the background
|
|
V= 0.6
|
|
DISTNAME= xrootconsole-${V}
|
|
REVISION= 3
|
|
CATEGORIES= x11
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= X11 c util
|
|
|
|
SITES= ${SITE_SOURCEFORGE:=xrootconsole/}
|
|
|
|
NO_TEST= 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>
|