aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xbanner
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-01-09 22:48:54 +0800
committervanilla <vanilla@FreeBSD.org>2014-01-09 22:48:54 +0800
commita6dff2cd2592b3ab0f27912ce940fbd6b634793b (patch)
treec5a1df43cdad387744b4ceb00662fb30bee791f4 /x11/xbanner
parentd31a11de65c2450a375b17b7f8d8eb6fa6b7ca5a (diff)
downloadfreebsd-ports-gnome-a6dff2cd2592b3ab0f27912ce940fbd6b634793b.tar.gz
freebsd-ports-gnome-a6dff2cd2592b3ab0f27912ce940fbd6b634793b.tar.zst
freebsd-ports-gnome-a6dff2cd2592b3ab0f27912ce940fbd6b634793b.zip
Support stagedir.
Approved by: portmgr (blanket infrastructure)
Diffstat (limited to 'x11/xbanner')
-rw-r--r--x11/xbanner/Makefile13
-rw-r--r--x11/xbanner/files/patch-aa171
2 files changed, 70 insertions, 114 deletions
diff --git a/x11/xbanner/Makefile b/x11/xbanner/Makefile
index a514a2c32eaa..4d0c09b6075a 100644
--- a/x11/xbanner/Makefile
+++ b/x11/xbanner/Makefile
@@ -14,7 +14,6 @@ COMMENT= Make your XDM login screen look beautiful
USE_XORG= xpm x11
-NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@@ -23,14 +22,14 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKSRC}/samples/XBanner.ad \
- ${PREFIX}/lib/X11/app-defaults/XBanner
+ ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/XBanner
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${PREFIX}/share/doc/XBanner
- ${INSTALL_DATA} ${WRKSRC}/QuickStart ${PREFIX}/share/doc/XBanner
- ${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/XBanner
- @${MKDIR} ${PREFIX}/share/examples/XBanner
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/XBanner
+ ${INSTALL_DATA} ${WRKSRC}/QuickStart ${STAGEDIR}${PREFIX}/share/doc/XBanner
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${PREFIX}/share/doc/XBanner
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/XBanner
${INSTALL_DATA} ${WRKSRC}/samples/_other_ideas/* \
- ${PREFIX}/share/examples/XBanner
+ ${STAGEDIR}${PREFIX}/share/examples/XBanner
.endif
.include <bsd.port.mk>
diff --git a/x11/xbanner/files/patch-aa b/x11/xbanner/files/patch-aa
index 291e999b9004..231e7a92c1cc 100644
--- a/x11/xbanner/files/patch-aa
+++ b/x11/xbanner/files/patch-aa
@@ -1,107 +1,64 @@
-*** Makefile.orig Tue May 13 00:55:59 1997
---- Makefile Sat Dec 18 03:25:54 1999
-***************
-*** 6,27 ****
-
- .SUFFIXES: .c .o
-
-! CC =gcc
- RM =rm
- LN =ln
-! INSTALL =install
- CP =cp
- TAR =tar
- GZIP =gzip
-
- # Binary directory for make install
-! BINDIR =/usr/local/bin/X11
-
- # Library directories for Linux
-! XLIBDIR =/usr/X11R6/lib
-
- # Include directory for gcc (if you get X11/Xlib.h: file not found)
-! #INCDIR =-I/usr/X11R6/include
-
- # Library directories for the Ultrix (probably most Unixes)
- #XLIBDIR =/usr/lib/X11
---- 6,27 ----
-
- .SUFFIXES: .c .o
-
-! CC ?=gcc
- RM =rm
- LN =ln
-! INSTALL ?=install
- CP =cp
- TAR =tar
- GZIP =gzip
-
- # Binary directory for make install
-! BINDIR =$(PREFIX)/bin
-
- # Library directories for Linux
-! XLIBDIR =$(LOCALBASE)/lib
-
- # Include directory for gcc (if you get X11/Xlib.h: file not found)
-! INCDIR =-I$(LOCALBASE)/include
-
- # Library directories for the Ultrix (probably most Unixes)
- #XLIBDIR =/usr/lib/X11
-***************
-*** 34,40 ****
- $(CC) $(INCDIR) $(CFLAGS) $(XPM) -c $*.c
-
- # Linux CFLAGS (actually generic gcc)
-! CFLAGS=-Wall -O2
-
- # Want static binaries?
- #CFLAGS=-Wall -O2 -static
---- 34,40 ----
- $(CC) $(INCDIR) $(CFLAGS) $(XPM) -c $*.c
-
- # Linux CFLAGS (actually generic gcc)
-! #CFLAGS=-Wall -O2
-
- # Want static binaries?
- #CFLAGS=-Wall -O2 -static
-***************
-*** 48,54 ****
- # Most Linux users won't be troubled by this. Actually almost nobody will
- # be troubled by this. It just might save me a couple of emails...
- # Just change it to wherever your libX11.a resides.
-! LDFLAGS=-L$(XLIBDIR)
-
- all: xbanner freetemp random_effect xb_check
-
---- 48,54 ----
- # Most Linux users won't be troubled by this. Actually almost nobody will
- # be troubled by this. It just might save me a couple of emails...
- # Just change it to wherever your libX11.a resides.
-! LDFLAGS+=-L$(XLIBDIR)
-
- all: xbanner freetemp random_effect xb_check
-
-***************
-*** 70,79 ****
- xb_check: xb_check.o
- $(CC) $(CFLAGS) -o xb_check xb_check.o
-
-! install: freetemp xbanner xb_check
-! $(INSTALL) --strip --mode "0755" --owner root --group bin freetemp $(BINDIR)/freetemp
-! $(INSTALL) --strip --mode "0755" --owner root --group bin xbanner $(BINDIR)/xbanner
-! $(INSTALL) --strip --mode "0755" --owner root --group bin xb_check $(BINDIR)/xb_check
-
- strip: exe
- strip xbanner freetemp xb_check random_effect
---- 70,80 ----
- xb_check: xb_check.o
- $(CC) $(CFLAGS) -o xb_check xb_check.o
-
-! install: freetemp xbanner xb_check random_effect
-! ${BSD_INSTALL_PROGRAM} freetemp $(BINDIR)/freetemp
-! ${BSD_INSTALL_PROGRAM} xbanner $(BINDIR)/xbanner
-! ${BSD_INSTALL_PROGRAM} xb_check $(BINDIR)/xb_check
-! ${BSD_INSTALL_PROGRAM} random_effect $(BINDIR)/random_effect
-
- strip: exe
- strip xbanner freetemp xb_check random_effect
+--- Makefile.orig 1997-05-12 23:55:59.000000000 +0800
++++ Makefile 2014-01-09 21:06:36.000000000 +0800
+@@ -6,22 +6,22 @@
+
+ .SUFFIXES: .c .o
+
+-CC =gcc
++CC ?=gcc
+ RM =rm
+ LN =ln
+-INSTALL =install
++INSTALL ?=install
+ CP =cp
+ TAR =tar
+ GZIP =gzip
+
+ # Binary directory for make install
+-BINDIR =/usr/local/bin/X11
++BINDIR =$(PREFIX)/bin
+
+ # Library directories for Linux
+-XLIBDIR =/usr/X11R6/lib
++XLIBDIR =$(LOCALBASE)/lib
+
+ # Include directory for gcc (if you get X11/Xlib.h: file not found)
+-#INCDIR =-I/usr/X11R6/include
++INCDIR =-I$(LOCALBASE)/include
+
+ # Library directories for the Ultrix (probably most Unixes)
+ #XLIBDIR =/usr/lib/X11
+@@ -34,7 +34,7 @@ XPMLIB =-lXpm
+ $(CC) $(INCDIR) $(CFLAGS) $(XPM) -c $*.c
+
+ # Linux CFLAGS (actually generic gcc)
+-CFLAGS=-Wall -O2
++#CFLAGS=-Wall -O2
+
+ # Want static binaries?
+ #CFLAGS=-Wall -O2 -static
+@@ -48,7 +48,7 @@ CFLAGS=-Wall -O2
+ # Most Linux users won't be troubled by this. Actually almost nobody will
+ # be troubled by this. It just might save me a couple of emails...
+ # Just change it to wherever your libX11.a resides.
+-LDFLAGS=-L$(XLIBDIR)
++LDFLAGS+=-L$(XLIBDIR)
+
+ all: xbanner freetemp random_effect xb_check
+
+@@ -70,10 +70,11 @@ random_effect: random_effect.o
+ xb_check: xb_check.o
+ $(CC) $(CFLAGS) -o xb_check xb_check.o
+
+-install: freetemp xbanner xb_check
+- $(INSTALL) --strip --mode "0755" --owner root --group bin freetemp $(BINDIR)/freetemp
+- $(INSTALL) --strip --mode "0755" --owner root --group bin xbanner $(BINDIR)/xbanner
+- $(INSTALL) --strip --mode "0755" --owner root --group bin xb_check $(BINDIR)/xb_check
++install: freetemp xbanner xb_check random_effect
++ ${BSD_INSTALL_PROGRAM} freetemp $(DESTDIR)$(BINDIR)/freetemp
++ ${BSD_INSTALL_PROGRAM} xbanner $(DESTDIR)$(BINDIR)/xbanner
++ ${BSD_INSTALL_PROGRAM} xb_check $(DESTDIR)$(BINDIR)/xb_check
++ ${BSD_INSTALL_PROGRAM} random_effect $(DESTDIR)$(BINDIR)/random_effect
+
+ strip: exe
+ strip xbanner freetemp xb_check random_effect