ports/119154: [NEW PORT] graphics/libtxc_dxtn

Joseph Terner jtsn at gmx.de
Sun Dec 30 13:00:02 UTC 2007


>Number:         119154
>Category:       ports
>Synopsis:       [NEW PORT] graphics/libtxc_dxtn
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 30 13:00:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Terner
>Release:        FreeBSD 6.3-RC2 i386
>Organization:
>Environment:
System: FreeBSD 6.3-RC2 #0: Tue Dec 25 03:58:08 CET 2007 i386
>Description:
S3TC with DRI drivers
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libtxc_dxtn
#	libtxc_dxtn/files
#	libtxc_dxtn/files/patch-aa
#	libtxc_dxtn/pkg-plist
#	libtxc_dxtn/Makefile
#	libtxc_dxtn/pkg-descr
#	libtxc_dxtn/distinfo
#
echo c - libtxc_dxtn
mkdir -p libtxc_dxtn > /dev/null 2>&1
echo c - libtxc_dxtn/files
mkdir -p libtxc_dxtn/files > /dev/null 2>&1
echo x - libtxc_dxtn/files/patch-aa
sed 's/^X//' >libtxc_dxtn/files/patch-aa << 'END-of-libtxc_dxtn/files/patch-aa'
X--- Makefile.orig	2006-01-17 23:14:25.000000000 +0100
X+++ Makefile	2007-12-30 13:04:21.000000000 +0100
X@@ -1,18 +1,17 @@
X CFLAGS += -Wall -pedantic -fPIC
X-OPT_CFLAGS = -O3
X LDFLAGS += -shared -fPIC
X OBJS = txc_compress_dxtn.o txc_fetch_dxtn.o
X LIB = libtxc_dxtn.so
X 
X $(LIB): $(OBJS)
X-	$(CC) $(LDFLAGS) -o $@ $(OBJS)
X+	$(CC) -L$(LOCALBASE)/lib $(LDFLAGS) -o $@ $(OBJS)
X 
X %.o: %.c txc_dxtn.h
X-	$(CC) $(CFLAGS) $(OPT_CFLAGS) -c -o $@ $<
X+	$(CC) -I$(LOCALBASE)/include $(CFLAGS) $(OPT_CFLAGS) -c -o $@ $<
X 
X clean:
X 	rm -f $(OBJS) $(LIB)
X 
X install: $(LIB)
X-	install -d $(DESTDIR)/usr/lib
X-	install -m 755 $(LIB) $(DESTDIR)/usr/lib
X+	install -d $(PREFIX)/lib
X+	install -m 755 $(LIB) $(PREFIX)/lib
END-of-libtxc_dxtn/files/patch-aa
echo x - libtxc_dxtn/pkg-plist
sed 's/^X//' >libtxc_dxtn/pkg-plist << 'END-of-libtxc_dxtn/pkg-plist'
Xlib/libtxc_dxtn.so
END-of-libtxc_dxtn/pkg-plist
echo x - libtxc_dxtn/Makefile
sed 's/^X//' >libtxc_dxtn/Makefile << 'END-of-libtxc_dxtn/Makefile'
X# New ports collection makefile for: libtxc_dxtn
X# Date created:		2007-12-30
X# Whom:			Joseph Terner <jtsn at gmx.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libtxc_dxtn
XPORTVERSION=	070518
XCATEGORIES=	graphics
XMASTER_SITES=	http://homepage.hispeed.ch/rscheidegger/dri_experimental/ \
X		http://home.arcor.de/jtsn/download/
XDISTNAME=	${PORTNAME}${PORTVERSION}
X
XMAINTAINER=	ports at freebsd.org
XCOMMENT=	S3TC with DRI drivers
X
XUSE_XORG=	glproto
XUSE_GMAKE=	yes
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
XALL_TARGET=	${PORTNAME}.so
X
X.include <bsd.port.mk>
END-of-libtxc_dxtn/Makefile
echo x - libtxc_dxtn/pkg-descr
sed 's/^X//' >libtxc_dxtn/pkg-descr << 'END-of-libtxc_dxtn/pkg-descr'
XS3TC support has been partially implemented in Mesa. We cannot integrate and
Xenable S3TC code by default due to the patents on the algorithm. Because of
Xthis, to be cautious, code was integrated to only attempt to open an external
Xlibrary, libtxc_dxtn.so, and use a small number of functions from that to
Ximplement S3TC if available.
X
XCurrently, S3TC is supported on all graphic cards which use the radeon
X(original Radeon, VE, 7000, 7200, 7500,  some Radeon IGP), r200 (Radeon 8500,
X9100, 9000, 9200, IGP9100 (RS300)), i830 (i830, i845, i852, i855, i865 - of
Xcourse only the chipset versions which actually have integrated graphics...)
Xand i915 driver (btw the i830 driver is considered obsolete, use the i915
Xdriver instead). Other DRI drivers are not supported, even if the hardware
Xcould do it, at least not until someone writes the code for it (at least for
Xthe savage driver this would be possible).
X
XWWW: http://homepage.hispeed.ch/rscheidegger/dri_experimental/s3tc_index.html
END-of-libtxc_dxtn/pkg-descr
echo x - libtxc_dxtn/distinfo
sed 's/^X//' >libtxc_dxtn/distinfo << 'END-of-libtxc_dxtn/distinfo'
XMD5 (libtxc_dxtn070518.tar.gz) = 03beb907c13df6484cde210ce219f4b8
XSHA256 (libtxc_dxtn070518.tar.gz) = 17112f296ea72cee7b10cf982c9efa2a2a45a0078f6b2bcf93c626ab13633669
XSIZE (libtxc_dxtn070518.tar.gz) = 10378
END-of-libtxc_dxtn/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list