freebsd-ports/x11-toolkits/fox17/Makefile
Pietro Cerutti 4e96f31450 - Update to 1.7.43
Changes:

  * Added FXJSON JavaScript Object Notation I/O class. FXJSON loads and
    saves JSON, and has a great number of options, extensive error
    reporting, and great degree of control over output.
  * Problems in Windows version of fxcpuid.cpp fixed.
  * Line segment to box and line segment to sphere intersection routines
    added; also computes intersection point.
  * FXString escape() and unescape() now do \uXXXX unicode escaping. Old
    functions for these, fromAscii() and toAscii() have been removed. The
    new implementation properly handles surrogate pairs.
  * Added some API's to FXGLGroup.
  * FXListBox current item fix.
  * Added new functions to FXElement.h. Particularly, bulk-comparison
    function.
  * Use new fxstrlcpy() and fxstrlcat() where appropriate; these will
    always produce null-terminated strings.
  * Passed wrong handle for error FD in FXProcess under Windows.
  * Fix introduced bugs in FXHash and FXDict.
  * Some extra checks added in GIF loader header detection.
  * Typo fix in lock-free queue class FXLFQueue.
  * Fast accessors added to FXVariant; they can be used if type already
    known.
  * Fixed minor issues with FXVariant implementation.
  * Missing FXAPI declaration in FXArrayBase added.
  * Added area() and volume() calculation to FXRange and FXSphere classes;
    added area() to FXExtent classes.
  * Added new FXDictionary class; this will replace FXDict at some point in
    the future.
2013-10-25 13:48:21 +00:00

78 lines
1.9 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= fox
PORTVERSION= 1.7.43
CATEGORIES= x11-toolkits
MASTER_SITES= http://ftp.fox-toolkit.org/pub/ \
ftp://ftp.fox-toolkit.org/pub/
PKGNAMESUFFIX= ${PORTVERSION:R:S/.//}
MAINTAINER= gahr@FreeBSD.org
COMMENT= Fast and extensive C++ GUI toolkit -- devel version
OPTIONS_DEFINE= DOCS JPEG PNG TIFF WEBP
OPTIONS_DEFAULT=JPEG PNG TIFF WEBP
MAJORVER= ${PORTVERSION:R}
PLIST_SUB+= MAJORVER=${MAJORVER}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${MAJORVER}
USES+= pathfix
USE_AUTOTOOLS= libtool
USE_GL= glut
USE_GNOME= ltverhack
USE_XORG= sm xft
USE_LDCONFIG= yes
CONFIGURE_ARGS= --with-opengl=yes \
--bindir=${PREFIX}/bin/${PORTNAME}-${MAJORVER}
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MJPEG}
LIB_DEPENDS+= libjpeg.so:${PORTSDIR}/graphics/jpeg
.else
CONFIGURE_ARGS+=--disable-jpeg
.endif
.if ${PORT_OPTIONS:MPNG}
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png
.else
CONFIGURE_ARGS+=--disable-png
.endif
.if ${PORT_OPTIONS:MTIFF}
LIB_DEPENDS+= libtiff.so:${PORTSDIR}/graphics/tiff
.else
CONFIGURE_ARGS+=--disable-tiff
.endif
.if ${PORT_OPTIONS:MWEBP}
LIB_DEPENDS+= libwebp.so:${PORTSDIR}/graphics/webp
.else
CONFIGURE_ARGS+=--disable-webp
.endif
.if ${ARCH} == "powerpc"
BROKEN= Does not link on powerpc
.endif
post-patch:
# Rename man pages as in manpage.1 --> manpage-17.1 to avoid
# conflicts with fox14 and fox16
files=$$(${FIND} ${WRKSRC} -name *.1); \
for f in $$files; do \
${MV} $$f `echo $$f | sed -e 's|\.1|-17.1|'`; \
done;
${FIND} ${WRKSRC} -name Makefile.am -o -name Makefile.in | ${XARGS} \
${REINPLACE_CMD} -i '' -e '/man_MANS/s|\.1|-17.1|g'
${REINPLACE_CMD} -e '/^Libs:/s|$$| -pthread|; s|"||g' ${WRKSRC}/fox17.pc.in
.if !${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/^SUBDIRS/s/ doc//' ${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
.endif
.include <bsd.port.mk>