import fcbanner:
fcbanner is a variant on the banner program that uses fontconfig and freetype to draw its characters. Thus, it can easily draw using various fonts - any font you can get in Gnome or Mozilla for example - and handles non-ASCII characters if they are present in the font.
This commit is contained in:
parent
cd409edc0a
commit
8020102a86
39
textproc/fcbanner/Makefile
Normal file
39
textproc/fcbanner/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/05/11 15:50:35 sthen Exp $
|
||||
|
||||
COMMENT = fontconfig-based alternative to banner(1)
|
||||
|
||||
PKGNAME = fcbanner-0.0.20040302
|
||||
DISTFILES = fcbanner.c
|
||||
|
||||
CATEGORIES = textproc
|
||||
|
||||
HOMEPAGE = http://www.normalesup.org/~george/comp/fcbanner/
|
||||
MASTER_SITES = ${HOMEPAGE}
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB = c expat fontconfig freetype z
|
||||
USE_X11 = Yes
|
||||
|
||||
do-extract:
|
||||
cp ${DISTDIR}/fcbanner.c ${WRKSRC}/
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC}; \
|
||||
${CC} -Wall -W -std=c99 -D_XOPEN_SOURCE=600 ${CFLAGS} -o fcbanner \
|
||||
`pkg-config --cflags freetype2 fontconfig` fcbanner.c \
|
||||
`pkg-config --libs freetype2 fontconfig`; \
|
||||
sed '/^*/q' < fcbanner.c > fcbanner.txt
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/fcbanner ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fcbanner
|
||||
${INSTALL_DATA} ${WRKSRC}/fcbanner.txt ${PREFIX}/share/doc/fcbanner
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
textproc/fcbanner/distinfo
Normal file
5
textproc/fcbanner/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (fcbanner.c) = tXs1Z0FvoMHohD0JscHQUA==
|
||||
RMD160 (fcbanner.c) = yY9EBXzwOZKizGmNlLvHsZkmEp0=
|
||||
SHA1 (fcbanner.c) = OtCCNX+6xossrekNqp2lPrheJzA=
|
||||
SHA256 (fcbanner.c) = lVcQbL7i3tdcGorfAP1xGwbOqUcEVjt+x+cTqkeZ49M=
|
||||
SIZE (fcbanner.c) = 10648
|
12
textproc/fcbanner/patches/patch-fcbanner_c
Normal file
12
textproc/fcbanner/patches/patch-fcbanner_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-fcbanner_c,v 1.1.1.1 2009/05/11 15:50:35 sthen Exp $
|
||||
--- fcbanner.c.orig Mon May 11 12:48:33 2009
|
||||
+++ fcbanner.c Mon May 11 12:55:48 2009
|
||||
@@ -402,7 +402,7 @@ main(int argc, char **argv)
|
||||
} else {
|
||||
wint_t c;
|
||||
|
||||
- while((c = fgetwc(stdin)) != WEOF) {
|
||||
+ while(((c = fgetwc(stdin)) != EOF) && c != '\004' ) { /* ^D */
|
||||
if(c == L'\n')
|
||||
newline();
|
||||
else
|
4
textproc/fcbanner/pkg/DESCR
Normal file
4
textproc/fcbanner/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
fcbanner is a variant on the banner program that uses fontconfig
|
||||
and freetype to draw its characters. Thus, it can easily draw using
|
||||
various fonts - any font you can get in Gnome or Mozilla for example
|
||||
- and handles non-ASCII characters if they are present in the font.
|
4
textproc/fcbanner/pkg/PLIST
Normal file
4
textproc/fcbanner/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/05/11 15:50:35 sthen Exp $
|
||||
@bin bin/fcbanner
|
||||
share/doc/fcbanner/
|
||||
share/doc/fcbanner/fcbanner.txt
|
Loading…
Reference in New Issue
Block a user