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