1 # Created by: Thomas Gellekum <tg@FreeBSD.org>
7 CATEGORIES= x11-toolkits gnustep
8 MASTER_SITES= GNUSTEP/core
10 MAINTAINER= theraven@FreeBSD.org
11 COMMENT= GNUstep GUI library
16 OPTIONS_DEFINE= DOCS CUPS ASPELL
20 DOCS_BUILD_DEPENDS= texi2html:textproc/texi2html \
21 texi2pdf:print/texinfo
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
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
39 USES= gnustep jpeg pkgconfig
40 USE_GNUSTEP= base build
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}"
48 PLIST_SUB+= BASEVERSION=${PORTVERSION:C/[.][0-9]*$//1}
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
55 USE_LDCONFIG= ${GNUSTEP_SYSTEM_LIBRARIES}
58 ${REINPLACE_CMD} -e "s|libpng/png.h|png.h|" ${WRKSRC}/configure
59 ${REINPLACE_CMD} -e "s|doc=no|doc=yes|" ${WRKSRC}/GNUmakefile
62 .for file in config.guess config.sub install-sh
63 @${CP} ${GNUSTEP_PREFIX}/System/Library/Makefiles/${file} ${WRKSRC}
66 .include <bsd.port.mk>