aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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