blob: 95a32f47e9c68089963af1d110e93d15a92c0dc3 (
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
|
# New ports collection makefile for: fox
# Date created: 23 Feb 2000
# Whom: Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#
PORTNAME= fox
PORTVERSION?= 0.99.181
PORTREVISION?= 0
CATEGORIES= x11-toolkits
MASTER_SITES= http://www.fox-toolkit.org/ftp/ \
ftp://ftp.fox-toolkit.org/pub/ \
ftp://ftp.cfdrc.com/pub/FOX/ \
ftp://SunSITE.Informatik.RWTH-Aachen.DE/pub/Linux/fox/
MAINTAINER?= knu@FreeBSD.org
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
.if defined(WITH_XUNICODE)
PKGNAMESUFFIX= -unicode
PATCHVERSION?= ${PORTVERSION}
PATCH_SITES= http://www.ab.wakwak.com/~tino/jatk/fox/
PATCHFILES= ${PORTNAME}${PKGNAMESUFFIX}-${PATCHVERSION}.diff
PATCH_DIST_STRIP= -p1
BUILD_DEPENDS= ${X11BASE}/include/xunicode/xunicode.h:${PORTSDIR}/converters/xunicode
CONFIGURE_ENV= X_CFLAGS=-DUSE_UNICODE
PLIST_SUB= OLDFILE="" \
NEWFILE="@comment "
.else
PLIST_SUB= OLDFILE="@comment " \
NEWFILE=""
.endif
USE_MESA= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--with-opengl=mesa --with-x
.if defined(NO_SHM)
CONFIGURE_ARGS+=--with-shm=no
.else
CONFIGURE_ARGS+=--with-shm=yes
.endif
.if defined(DEBUG)
CONFIGURE_ARGS+=--enable-debug
.else
CONFIGURE_ARGS+=--enable-release
.endif
.if defined(WANT_PROFILE)
CONFIGURE_ARGS+=--with-profiling=gprof
.endif
MAKE_ARGS+= -j3
.if defined(NOPORTDOCS)
MAKE_ARGS+= DOC=
.else
MAKE_ARGS+= DOC=doc
.endif
#USE_LIBTOOL= yes
SHLIB_MAJ= 1
SHLIB_MIN= 0
MAKE_ENV+= LT_CURRENT="${SHLIB_MAJ}" LT_REVISION="${SHLIB_MIN}"
PLIST_SUB+= LIBVER="${SHLIB_MAJ}"
MAN1= reswrap.1
# Uncomment this to turn the distribution-recommended optimization flags on.
#CXXFLAGS= -O2 -Wuninitialized -ffast-math -finline-functions -fomit-frame-pointer -fexpensive-optimizations
.if defined(WITH_XUNICODE)
post-extract:
cd ${WRKSRC} && ${LN} -s ${X11BASE}/include/xunicode
.endif
post-patch:
${PERL} -i -pe 's/^(SUBDIRS\s*=\s*).*/$$1utils include src \$${DOC}/' \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>
|