diff options
author | Volker Stolz <vs@FreeBSD.org> | 2005-04-20 14:18:31 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2005-04-20 14:18:31 +0000 |
commit | da2a7f65e4f09103f4e2632e6bbafaca62caf102 (patch) | |
tree | 7f227a024473e67740b517fec5ec7517fdc550c9 /sysutils/asmon | |
parent | ffd8862a559a36f5264de2b3b505c4da564e10fa (diff) | |
download | ports-da2a7f65e4f09103f4e2632e6bbafaca62caf102.tar.gz ports-da2a7f65e4f09103f4e2632e6bbafaca62caf102.zip |
Notes
Diffstat (limited to 'sysutils/asmon')
-rw-r--r-- | sysutils/asmon/Makefile | 19 | ||||
-rw-r--r-- | sysutils/asmon/files/patch-ab | 24 |
2 files changed, 13 insertions, 30 deletions
diff --git a/sysutils/asmon/Makefile b/sysutils/asmon/Makefile index 682eee0685c2..950ee8ddef71 100644 --- a/sysutils/asmon/Makefile +++ b/sysutils/asmon/Makefile @@ -15,16 +15,23 @@ MASTER_SITE_SUBDIR= apps/asmon MAINTAINER= ports@FreeBSD.org COMMENT= A swallowable applet monitors the CPU usage, memory and swap, etc -PLIST_FILES= bin/asmon +USE_XPM= yes USE_X_PREFIX= yes +USE_REINPLACE= yes -.include <bsd.port.pre.mk> - -USE_XPM= yes +BUILD_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/asmon +CFLAGS+= -I${X11BASE}/include USE_GMAKE= yes -ALL_TARGET= clean all +ALL_TARGET= clean asmon +MAKE_ARGS+= LIBDIR="-L${X11BASE}/lib" \ + SOLARIS_LIBS=-lkvm + +PLIST_FILES= bin/asmon + +post-patch: + ${REINPLACE_CMD} -e 's:gcc:${CC} ${CFLAGS}:' ${BUILD_WRKSRC}/Makefile do-install: ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g kmem -m 2755 ${WRKSRC}/asmon/asmon ${PREFIX}/bin -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/asmon/files/patch-ab b/sysutils/asmon/files/patch-ab deleted file mode 100644 index a331b5a3c60e..000000000000 --- a/sysutils/asmon/files/patch-ab +++ /dev/null @@ -1,24 +0,0 @@ -*** Makefile.orig Tue Jun 8 15:54:04 1999 ---- Makefile Tue Jun 8 15:54:36 1999 -*************** -*** 0 **** ---- 1,20 ---- -+ LIBDIR = -L${X11BASE}/lib -+ LIBS = -lXpm -lXext -lX11 -lkvm -+ OBJS = asmon/asmon.o \ -+ wmgeneral/wmgeneral.o \ -+ wmgeneral/misc.o \ -+ wmgeneral/list.o -+ -+ all: asmon -+ -+ .c.o: -+ $(CC) $(CFLAGS) -c -Wall -I${X11BASE}/include $< -o $*.o -+ -+ asmon: $(OBJS) -+ $(CC) -o asmon/asmon $^ $(LIBDIR) $(LIBS) -+ -+ clean:: -+ for i in $(OBJS) ; do \ -+ rm -f $$i;\ -+ done |