- Clean up patch, honor LOCALBASE, CC, CFLAGS; add LICENSE, stagify

- Install README file (useful documentation, also acts as changelog)
- Provide better COMMENT and port description (courtesy of OpenBSD)
This commit is contained in:
Alexey Dokuchaev 2013-11-09 15:27:25 +00:00
parent d2279bbc1e
commit 488f366be5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333301
3 changed files with 31 additions and 24 deletions

View file

@ -1,4 +1,4 @@
# Created by: asami
# Created by: Satoshi Asami <asami@FreeBSD.org>
# $FreeBSD$
PORTNAME= yeahconsole
@ -7,11 +7,21 @@ CATEGORIES= x11
MASTER_SITES= http://phrat.de/
MAINTAINER= ports@FreeBSD.org
COMMENT= quake console-like extension for X terminals
COMMENT= Terminal wrapper for creating drop-down consoles
LICENSE= GPLv2
USE_XORG= x11
ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/yeahconsole
PORTDOCS= README
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
NO_STAGE= yes
.include <bsd.port.mk>

View file

@ -1,37 +1,33 @@
--- Makefile.orig 2006-01-14 18:54:05.000000000 +0300
+++ Makefile 2008-04-30 12:23:01.000000000 +0400
@@ -5,26 +5,26 @@
@@ -1,24 +1,23 @@
TARGET = yeahconsole
-CC = gcc
+CC ?= gcc
#CC = cc
INSTALL = install
PREFIX = /usr/local
-LIBS = -lX11
LIBS = -lX11
-INCLUDES = -I/usr/X11R6/include
-LIB_DIRS = -L/usr/X11R6/lib
-FLAGS = -Os -Wall
+LIBS = -lX11
+INCLUDES = -I/usr/local/include
+LIB_DIRS = -L/usr/local/lib
+CFLAGS? = -Os -Wall
+INCLUDES = -I$(LOCALBASE)/include
+LIB_DIRS = -L$(LOCALBASE)/lib
+CFLAGS ?= -Os -Wall
OBJECTS := yeahconsole.o
SOURCES := yeahconsole.c
$(TARGET): $(OBJECTS)
- $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $<
+ $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $(SOURCES)
strip $@
- strip $@
+ $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $>
$(OBJECTS): $(SOURCES)
- $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $<
-
+ $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $(SOURCES)
+all: $(TARGET)
+ $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $<
clean:
rm -rf $(TARGET) $(OBJECTS)
install: $(TARGET) $(MAN)
- $(INSTALL) -o root -g root -m 0755 $(TARGET) $(PREFIX)/bin
+ $(INSTALL) -o root -g wheel -m 0755 $(TARGET) $(PREFIX)/bin
uninstall:

View file

@ -1,5 +1,6 @@
YeahConsole turns an xterm into a gamelike console.
This means it will slide down from top of your screen
if you hit a shortcut key.
YeahConsole is a terminal wrapper for creating drop-down consoles, similar
to those found in games like Quake.
By default, YeahConsole is activated and hidden with Ctrl+Alt+Y.
WWW: http://phrat.de/yeahtools.html