aboutsummaryrefslogtreecommitdiffstats
path: root/devel/directfb
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2003-01-19 22:26:13 +0800
committervanilla <vanilla@FreeBSD.org>2003-01-19 22:26:13 +0800
commitef79cfbb47d4007a884041e0d5223864e7da4c30 (patch)
tree87124b033dcf77dec2f73408deb01dfe233a576b /devel/directfb
parent8311229146375f696a5e65b9db3373dc11b59ada (diff)
downloadfreebsd-ports-gnome-ef79cfbb47d4007a884041e0d5223864e7da4c30.tar.gz
freebsd-ports-gnome-ef79cfbb47d4007a884041e0d5223864e7da4c30.tar.zst
freebsd-ports-gnome-ef79cfbb47d4007a884041e0d5223864e7da4c30.zip
Add directfb, it's a graphics library which was designed with embedded systems.
PR: ports/44782 Submitted by: Fabien Devaux <devaux.fabien@free.fr> Somepart by: me
Diffstat (limited to 'devel/directfb')
-rw-r--r--devel/directfb/Makefile52
-rw-r--r--devel/directfb/distinfo1
-rw-r--r--devel/directfb/files/patch-configure30
-rw-r--r--devel/directfb/files/patch-tools::Makefile.in11
-rw-r--r--devel/directfb/pkg-comment1
-rw-r--r--devel/directfb/pkg-descr3
-rw-r--r--devel/directfb/pkg-plist92
7 files changed, 190 insertions, 0 deletions
diff --git a/devel/directfb/Makefile b/devel/directfb/Makefile
new file mode 100644
index 000000000000..07d78df5eff2
--- /dev/null
+++ b/devel/directfb/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: DirectFB
+# Date created: 19 October 2002
+# Whom: Devaux Fabien <fab@gcu.info>
+#
+# $FreeBSD$
+#
+
+PORTNAME= directfb
+PORTVERSION= 0.9.16
+CATEGORIES= devel
+MASTER_SITES= http://www.directfb.org/download/DirectFB/
+DISTNAME= DirectFB-${PORTVERSION}
+
+MAINTAINER= fab@gcu.info
+
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
+ png.5:${PORTSDIR}/graphics/png
+
+SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
+
+CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
+ CPPFLAGS="${PTHREAD_CFLAGS}" \
+ LDFLAGS="${PTHREAD_LIBS}"
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+USE_PERL5= yes
+USE_REINPLACE= yes
+PLIST_SUB+= DIRECTFB_VERSION=${PORTVERSION}
+
+.if exists(${LOCALBASE}/lib/libfreetype.so.9)
+WITH_FREETYPE2= yes
+.endif
+
+.if defined(WITH_FREETYPE2)
+LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
+CONFIGURE_ARGS+= --enable-freetype
+PLIST_SUB+= WITH_FREETYPE2=""
+.else
+CONFIGURE_ARGS+= --disable-freetype
+PLIST_SUB+= WITH_FREETYPE2="@comment "
+.endif
+
+MAN1= directfb-csource.1 dfbg.1
+MAN5= directfbrc.5
+
+post-patch:
+ @find ${WRKSRC} -name Makefile.in | xargs ${REINPLACE_CMD} -e \
+ 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
+
+.include <bsd.port.mk>
diff --git a/devel/directfb/distinfo b/devel/directfb/distinfo
new file mode 100644
index 000000000000..7e21d4d849f2
--- /dev/null
+++ b/devel/directfb/distinfo
@@ -0,0 +1 @@
+MD5 (DirectFB-0.9.16.tar.gz) = 7a33720caed3f179d4f558821b2fff91
diff --git a/devel/directfb/files/patch-configure b/devel/directfb/files/patch-configure
new file mode 100644
index 000000000000..faa1b3db39ff
--- /dev/null
+++ b/devel/directfb/files/patch-configure
@@ -0,0 +1,30 @@
+--- configure.orig Mon Jan 13 23:25:30 2003
++++ configure Sun Jan 19 22:10:41 2003
+@@ -5500,7 +5500,8 @@
+
+
+ # This can be used to rebuild libtool when needed
+-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++LIBTOOL_DEPS="--disable-ltlibs /usr/local/share/libtool/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+@@ -6153,7 +6154,7 @@
+
+
+
+-THREADFLAGS="-D_REENTRANT"
++THREADFLAGS="-D_REENTRANT -pthread"
+
+ if test x$need_libc_r = xyes; then
+ echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
+@@ -6391,7 +6392,7 @@
+ DFB_INTERNAL_CFLAGS="$DFB_INTERNAL_CFLAGS -DDFB_DEBUG"
+ DFB_CFLAGS="$DFB_CFLAGS -O3 -g3 -fno-inline"
+ else
+- DFB_CFLAGS="$DFB_CFLAGS -O3 -g"
++ DFB_CFLAGS="$DFB_CFLAGS -O"
+ if test "x$enable_profiling" = xno; then
+ DFB_CFLAGS_OMIT_FRAME_POINTER="-fomit-frame-pointer"
+ fi
diff --git a/devel/directfb/files/patch-tools::Makefile.in b/devel/directfb/files/patch-tools::Makefile.in
new file mode 100644
index 000000000000..195513142c09
--- /dev/null
+++ b/devel/directfb/files/patch-tools::Makefile.in
@@ -0,0 +1,11 @@
+--- tools/Makefile.in.orig Wed Jan 15 21:06:35 2003
++++ tools/Makefile.in Sun Jan 19 19:17:52 2003
+@@ -157,7 +157,7 @@
+ @DIRECTFB_CSOURCE_TRUE@dfbg$(EXEEXT)
+ @DIRECTFB_CSOURCE_FALSE@bin_PROGRAMS = dfbg$(EXEEXT)
+ noinst_PROGRAMS = dfbdump$(EXEEXT) dfbsummon$(EXEEXT) \
+-fusion_bench$(EXEEXT) raw15toraw24$(EXEEXT) raw16toraw24$(EXEEXT) \
++raw15toraw24$(EXEEXT) raw16toraw24$(EXEEXT) \
+ raw32toraw24$(EXEEXT)
+ PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
+
diff --git a/devel/directfb/pkg-comment b/devel/directfb/pkg-comment
new file mode 100644
index 000000000000..17c918845697
--- /dev/null
+++ b/devel/directfb/pkg-comment
@@ -0,0 +1 @@
+Graphic development lightweight API
diff --git a/devel/directfb/pkg-descr b/devel/directfb/pkg-descr
new file mode 100644
index 000000000000..71549f03fd75
--- /dev/null
+++ b/devel/directfb/pkg-descr
@@ -0,0 +1,3 @@
+ DirectFB is a graphics library which was designed with embedded systems
+ in mind. It offers maximum hardware accelerated performance at a
+ minimum of resource usage and overhead.
diff --git a/devel/directfb/pkg-plist b/devel/directfb/pkg-plist
new file mode 100644
index 000000000000..d00f1d302f86
--- /dev/null
+++ b/devel/directfb/pkg-plist
@@ -0,0 +1,92 @@
+bin/dfbg
+bin/directfb-config
+bin/directfb-csource
+include/directfb/dfb_types.h
+include/directfb/directfb.h
+include/directfb/directfb_keyboard.h
+include/directfb/directfb_keynames.h
+include/directfb-internal/directfb_internals.h
+include/directfb-internal/directfb_version.h
+include/directfb-internal/core/coretypes.h
+include/directfb-internal/core/core.h
+include/directfb-internal/core/core_system.h
+include/directfb-internal/core/coredefs.h
+include/directfb-internal/core/fonts.h
+include/directfb-internal/core/fusion/arena.h
+include/directfb-internal/core/fusion/fusion.h
+include/directfb-internal/core/fusion/list.h
+include/directfb-internal/core/fusion/lock.h
+include/directfb-internal/core/fusion/object.h
+include/directfb-internal/core/fusion/property.h
+include/directfb-internal/core/fusion/reactor.h
+include/directfb-internal/core/fusion/ref.h
+include/directfb-internal/core/fusion/shmalloc.h
+include/directfb-internal/core/fusion/fusion_types.h
+include/directfb-internal/core/gfxcard.h
+include/directfb-internal/core/graphics_driver.h
+include/directfb-internal/core/input.h
+include/directfb-internal/core/input_driver.h
+include/directfb-internal/core/layers.h
+include/directfb-internal/core/modules.h
+include/directfb-internal/core/palette.h
+include/directfb-internal/core/sig.h
+include/directfb-internal/core/state.h
+include/directfb-internal/core/surfaces.h
+include/directfb-internal/core/surfacemanager.h
+include/directfb-internal/core/system.h
+include/directfb-internal/core/thread.h
+include/directfb-internal/core/windows.h
+include/directfb-internal/display/idirectfbpalette.h
+include/directfb-internal/display/idirectfbsurface.h
+include/directfb-internal/display/idirectfbsurface_layer.h
+include/directfb-internal/display/idirectfbsurface_window.h
+include/directfb-internal/display/idirectfbdisplaylayer.h
+include/directfb-internal/gfx/clip.h
+include/directfb-internal/gfx/convert.h
+include/directfb-internal/gfx/util.h
+include/directfb-internal/idirectfb.h
+include/directfb-internal/input/idirectfbinputdevice.h
+include/directfb-internal/input/idirectfbinputbuffer.h
+include/directfb-internal/interface_implementation.h
+include/directfb-internal/media/idirectfbdatabuffer.h
+include/directfb-internal/media/idirectfbfont.h
+include/directfb-internal/media/idirectfbimageprovider.h
+include/directfb-internal/media/idirectfbvideoprovider.h
+include/directfb-internal/misc/conf.h
+include/directfb-internal/misc/cpu_accel.h
+include/directfb-internal/misc/gfx_util.h
+include/directfb-internal/misc/mem.h
+include/directfb-internal/misc/memcpy.h
+include/directfb-internal/misc/tree.h
+include/directfb-internal/misc/utf8.h
+include/directfb-internal/misc/util.h
+include/directfb-internal/windows/idirectfbwindow.h
+lib/libdirectfb-0.9.so.16
+lib/libdirectfb.a
+lib/libdirectfb.so
+lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBFont/libidirectfbfont_default.so
+%%WITH_FREETYPE2%%lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
+lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
+lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
+lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
+lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
+libdata/pkgconfig/directfb.pc
+libdata/pkgconfig/directfb-internal.pc
+share/directfb-%%DIRECTFB_VERSION%%/cursor.dat
+share/directfb-%%DIRECTFB_VERSION%%/font.data
+@dirrm share/directfb-%%DIRECTFB_VERSION%%
+@dirrm lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBVideoProvider
+@dirrm lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBImageProvider
+@dirrm lib/directfb-%%DIRECTFB_VERSION%%/interfaces/IDirectFBFont
+@dirrm lib/directfb-%%DIRECTFB_VERSION%%/interfaces
+@dirrm lib/directfb-%%DIRECTFB_VERSION%%
+@dirrm include/directfb-internal/windows
+@dirrm include/directfb-internal/misc
+@dirrm include/directfb-internal/media
+@dirrm include/directfb-internal/input
+@dirrm include/directfb-internal/gfx
+@dirrm include/directfb-internal/display
+@dirrm include/directfb-internal/core/fusion
+@dirrm include/directfb-internal/core
+@dirrm include/directfb-internal
+@dirrm include/directfb