diff options
author | vs <vs@FreeBSD.org> | 2005-05-24 00:37:51 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-05-24 00:37:51 +0800 |
commit | c9922b4452343a0acb1f73e7d21a18430bc5615d (patch) | |
tree | 12528c5b6e689ae78d4fcddf7b3a9b211ced67cf /misc/wmmand | |
parent | 732136c435c773bad06aac07b928ad631384388f (diff) | |
download | freebsd-ports-gnome-c9922b4452343a0acb1f73e7d21a18430bc5615d.tar.gz freebsd-ports-gnome-c9922b4452343a0acb1f73e7d21a18430bc5615d.tar.zst freebsd-ports-gnome-c9922b4452343a0acb1f73e7d21a18430bc5615d.zip |
Use MAKE_ARGS/do-install
Diffstat (limited to 'misc/wmmand')
-rw-r--r-- | misc/wmmand/Makefile | 7 | ||||
-rw-r--r-- | misc/wmmand/files/patch-aa | 42 |
2 files changed, 7 insertions, 42 deletions
diff --git a/misc/wmmand/Makefile b/misc/wmmand/Makefile index c8e3b1cdabd5..dfa500603675 100644 --- a/misc/wmmand/Makefile +++ b/misc/wmmand/Makefile @@ -18,8 +18,15 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/wmMand USE_X_PREFIX= yes USE_XPM= yes +USE_GMAKE= yes ALL_TARGET= clean all +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \ + INCDIR=-I${X11BASE}/include LIBDIR=-L${X11BASE}/lib MAN1= wmMand.1 +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/wmMand ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/wmMand.1 ${MANPREFIX}/man/man1 + .include <bsd.port.mk> diff --git a/misc/wmmand/files/patch-aa b/misc/wmmand/files/patch-aa deleted file mode 100644 index 209e0a7dada9..000000000000 --- a/misc/wmmand/files/patch-aa +++ /dev/null @@ -1,42 +0,0 @@ ---- Makefile.orig Tue Feb 16 01:43:51 1999 -+++ Makefile Fri Aug 11 02:34:35 2000 -@@ -1,8 +1,8 @@ --CC = gcc --CFLAGS = -O2 -Wall --INCDIR = -I/usr/X11R6/include/X11 --DESTDIR= /usr/X11R6 --LIBDIR = -L/usr/X11R6/lib -+CC ?= gcc -+CFLAGS ?= -O2 -+INCDIR = -I${X11BASE}/include -+DESTDIR= ${PREFIX} -+LIBDIR = -L${X11BASE}/lib - # for linux - LIBS = -lXpm -lX11 -lXext - # for Solaris -@@ -12,14 +12,14 @@ - - - .c.o: -- $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) -+ $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR) - - - all: wmMand.o wmMand - - wmMand.o: wmMand_master.xpm wmMand_mask.xbm - wmMand: $(OBJS) -- $(CC) $(CFLAGS) $(SYSTEM) -o wmMand $^ $(INCDIR) $(LIBDIR) $(LIBS) -+ $(CC) $(CFLAGS) $(SYSTEM) -o wmMand $(OBJS) $(LIBDIR) $(LIBS) - - clean: - for i in $(OBJS) ; do \ -@@ -28,6 +28,6 @@ - rm -f wmMand - - install:: wmMand -- install -s -m 0755 wmMand $(DESTDIR)/bin -- install -m 0644 wmMand.1 $(DESTDIR)/man/man1 -+ ${BSD_INSTALL_PROGRAM} wmMand $(DESTDIR)/bin -+ ${BSD_INSTALL_MAN} wmMand.1 $(DESTDIR)/man/man1 - |