diff options
author | dumbbell <dumbbell@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2014-06-04 05:02:20 +0800 |
---|---|---|
committer | dumbbell <dumbbell@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2014-06-04 05:02:20 +0800 |
commit | 6cd8d5670f69f66aefc718b77c08862035b78a3d (patch) | |
tree | d1ed3e4d56cd9bd292673decec28ea9e8b041d37 | |
parent | 8e72d3d29d31eea50558e3d2b8c86487547f1f71 (diff) | |
download | xorg-devel-ports-6cd8d5670f69f66aefc718b77c08862035b78a3d.tar xorg-devel-ports-6cd8d5670f69f66aefc718b77c08862035b78a3d.tar.gz xorg-devel-ports-6cd8d5670f69f66aefc718b77c08862035b78a3d.tar.bz2 xorg-devel-ports-6cd8d5670f69f66aefc718b77c08862035b78a3d.tar.lz xorg-devel-ports-6cd8d5670f69f66aefc718b77c08862035b78a3d.tar.xz xorg-devel-ports-6cd8d5670f69f66aefc718b77c08862035b78a3d.tar.zst xorg-devel-ports-6cd8d5670f69f66aefc718b77c08862035b78a3d.zip |
Add graphics/libtxc_dxtn port
This library implements texture compression. It can be used by Wine to
run Windows games, or piglit, the Mesa test framework.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@1451 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r-- | graphics/libtxc_dxtn/Makefile | 34 | ||||
-rw-r--r-- | graphics/libtxc_dxtn/distinfo | 2 | ||||
-rw-r--r-- | graphics/libtxc_dxtn/files/patch-Makefile.am | 13 | ||||
-rw-r--r-- | graphics/libtxc_dxtn/files/patch-configure.ac | 18 | ||||
-rw-r--r-- | graphics/libtxc_dxtn/pkg-descr | 4 | ||||
-rw-r--r-- | graphics/libtxc_dxtn/pkg-plist | 6 |
6 files changed, 77 insertions, 0 deletions
diff --git a/graphics/libtxc_dxtn/Makefile b/graphics/libtxc_dxtn/Makefile new file mode 100644 index 0000000..03fb796 --- /dev/null +++ b/graphics/libtxc_dxtn/Makefile @@ -0,0 +1,34 @@ +# Created by: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= libtxn_dxtn +PORTVERSION= 20131104 +CATEGORIES= graphics + +MAINTAINER= x11@FreeBSD.org +COMMENT= Subset of a wellknown texture compression scheme + +LICENSE= MIT + +BUILD_DEPENDS= libGL>=9.1.7:${PORTSDIR}/graphics/libGL + +USE_GITHUB= yes +GH_ACCOUNT= divVerent +GH_PROJECT= s2tc +GH_COMMIT= c9a70d0 +GH_TAGNAME= ${GH_COMMIT} + +USES= libtool pathfix pkgconfig +PATHFIX_MAKEFILEIN=Makefile.am +USE_AUTOTOOLS= aclocal autoconf libtoolize automake +AUTOMAKE_ARGS= --add-missing --copy +GNU_CONFIGURE= yes +USE_LDCONFIG= yes + +CONFIGURE_ARGS+=--disable-tools + +CPPFLAGS+= -I${LOCALBASE}/include + +INSTALL_TARGET= install-strip + +.include <bsd.port.mk> diff --git a/graphics/libtxc_dxtn/distinfo b/graphics/libtxc_dxtn/distinfo new file mode 100644 index 0000000..4ba450d --- /dev/null +++ b/graphics/libtxc_dxtn/distinfo @@ -0,0 +1,2 @@ +SHA256 (libtxn_dxtn-20131104.tar.gz) = 910a3dffa7ca1fce4dc6f5fa0f6adc8e241511ecc4d65894051e2b69b3077ebc +SIZE (libtxn_dxtn-20131104.tar.gz) = 1397339 diff --git a/graphics/libtxc_dxtn/files/patch-Makefile.am b/graphics/libtxc_dxtn/files/patch-Makefile.am new file mode 100644 index 0000000..c8afaa6 --- /dev/null +++ b/graphics/libtxc_dxtn/files/patch-Makefile.am @@ -0,0 +1,13 @@ +--- Makefile.am ++++ Makefile.am +@@ -10,8 +10,8 @@ s2tc_from_s3tc_SOURCES = s2tc_from_s3tc.cpp s2tc_license.h + s2tc_compress_SOURCES = s2tc_compress.cpp txc_dxtn.h s2tc_license.h + s2tc_decompress_SOURCES = s2tc_decompress.cpp txc_dxtn.h s2tc_license.h + if ENABLE_RUNTIME_LINKING +-s2tc_compress_LDADD = -ldl +-s2tc_decompress_LDADD = -ldl ++s2tc_compress_LDADD = $(LIBDL_LDADD) ++s2tc_decompress_LDADD = $(LIBDL_LDADD) + else + if ENABLE_LIB + s2tc_compress_LDADD = libtxc_dxtn.la diff --git a/graphics/libtxc_dxtn/files/patch-configure.ac b/graphics/libtxc_dxtn/files/patch-configure.ac new file mode 100644 index 0000000..198396c --- /dev/null +++ b/graphics/libtxc_dxtn/files/patch-configure.ac @@ -0,0 +1,18 @@ +--- configure.ac ++++ configure.ac +@@ -27,6 +27,15 @@ AS_IF([test x"$enable_runtime_linking" = xno], , + [AS_IF([test x"$enable_dlopen" != xno], , + [AC_MSG_ERROR([dynamic linking not possible, try --disable-runtime-linking])])]) + ++if test x"$enable_runtime_linking" = xyes; then ++ case "$host_os" in ++ linux*) ++ LIBDL_LDADD='-ldl' ++ ;; ++ esac ++fi ++AC_SUBST(LIBDL_LDADD) ++ + AC_CONFIG_FILES([Makefile txc_dxtn.pc]) + + AC_OUTPUT diff --git a/graphics/libtxc_dxtn/pkg-descr b/graphics/libtxc_dxtn/pkg-descr new file mode 100644 index 0000000..f639a18 --- /dev/null +++ b/graphics/libtxc_dxtn/pkg-descr @@ -0,0 +1,4 @@ +S2TC is a subset of a wellknown texture compression scheme (actually +Color Cell Compression). + +WWW: https://github.com/divVerent/s2tc diff --git a/graphics/libtxc_dxtn/pkg-plist b/graphics/libtxc_dxtn/pkg-plist new file mode 100644 index 0000000..734e978 --- /dev/null +++ b/graphics/libtxc_dxtn/pkg-plist @@ -0,0 +1,6 @@ +include/txc_dxtn.h +lib/libtxc_dxtn.a +lib/libtxc_dxtn.so +lib/libtxc_dxtn.so.0 +lib/libtxc_dxtn.so.0.0.0 +libdata/pkgconfig/txc_dxtn.pc |