aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/asmon
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-04-20 22:18:31 +0800
committervs <vs@FreeBSD.org>2005-04-20 22:18:31 +0800
commita2670b57f4c19d8c58390763855a68c49feb3056 (patch)
tree059309916d3da80d30aa52cc7fe2a29ea7bec7a4 /sysutils/asmon
parentde781b073716ee7fdd13e371aa43cd312ca82eab (diff)
downloadfreebsd-ports-gnome-a2670b57f4c19d8c58390763855a68c49feb3056.tar.gz
freebsd-ports-gnome-a2670b57f4c19d8c58390763855a68c49feb3056.tar.zst
freebsd-ports-gnome-a2670b57f4c19d8c58390763855a68c49feb3056.zip
Avoid Makefile-patch. I didn't get v0.61 to compile on non-i386, though (kvm-related).
Diffstat (limited to 'sysutils/asmon')
-rw-r--r--sysutils/asmon/Makefile19
-rw-r--r--sysutils/asmon/files/patch-ab24
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