diff --git a/textproc/fcbanner/Makefile b/textproc/fcbanner/Makefile new file mode 100644 index 00000000000..049bd755971 --- /dev/null +++ b/textproc/fcbanner/Makefile @@ -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 diff --git a/textproc/fcbanner/distinfo b/textproc/fcbanner/distinfo new file mode 100644 index 00000000000..6e7397ae7d1 --- /dev/null +++ b/textproc/fcbanner/distinfo @@ -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 diff --git a/textproc/fcbanner/patches/patch-fcbanner_c b/textproc/fcbanner/patches/patch-fcbanner_c new file mode 100644 index 00000000000..6a1906f44d0 --- /dev/null +++ b/textproc/fcbanner/patches/patch-fcbanner_c @@ -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 diff --git a/textproc/fcbanner/pkg/DESCR b/textproc/fcbanner/pkg/DESCR new file mode 100644 index 00000000000..8e85120663e --- /dev/null +++ b/textproc/fcbanner/pkg/DESCR @@ -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. diff --git a/textproc/fcbanner/pkg/PLIST b/textproc/fcbanner/pkg/PLIST new file mode 100644 index 00000000000..a2408aa01d4 --- /dev/null +++ b/textproc/fcbanner/pkg/PLIST @@ -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