mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Add liboil a library of simple functions that are optimized for various CPUs.
These functions are generally loops implementing simple algorithmes. Grab maintainer-ship PR: 74361 Submitted by: ijliao Approved by: pav (mentor)
This commit is contained in:
parent
65292a27dc
commit
2c6ac14ece
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122680
@ -437,6 +437,7 @@
|
||||
SUBDIR += libmcve
|
||||
SUBDIR += libmimedir
|
||||
SUBDIR += libmtrie
|
||||
SUBDIR += liboil
|
||||
SUBDIR += libol
|
||||
SUBDIR += libole2
|
||||
SUBDIR += liboop
|
||||
|
28
devel/liboil/Makefile
Normal file
28
devel/liboil/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# New ports collection makefile for: liboil
|
||||
# Date created: Nov 24, 2004
|
||||
# Whom: ijliao
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= liboil
|
||||
PORTVERSION= 0.2.2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.schleef.org/liboil/download/
|
||||
|
||||
MAINTAINER= kwm@FreeBSD.org
|
||||
COMMENT= Library of optimized inner loops
|
||||
|
||||
USE_GNOME= gnomeprefix glib20
|
||||
USE_REINPLACE= yes
|
||||
USE_LIBTOOL_VER=15
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
PLIST_SUB= VERSION=${PORTVERSION:R}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|stdint\.h|inttypes.h|g' \
|
||||
${WRKSRC}/liboil/liboiltypes.h \
|
||||
${WRKSRC}/liboil/liboil.h
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/liboil/distinfo
Normal file
2
devel/liboil/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (liboil-0.2.2.tar.gz) = 5eeab2994b45f088c3b36a71ae66fb94
|
||||
SIZE (liboil-0.2.2.tar.gz) = 415092
|
18
devel/liboil/files/patch-configure
Normal file
18
devel/liboil/files/patch-configure
Normal file
@ -0,0 +1,18 @@
|
||||
--- configure.orig Sun Nov 28 19:14:30 2004
|
||||
+++ configure Sun Nov 28 19:15:34 2004
|
||||
@@ -20691,13 +20691,13 @@
|
||||
|
||||
fi
|
||||
|
||||
-LIBOIL_CFLAGS="$LIBOIL_CFLAGS -D_GNU_SOURCE -D_POSIX_C_SOURCE=200112L -I\$(top_srcdir)"
|
||||
+LIBOIL_CFLAGS="$LIBOIL_CFLAGS -D_GNU_SOURCE -I\$(top_srcdir)"
|
||||
|
||||
|
||||
LIBOIL_LIBS="\$(top_builddir)/liboil/liboil-$LIBOIL_MAJORMINOR.la"
|
||||
|
||||
|
||||
-pkgconfigdir="\$(libdir)/pkgconfig"
|
||||
+pkgconfigdir="\$(prefix)/libdata/pkgconfig"
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile liboil/Makefile liboil/copy/Makefile liboil/dct/Makefile liboil/md5/Makefile liboil/jpeg/Makefile liboil/simdpack/Makefile testsuite/Makefile examples/Makefile examples/jpeg/Makefile examples/md5/Makefile liboil.pc"
|
13
devel/liboil/files/patch-liboil_dct_dct.h
Normal file
13
devel/liboil/files/patch-liboil_dct_dct.h
Normal file
@ -0,0 +1,13 @@
|
||||
--- liboil/dct/dct.h.orig Sat Nov 13 11:34:25 2004
|
||||
+++ liboil/dct/dct.h Sat Nov 13 11:34:55 2004
|
||||
@@ -21,6 +21,10 @@
|
||||
|
||||
#include <liboil/liboilfunction.h>
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#define M_PI 3.14159265358979323846
|
||||
+#endif
|
||||
+
|
||||
OIL_DECLARE_CLASS(dct12_f32);
|
||||
OIL_DECLARE_CLASS(dct36_f32);
|
||||
OIL_DECLARE_CLASS(fdct8_f64);
|
10
devel/liboil/files/patch-liboil_liboilcpu.c
Normal file
10
devel/liboil/files/patch-liboil_liboilcpu.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- liboil/liboilcpu.c.orig Sun Nov 28 13:15:12 2004
|
||||
+++ liboil/liboilcpu.c Sun Nov 28 13:15:41 2004
|
||||
@@ -64,6 +64,7 @@
|
||||
char **f;
|
||||
|
||||
cpuinfo = get_cpuinfo();
|
||||
+ if (cpuinfo == NULL) return;
|
||||
|
||||
cpuinfo_flags = get_cpuinfo_flags_string(cpuinfo);
|
||||
if (cpuinfo_flags == NULL) return;
|
13
devel/liboil/pkg-descr
Normal file
13
devel/liboil/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
Liboil is a library of simple functions that are optimized for various CPUs.
|
||||
These functions are generally loops implementing simple algorithms, such as
|
||||
converting an array of N integers to floating-point numbers or multiplying
|
||||
and summing an array of N numbers. Clearly such functions are candidates for
|
||||
significant optimization using various techniques, especially by using
|
||||
extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
|
||||
|
||||
Many multimedia applications and libraries already do similar things
|
||||
internally. The goal of this project is to consolidate some of the code used
|
||||
by various multimedia projects, and also make optimizations easier to use by
|
||||
a broad range of applications.
|
||||
|
||||
WWW: http://www.schleef.org/liboil/
|
16
devel/liboil/pkg-plist
Normal file
16
devel/liboil/pkg-plist
Normal file
@ -0,0 +1,16 @@
|
||||
include/liboil-%%VERSION%%/liboil/liboil.h
|
||||
include/liboil-%%VERSION%%/liboil/liboilcpu.h
|
||||
include/liboil-%%VERSION%%/liboil/liboildebug.h
|
||||
include/liboil-%%VERSION%%/liboil/liboilfuncs.h
|
||||
include/liboil-%%VERSION%%/liboil/liboilfunction.h
|
||||
include/liboil-%%VERSION%%/liboil/liboilprototype.h
|
||||
include/liboil-%%VERSION%%/liboil/liboiltypes.h
|
||||
lib/liboil-%%VERSION%%.a
|
||||
lib/liboil-%%VERSION%%.so
|
||||
lib/liboil-%%VERSION%%.so.0
|
||||
lib/liboiltmp1.a
|
||||
lib/liboiltmp1.so
|
||||
lib/liboiltmp1.so.0
|
||||
libdata/pkgconfig/liboil-%%VERSION%%.pc
|
||||
@dirrm include/liboil-%%VERSION%%/liboil
|
||||
@dirrm include/liboil-%%VERSION%%
|
Loading…
x
Reference in New Issue
Block a user