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@
This commit is contained in:
merdely 2008-07-16 16:16:14 +00:00
parent ce4a4bd708
commit cb59151294
7 changed files with 122 additions and 0 deletions

35
x11/bgs/Makefile Normal file
View File

@ -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 <james@bsdgroup.org>
# 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 <bsd.port.mk>

5
x11/bgs/distinfo Normal file
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

5
x11/bgs/pkg/DESCR Normal file
View File

@ -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.

3
x11/bgs/pkg/PLIST Normal file
View File

@ -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