aboutsummaryrefslogtreecommitdiff
path: root/graphics/devil
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-02-20 17:09:33 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-02-20 17:09:33 +0000
commit5838d5a8dd6fc645062686b34ebbc777e09a95e5 (patch)
tree9df92e431e7d3192478cc8a5f0a71e5f918dfc95 /graphics/devil
parent8b9a01f2d76a37b0191a0abd630cce423cd687af (diff)
downloadports-5838d5a8dd6fc645062686b34ebbc777e09a95e5.tar.gz
ports-5838d5a8dd6fc645062686b34ebbc777e09a95e5.zip
Notes
Diffstat (limited to 'graphics/devil')
-rw-r--r--graphics/devil/Makefile7
-rw-r--r--graphics/devil/distinfo6
-rw-r--r--graphics/devil/files/patch-configure.ac10
-rw-r--r--graphics/devil/files/patch-src-ILUT__src__ilut_opengl.c47
-rw-r--r--graphics/devil/pkg-plist9
5 files changed, 70 insertions, 9 deletions
diff --git a/graphics/devil/Makefile b/graphics/devil/Makefile
index bb0eefb20ba0..47c390e95a29 100644
--- a/graphics/devil/Makefile
+++ b/graphics/devil/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= devil
-PORTVERSION= 1.7.5
+PORTVERSION= 1.7.7
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= SF/openil
@@ -26,6 +26,7 @@ OPTIONS= JPEG "Enable JPEG support" on \
WRKSRC= ${WRKDIR}/${DISTNAME:L}
+USE_GNOME= pkgconfig
USE_AUTOTOOLS= aclocal:110 autoheader:262 automake:110 autoconf:262 libtool:15
ACLOCAL_ARGS= -I m4 -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS= --add-missing --copy --force-missing
@@ -35,7 +36,6 @@ CONFIGURE_ARGS= --enable-ILU \
--disable-altivec --disable-sse --disable-sse2 --disable-sse3
USE_LDCONFIG= yes
-CFLAGS+= -DIL_NO_VTF
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
@@ -99,8 +99,9 @@ CONFIGURE_ARGS+=--disable-sdl
.endif
post-patch:
- @${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e '/^SUBDIRS/s|docs||g' ${WRKSRC}/Makefile.am
+ @${REINPLACE_CMD} -e '/^pkgdir=/s|$$(libdir)/|$$(prefix)/libdata/|g' \
+ ${WRKSRC}/data/Makefile.am
post-install:
.if !defined(NOPORTDOCS)
diff --git a/graphics/devil/distinfo b/graphics/devil/distinfo
index 02ef8a43eb14..191f6166f8e5 100644
--- a/graphics/devil/distinfo
+++ b/graphics/devil/distinfo
@@ -1,3 +1,3 @@
-MD5 (DevIL-1.7.5.tar.gz) = 2a74578507a21d75d7fcc5afd41444d0
-SHA256 (DevIL-1.7.5.tar.gz) = c27bce29bf1113fd5914b669c2eb72aa083ac4e925b5b62246e508f1f8ba942d
-SIZE (DevIL-1.7.5.tar.gz) = 1199330
+MD5 (DevIL-1.7.7.tar.gz) = 23839e37e20dc85ee2a1188fb6d8920f
+SHA256 (DevIL-1.7.7.tar.gz) = 208f1684109a9da99860515cf4900402713a05f888f5b373ea01910009927da8
+SIZE (DevIL-1.7.7.tar.gz) = 1482814
diff --git a/graphics/devil/files/patch-configure.ac b/graphics/devil/files/patch-configure.ac
new file mode 100644
index 000000000000..8a87c87ffefa
--- /dev/null
+++ b/graphics/devil/files/patch-configure.ac
@@ -0,0 +1,10 @@
+--- configure.ac.orig 2009-02-07 03:17:37.000000000 +0900
++++ configure.ac 2009-02-19 00:18:55.000000000 +0900
+@@ -303,6 +303,7 @@
+ TEST_FORMAT([sgi], [SGI])
+ TEST_FORMAT([tga], [TGA])
+ TEST_FORMAT([tiff],[TIF], [SETTLE_TIFF])
++TEST_FORMAT([vtf], [VTF])
+ TEST_FORMAT([xpm], [XPM])
+ TEST_FORMAT([wal], [WAL])
+ TEST_FORMAT([wdp], [WDP])
diff --git a/graphics/devil/files/patch-src-ILUT__src__ilut_opengl.c b/graphics/devil/files/patch-src-ILUT__src__ilut_opengl.c
new file mode 100644
index 000000000000..685f82ea5a2a
--- /dev/null
+++ b/graphics/devil/files/patch-src-ILUT__src__ilut_opengl.c
@@ -0,0 +1,47 @@
+--- src-ILUT/src/ilut_opengl.c.orig 2009-02-07 03:17:36.000000000 +0900
++++ src-ILUT/src/ilut_opengl.c 2009-02-19 00:18:59.000000000 +0900
+@@ -58,7 +58,7 @@
+ // #pragma comment(lib, "freeglut.lib")
+ #endif
+
+-#ifdef linux
++#if defined(linux) || defined(__FreeBSD__)
+ // fix for glXGetProcAddressARB
+ #define GLX_GLXEXT_PROTOTYPES
+ #include <GL/glx.h>
+@@ -84,7 +84,7 @@
+
+ static ILboolean HasCubemapHardware = IL_FALSE;
+ static ILboolean HasNonPowerOfTwoHardware = IL_FALSE;
+-#if defined(_WIN32) || defined(_WIN64) || defined(linux) || defined(__APPLE__)
++#if defined(_WIN32) || defined(_WIN64) || defined(linux) || defined(__APPLE__) || defined(__FreeBSD__)
+ ILGLTEXIMAGE3DARBPROC ilGLTexImage3D = NULL;
+ ILGLTEXSUBIMAGE3DARBPROC ilGLTexSubImage3D = NULL;
+ ILGLCOMPRESSEDTEXIMAGE2DARBPROC ilGLCompressed2D = NULL;
+@@ -127,7 +127,7 @@
+ IsExtensionSupported("GL_EXT_texture3D")) {
+ ilGLCompressed3D = (ILGLCOMPRESSEDTEXIMAGE3DARBPROC)wglGetProcAddress("glCompressedTexImage3DARB");
+ }
+- #elif linux
++ #elif (defined(linux) || defined(__FreeBSD__))
+ if (IsExtensionSupported("GL_ARB_texture_compression") &&
+ IsExtensionSupported("GL_EXT_texture_compression_s3tc")) {
+ ilGLCompressed2D = (ILGLCOMPRESSEDTEXIMAGE2DARBPROC)
+@@ -246,7 +246,7 @@
+ ILboolean ILAPIENTRY ilutGLTexImage_(GLuint Level, GLuint Target, ILimage *Image)
+ {
+ ILimage *ImageCopy, *OldImage;
+-#if defined (_MSC_VER) || defined (linux) || defined(__APPLE__)
++#if defined (_MSC_VER) || defined (linux) || defined(__APPLE__) || defined(__FreeBSD__)
+ ILenum DXTCFormat;
+ ILuint Size;
+ ILubyte *Buffer;
+@@ -259,7 +259,7 @@
+
+ OldImage = ilGetCurImage();
+
+-#if defined (_MSC_VER) || defined (linux) || defined(__APPLE__)
++#if defined (_MSC_VER) || defined (linux) || defined(__APPLE__) || defined(__FreeBSD__)
+ if (ilutGetBoolean(ILUT_GL_USE_S3TC) && ilGLCompressed2D != NULL) {
+ if (Image->DxtcData != NULL && Image->DxtcSize != 0) {
+ DXTCFormat = GLGetDXTCNum(Image->DxtcFormat);
diff --git a/graphics/devil/pkg-plist b/graphics/devil/pkg-plist
index 1f1a7af8455e..c17ce29c3deb 100644
--- a/graphics/devil/pkg-plist
+++ b/graphics/devil/pkg-plist
@@ -6,15 +6,18 @@ include/IL/ilu_region.h
lib/libIL.a
lib/libIL.la
lib/libIL.so
-lib/libIL.so.1
+lib/libIL.so.2
lib/libILU.a
lib/libILU.la
lib/libILU.so
-lib/libILU.so.1
+lib/libILU.so.2
%%X11%%lib/libILUT.a
%%X11%%lib/libILUT.la
%%X11%%lib/libILUT.so
-%%X11%%lib/libILUT.so.1
+%%X11%%lib/libILUT.so.2
+libdata/pkgconfig/IL.pc
+libdata/pkgconfig/ILU.pc
+%%X11%%libdata/pkgconfig/ILUT.pc
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog