blob: 96d3242259df2a1608e62812fad9fe0bdc20c02c (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# New ports collection makefile for: gnustep-back
# Date created: 27.October 2002
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= gnustep-back
PORTVERSION= 0.10.3
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_GNUSTEP}
MASTER_SITE_SUBDIR= core
PKGNAMESUFFIX?= ${BACK_SUFFIX}${PKGNAMESUFFIX2}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= GNUstep GUI backend
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
USE_XLIB= yes
GNUSTEP_PREFIX?= ${LOCALBASE}/GNUstep
PREFIX= ${GNUSTEP_PREFIX}
NO_MTREE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET=
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_ENV+= CPPFLAGS="${CPPFLAGS}"
USE_GMAKE= yes
USE_GNUSTEP= yes
USE_GNUSTEP_GUI= yes
USE_GNUSTEP_CONFIGURE= yes
USE_GNUSTEP_BUILD= yes
USE_GNUSTEP_INSTALL= yes
MAKEFILE=
MAKE_FLAGS+= OPTFLAG="${CFLAGS} -I${X11BASE}/include"
BACKVERSION= ${PORTVERSION:C/([0-9])*[.]([0-9]*).*/\1\2/1}
BREAKS_IF_PEDANTIC= yes
.if defined(WITH_GNUSTEP_XDPS)
CONFIGURE_ARGS+= --enable-graphics=xdps --with-name=xdps
CONFIGURE_ARGS+= --disable-glitz
PLIST_SUB+= BACK=xdps-${BACKVERSION}
PLIST_SUB+= USE_XLIB="@comment "
BACK_SUFFIX?= -xdps
CONFLICTS?= gunstep-back-0.* gunstep-back-art-0.* gunstep-back-cairo-0.*
.elif defined(WITH_GNUSTEP_LIBART)
LIB_DEPENDS+= art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2
CONFIGURE_ARGS+= --enable-graphics=art --with-name=art
CONFIGURE_ARGS+= --disable-glitz
PLIST_SUB+= BACK=art-${BACKVERSION}
PLIST_SUB+= USE_XLIB="@comment "
BACK_SUFFIX?= -art
CONFLICTS?= gunstep-back-0.* gunstep-back-xdps-0.* gunstep-back-cairo-0.*
.elif defined(WITH_GNUSTEP_CAIRO)
CFLAGS+= -I${LOCALBASE}/include/freetype2
LIB_DEPENDS+= art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2
LIB_DEPENDS+= glitz-glx.1:${PORTSDIR}/graphics/glitz
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
CONFIGURE_ARGS+= --enable-graphics=cairo --with-name=cairo
PLIST_SUB+= BACK=cairo-${BACKVERSION}
PLIST_SUB+= USE_XLIB="@comment "
BACK_SUFFIX?= -cairo
CONFLICTS?= gunstep-back-0.* gunstep-back-xdps-0.* gunstep-back-art-0.*
BROKEN= needs new cairo
.else
CONFIGURE_ARGS+= --enable-graphics=xlib --with-name=back
CONFIGURE_ARGS+= --disable-glitz
PLIST_SUB+= BACK=back-${BACKVERSION}
PLIST_SUB+= USE_XLIB=""
CONFLICTS?= gunstep-back-xdps-0.* gunstep-back-art-0.* gunstep-back-cairo-0.*
.endif
.include <bsd.port.pre.mk>
TARGLIB!= (cd ${PORTSDIR}/${GNUSTEP_OBJC_PORT} && make -V TARGLIB)
ADDITIONAL_LDFLAGS+= -L${TARGLIB}
MAKE_ENV+= ADDITIONAL_LDFLAGS="${ADDITIONAL_LDFLAGS}"
MAKE_FLAGS+= messages=yes
PLIST_SUB+= BACKVERSION=${PORTVERSION:C/([0-9])*[.]([0-9]*).*/\1\2/1}
.if ${OSVERSION} < 500000
ADDITIONAL_LDFLAGS+= -L/usr/lib -lcipher
MAKE_ENV+= ADDITIONAL_LDFLAGS="${ADDITIONAL_LDFLAGS}"
.endif
.if defined(WITH_GNUSTEP_XDPS)
.if ${X_WINDOW_SYSTEM:L} == xorg
XORG_LIBRARIES_PORT!= (cd ${PORTSDIR}/${GNUSTEP_GUI_PORT} && make -V X_LIBRARIES_PORT)
XORG_PORTVERSION!= (cd ${XORG_LIBRARIES_PORT} && make -V PORTVERSION)
XORG_VERSION= ${XORG_PORTVERSION:S=.==g}
.if ${XORG_VERSION} >= 690
BROKEN= xdps is no longer supported by xorg version 6.9.0 and above
.endif
.endif
.endif
pre-configure:
.for file in config.guess config.sub install-sh
@${CP} ${PREFIX}/System/Library/Makefiles/${file} ${WRKSRC}
.endfor
.include <bsd.port.post.mk>
|