Update x11-toolkits/open-motif to version 2.3.6
[dports.git] / x11-toolkits / gnustep-gui / Makefile
1 # Created by: Thomas Gellekum <tg@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       gnustep-gui
5 PORTVERSION=    0.24.1
6 PORTREVISION=   3
7 CATEGORIES=     x11-toolkits gnustep
8 MASTER_SITES=   GNUSTEP/core
9
10 MAINTAINER=     theraven@FreeBSD.org
11 COMMENT=        GNUstep GUI library
12
13 LICENSE_COMB=   multi
14 LICENSE=        GPLv3 LGPL3
15
16 OPTIONS_DEFINE= DOCS CUPS ASPELL
17 OPTIONS_DEFAULT=        CUPS
18 OPTIONS_SUB=    yes
19
20 DOCS_BUILD_DEPENDS=     texi2html:textproc/texi2html \
21                         texi2pdf:print/texinfo
22
23 LIB_DEPENDS+=   libtiff.so:graphics/tiff
24 LIB_DEPENDS+=   libpng.so:graphics/png
25 LIB_DEPENDS+=   libgif.so:graphics/giflib
26 LIB_DEPENDS+=   libsndfile.so:audio/libsndfile
27 LIB_DEPENDS+=   libao.so:audio/libao
28 BUILD_DEPENDS+= ${LOCALBASE}/lib/libflite.a:audio/flite
29
30 GNU_CONFIGURE=  yes
31 CONFIGURE_ARGS+=        --with-tiff-library=${LOCALBASE}/lib
32 CONFIGURE_ARGS+=        --with-tiff-include=${LOCALBASE}/include
33 CONFIGURE_ARGS+=        --with-jpeg-library=${LOCALBASE}/lib
34 CONFIGURE_ARGS+=        --with-jpeg-include=${LOCALBASE}/include
35 CONFIGURE_ARGS+=        --with-x
36 CONFIGURE_ARGS+=        --with-x-include=${LOCALBASE}/include
37 CONFIGURE_ARGS+=        --with-x-include=${LOCALBASE}/lib
38
39 USES=           gnustep jpeg pkgconfig
40 USE_GNUSTEP=    base build
41 USE_XORG=       x11 xt
42
43 EXTRA_PATCHES+= ${FILESDIR}/GNUmakefile.patch
44 EXTRA_PATCHES+= ${FILESDIR}/GNUmakefile.speech.patch
45 EXTRA_PATCHES+= ${FILESDIR}/AudioOutputSink.m.patch
46 MAKE_FLAGS+=    OPTFLAG="${CFLAGS}"
47
48 PLIST_SUB+=     BASEVERSION=${PORTVERSION:C/[.][0-9]*$//1}
49
50 CUPS_CONFIGURE_ENABLE=          cups
51 CUPS_LIB_DEPENDS+=      libcups.so:print/cups
52 ASPELL_LIB_DEPENDS=     libaspell.so:textproc/aspell
53 ASPELL_CONFIGURE_ENABLE=        aspell
54
55 USE_LDCONFIG=   ${GNUSTEP_SYSTEM_LIBRARIES}
56
57 post-patch:
58         ${REINPLACE_CMD} -e "s|libpng/png.h|png.h|" ${WRKSRC}/configure
59         ${REINPLACE_CMD} -e "s|doc=no|doc=yes|" ${WRKSRC}/GNUmakefile
60
61 pre-configure:
62 .for file in config.guess config.sub install-sh
63         @${CP} ${GNUSTEP_PREFIX}/System/Library/Makefiles/${file} ${WRKSRC}
64 .endfor
65
66 .include <bsd.port.mk>