1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/devel/directfb/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

95 lines
2.7 KiB
Makefile

# Created by: Devaux Fabien <fab@gcu.info>
# $FreeBSD$
PORTNAME= directfb
PORTVERSION= 1.4.13
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://www.directfb.org/downloads/Core/${DISTNAME:R}/
DISTNAME= DirectFB-${PORTVERSION}
MAINTAINER= anatoly.borodin@gmail.com
COMMENT= Graphic development lightweight API
LICENSE= LGPL21
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng15.so:${PORTSDIR}/graphics/png
OPTIONS_DEFINE= FREETYPE X11 SDL UNIQUE TEST DOCS
UNIQUE_DESC= Unique (WM Module)
OPTIONS_DEFAULT= FREETYPE X11 SDL
OPTIONS_SUB= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USES= gmake ncurses pathfix perl5 pkgconfig
USE_LDCONFIG= yes
USE_PERL5= build
PORTDOCS= *
DIRECTFB_SHLIB= 5 # LT_CURRENT
DIRECTFB_BIN= 5 # LT_BINARY
PLIST_SUB+= DIRECTFB_VERSION="${PORTVERSION}" \
DIRECTFB_RELEASE="${PORTVERSION:R}" \
DIRECTFB_SHLIB="${DIRECTFB_SHLIB}" \
DIRECTFB_BIN="${DIRECTFB_BIN}"
CONFIGURE_ARGS= --disable-osx --disable-extra-warnings --disable-profiling \
--disable-debug --enable-debug-support --disable-trace \
--enable-text --enable-gettid --enable-network \
--disable-multi --enable-voodoo --disable-pure-voodoo \
--enable-devmem --disable-fbdev --disable-vnc --disable-sysfs \
--enable-jpeg --enable-zlib --enable-png --enable-gif \
--disable-linotype --disable-video4linux \
--disable-video4linux2 --with-gfxdrivers=all \
--with-inputdrivers=all --with-smooth-scaling \
--with-dither-rgb16=advanced
BROKEN_alpha= Does not compile on alpha
DOCS_BUILD_DEPENDS= man2html:${PORTSDIR}/textproc/man2html
FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
FREETYPE_CONFIGURE_ENABLE= freetype
X11_USE= XORG=x11,xext,xproto
X11_CONFIGURE_ENABLE= --x11
SDL_USE= sdl
SDL_CONFIGURE_ENABLE= sdl
UNIQUE_CONFIGURE_ENABLE= unique
TEST_CONFIGURE_WITH= tests
.include <bsd.port.options.mk>
.if ${ARCH} == "arm"
PLIST_SUB+= ARCH_ARM=""
.else
PLIST_SUB+= ARCH_ARM="@comment "
.endif
.if ${ARCH} == "powerpc"
PLIST_SUB+= ARCH_POWERPC=""
.else
PLIST_SUB+= ARCH_POWERPC="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-lc_r|-pthread|g ; s|%%LTMAIN%%|${LTMAIN}|g ; \
s|/usr/local|${LOCALBASE}|g ; s|/usr/X11R6|${LOCALBASE}|g' \
${WRKSRC}/configure
@${GREP} -lr alloca\.h ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -e 's|<alloca\.h>|<stdlib.h>|g'
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for f in AUTHORS ChangeLog NEWS README TODO fb.modes docs/README.screenshots docs/*.html
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.for f in docs/html/*.html docs/html/*.png
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/html
.endfor
.include <bsd.port.mk>