From cb591512946a8d9ce0f6b248196804146496289f Mon Sep 17 00:00:00 2001 From: merdely Date: Wed, 16 Jul 2008 16:16:14 +0000 Subject: [PATCH] Initial import bgs. bgs allows you to tailor the appearance of the background ("root") window on a workstation display running X. It uses imlib2 for image rendering and rotates the images automatically. It is designed for dynamic Xinerama/Xrandr setups such as those used with notebooks, but it works well in any setup. From James Turner (MAINTAINER) ok okan@ --- x11/bgs/Makefile | 35 +++++++++++++++++++++++++ x11/bgs/distinfo | 5 ++++ x11/bgs/patches/patch-Makefile | 20 +++++++++++++++ x11/bgs/patches/patch-bgs_1 | 9 +++++++ x11/bgs/patches/patch-config_mk | 45 +++++++++++++++++++++++++++++++++ x11/bgs/pkg/DESCR | 5 ++++ x11/bgs/pkg/PLIST | 3 +++ 7 files changed, 122 insertions(+) create mode 100644 x11/bgs/Makefile create mode 100644 x11/bgs/distinfo create mode 100644 x11/bgs/patches/patch-Makefile create mode 100644 x11/bgs/patches/patch-bgs_1 create mode 100644 x11/bgs/patches/patch-config_mk create mode 100644 x11/bgs/pkg/DESCR create mode 100644 x11/bgs/pkg/PLIST diff --git a/x11/bgs/Makefile b/x11/bgs/Makefile new file mode 100644 index 00000000000..bd76c9c89f9 --- /dev/null +++ b/x11/bgs/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/07/16 16:16:14 merdely Exp $ + +COMMENT = simple background setter + +VERSION = 0.4 +DISTNAME = bgs-${VERSION} +CATEGORIES = x11 graphics + +HOMEPAGE = http://s01.de/~gottox/index.cgi/proj_bgs +MASTER_SITES = http://s01.de/~gottox/files/bgs/ + +MAINTAINER = James Turner + +# MIT/X +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB = X11 Xinerama c + +LIB_DEPENDS = Imlib2::graphics/imlib2 + +USE_X11 = Yes +NO_REGRESS = Yes +SUBST_VARS = VERSION + +pre-configure: + @${SUBST_CMD} ${WRKSRC}/bgs.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bgs ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/bgs.1 ${PREFIX}/man/man1 + +.include diff --git a/x11/bgs/distinfo b/x11/bgs/distinfo new file mode 100644 index 00000000000..84fdaa5e89b --- /dev/null +++ b/x11/bgs/distinfo @@ -0,0 +1,5 @@ +MD5 (bgs-0.4.tar.gz) = z4nFv4/vb87IHSS/C9qivw== +RMD160 (bgs-0.4.tar.gz) = FDitioZSRoYyQqEOPWZSiWHtXyc= +SHA1 (bgs-0.4.tar.gz) = 8UOEVFjByTH2Kpm3pJKZfJk65jY= +SHA256 (bgs-0.4.tar.gz) = 8a2BKYyO3CXFKPYn3JcrDIzISeZe0fzWKcujChgblH4= +SIZE (bgs-0.4.tar.gz) = 4345 diff --git a/x11/bgs/patches/patch-Makefile b/x11/bgs/patches/patch-Makefile new file mode 100644 index 00000000000..4cda40769d0 --- /dev/null +++ b/x11/bgs/patches/patch-Makefile @@ -0,0 +1,20 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2008/07/16 16:16:14 merdely Exp $ +--- Makefile.orig Sun Jul 13 11:51:32 2008 ++++ Makefile Sun Jul 13 11:52:46 2008 +@@ -15,14 +15,12 @@ options: + @echo "CC = ${CC}" + + .c.o: +- @echo CC $< +- @${CC} -c ${CFLAGS} $< ++ ${CC} -c ${CFLAGS} $< + + ${OBJ}: config.mk + + bgs: ${OBJ} +- @echo CC -o $@ +- @${CC} -o $@ ${OBJ} ${LDFLAGS} ++ ${CC} -o $@ ${OBJ} ${LDFLAGS} + + clean: + @echo cleaning diff --git a/x11/bgs/patches/patch-bgs_1 b/x11/bgs/patches/patch-bgs_1 new file mode 100644 index 00000000000..858a16e7c63 --- /dev/null +++ b/x11/bgs/patches/patch-bgs_1 @@ -0,0 +1,9 @@ +$OpenBSD: patch-bgs_1,v 1.1.1.1 2008/07/16 16:16:14 merdely Exp $ +--- bgs.1.orig Wed Jul 16 11:00:21 2008 ++++ bgs.1 Wed Jul 16 11:00:33 2008 +@@ -1,4 +1,4 @@ +-.TH BGS 1 bgs\-VERSION ++.TH BGS 1 bgs\-${VERSION} + .SH NAME + bgs \- back ground setter + .SH SYNOPSIS diff --git a/x11/bgs/patches/patch-config_mk b/x11/bgs/patches/patch-config_mk new file mode 100644 index 00000000000..c8a0b733ded --- /dev/null +++ b/x11/bgs/patches/patch-config_mk @@ -0,0 +1,45 @@ +$OpenBSD: patch-config_mk,v 1.1.1.1 2008/07/16 16:16:14 merdely Exp $ +--- config.mk.orig Mon Jul 14 11:57:28 2008 ++++ config.mk Wed Jul 16 10:56:32 2008 +@@ -4,31 +4,28 @@ VERSION = 0.4 + # Customize below to fit your system + + # paths +-PREFIX = /usr/local +-MANPREFIX = ${PREFIX}/share/man ++#PREFIX = /usr/local ++MANPREFIX = ${PREFIX}/man + +-X11INC = /usr/X11R6/include +-X11LIB = /usr/X11R6/lib ++X11INC = ${X11BASE}/include ++X11LIB = ${X11BASE}/lib + +-IMLIB2INC = /usr/include/imlib2 +-IMLIB2LIB = /usr/lib/imlib2/ +- + # Xinerama, comment if you don't want it + XINERAMALIBS = -L${X11LIB} -lXinerama + XINERAMAFLAGS = -DXINERAMA + + # includes and libs +-INCS = -I. -I/usr/include -I${X11INC} -I ${IMLIB2INC} +-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} -L ${IMLIB2LIB} -lImlib2 ++INCS = -I${X11INC} -I${LOCALBASE}/include ++LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -L${LOCALBASE}/lib -lImlib2 + + # flags +-CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +-LDFLAGS = -s ${LIBS} ++CPPFLAGS += -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} ++CFLAGS += ${INCS} ${CPPFLAGS} ++LDFLAGS += -s ${LIBS} + + # Solaris + #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" + #LDFLAGS = ${LIBS} + + # compiler and linker +-CC = cc ++CC ?= cc diff --git a/x11/bgs/pkg/DESCR b/x11/bgs/pkg/DESCR new file mode 100644 index 00000000000..4f2da877bb8 --- /dev/null +++ b/x11/bgs/pkg/DESCR @@ -0,0 +1,5 @@ +bgs allows you to tailor the appearance of the background ("root") +window on a workstation display running X. It uses imlib2 for image +rendering and rotates the images automatically. It is designed for +dynamic Xinerama/Xrandr setups such as those used with notebooks, but it +works well in any setup. diff --git a/x11/bgs/pkg/PLIST b/x11/bgs/pkg/PLIST new file mode 100644 index 00000000000..9513b9ebd38 --- /dev/null +++ b/x11/bgs/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/07/16 16:16:14 merdely Exp $ +@bin bin/bgs +@man man/man1/bgs.1