svn commit: r341494 - head/devel/directfb
Baptiste Daroussin
bapt at FreeBSD.org
Tue Jan 28 00:25:24 UTC 2014
Author: bapt
Date: Tue Jan 28 00:25:23 2014
New Revision: 341494
URL: http://svnweb.freebsd.org/changeset/ports/341494
QAT: https://qat.redports.org/buildarchive/r341494/
Log:
Support stage
Add DOCS options
Use options helpers
Modified:
head/devel/directfb/Makefile
Modified: head/devel/directfb/Makefile
==============================================================================
--- head/devel/directfb/Makefile Tue Jan 28 00:17:56 2014 (r341493)
+++ head/devel/directfb/Makefile Tue Jan 28 00:25:23 2014 (r341494)
@@ -12,15 +12,15 @@ MAINTAINER= anatoly.borodin at gmail.com
COMMENT= Graphic development lightweight API
LICENSE= LGPL21
-LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
- png15:${PORTSDIR}/graphics/png
+LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
+ libpng15.so:${PORTSDIR}/graphics/png
-OPTIONS_DEFINE= FREETYPE X11 SDL UNIQUE TEST
+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
@@ -28,6 +28,7 @@ GNU_CONFIGURE= yes
USES= pathfix ncurses gmake perl5
USE_LDCONFIG= yes
USE_PERL5= build
+PORTDOCS= *
DIRECTFB_SHLIB= 5 # LT_CURRENT
DIRECTFB_BIN= 5 # LT_BINARY
@@ -47,61 +48,19 @@ CONFIGURE_ARGS= --disable-osx --disable-
--with-inputdrivers=all --with-smooth-scaling \
--with-dither-rgb16=advanced
-NO_STAGE= yes
BROKEN_alpha= Does not compile on alpha
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= man2html:${PORTSDIR}/textproc/man2html
-PORTDOCS= *
-.endif
-
-.if ${PORT_OPTIONS:MFREETYPE}
-LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
-CONFIGURE_ARGS+= --enable-freetype
-PLIST_SUB+= FREETYPE2=""
-.else
-CONFIGURE_ARGS+= --disable-freetype
-PLIST_SUB+= FREETYPE2="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MX11}
-USE_XORG+= x11 xext xproto
-CONFIGURE_ARGS+= --enable-x11
-PLIST_SUB+= X11=""
-.else
-CONFIGURE_ARGS+= --disable-x11
-PLIST_SUB+= X11="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MSDL}
-USE_SDL+= sdl
-CONFIGURE_ARGS+= --enable-sdl
-PLIST_SUB+= SDL=""
-.else
-CONFIGURE_ARGS+= --disable-sdl
-PLIST_SUB+= SDL="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MUNIQUE}
-CONFIGURE_ARGS+= --enable-unique
-PLIST_SUB+= UNIQUE=""
-.else
-CONFIGURE_ARGS+= --disable-unique
-PLIST_SUB+= UNIQUE="@comment "
-.endif
+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
-.if ${PORT_OPTIONS:MTEST}
-CONFIGURE_ARGS+= --with-tests
-PLIST_SUB+= TESTS=""
-.else
-CONFIGURE_ARGS+= --without-tests
-PLIST_SUB+= TESTS="@comment "
-.endif
-
-MAN1= directfb-csource.1 dfbg.1
-MAN5= directfbrc.5
+.include <bsd.port.options.mk>
.if ${ARCH} == "arm"
PLIST_SUB+= ARCH_ARM=""
@@ -123,15 +82,13 @@ post-patch:
@${GREP} -lr alloca\.h ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -e 's|<alloca\.h>|<stdlib.h>|g'
-.if ${PORT_OPTIONS:MDOCS}
post-install:
- ${MKDIR} ${DOCSDIR}/html
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for f in AUTHORS ChangeLog NEWS README TODO fb.modes docs/README.screenshots docs/*.html
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.for f in docs/html/*.html docs/html/*.png
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/html
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/html
.endfor
-.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list