2000-03-22 00:34:21 +00:00
|
|
|
# New ports collection makefile for: fox
|
|
|
|
# Date created: 23 Feb 2000
|
|
|
|
# Whom: Will Andrews <andrews@technologist.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-10 01:11:24 +00:00
|
|
|
PORTNAME= fox
|
2003-05-10 14:21:33 +00:00
|
|
|
PORTVERSION= 1.1.25
|
2000-03-22 00:34:21 +00:00
|
|
|
CATEGORIES= x11-toolkits
|
2001-09-21 17:32:00 +00:00
|
|
|
MASTER_SITES= http://www.fox-toolkit.org/ftp/ \
|
|
|
|
ftp://ftp.fox-toolkit.org/pub/ \
|
|
|
|
ftp://ftp.cfdrc.com/pub/FOX/ \
|
2000-03-22 00:34:21 +00:00
|
|
|
ftp://SunSITE.Informatik.RWTH-Aachen.DE/pub/Linux/fox/
|
|
|
|
|
2003-01-25 11:05:08 +00:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-02-18 06:05:42 +00:00
|
|
|
COMMENT?= Fast and extensive C++ GUI toolkit
|
2000-03-22 00:34:21 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2003-02-04 23:19:18 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
2001-03-18 14:22:47 +00:00
|
|
|
|
(1) Add new variable, XFREE86_VERSION, to specify which version of
XFree86 (3 or 4) to depend to when USE_XLIB is set.
XFREE86_VERSION defaults to 3 for now, but adventurous users can
override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB
will add a dependency to x11/XFree86; when it is set to 4, the
dependency will be to x11/XFree86-4-libraries. When
XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS
hacks to avoid messing with XFree86 are turned off.
Since XFree86 version 4 includes some software that used to be
separate ports, when XFREE86_VERSION=3 the following variables are
provided:
USE_DGS LIB_DEPENDS on x11/dgs
USE_FREETYPE LIB_DEPENDS on print/freetype
USE_MESA LIB_DEPENDS on graphics/Mesa3
USE_XPM LIB_DEPENDS on graphics/xpm
When XFREE86_VERSION=4, these variables have no effect. The
LIB_DEPENDS in the tree for the above four ports have all been
converted to the USE_* counterparts. For your information, this
is the count of the number of ports:
USE_DGS 0
USE_FREETYPE 16
USE_MESA 36
USE_XPM 236
There is a new variable, XAWVER, which is set to 6 when
XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also
passed to PLIST_SUB so ports that build Xaw based shared libraries
can use this variable to substitute the shlib version number.
There is also a provision of using a separate mtree file for
XFREE86_VERSION=4, but that part is not enabled yet.
Reviewed by: the ports list
Tested by: make index (XFREE86_VERSION=3 only)
(2) Add hebrew to list of valid categories.
Submitted by: nbm
2000-08-03 09:28:57 +00:00
|
|
|
USE_MESA= yes
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2003-01-14 11:57:29 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-12-02 20:32:32 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-10-30 09:36:55 +00:00
|
|
|
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
2003-02-08 00:14:58 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lXm"
|
|
|
|
CONFIGURE_ARGS+=--with-opengl=mesa --with-x \
|
|
|
|
--enable-xthreads
|
2003-02-04 23:19:18 +00:00
|
|
|
|
|
|
|
MAN1= reswrap.1
|
|
|
|
|
|
|
|
##
|
|
|
|
## Additional Options
|
|
|
|
##
|
|
|
|
#
|
|
|
|
.if defined(WITHOUT_SHM)
|
2000-03-22 00:34:21 +00:00
|
|
|
CONFIGURE_ARGS+=--with-shm=no
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-shm=yes
|
|
|
|
.endif
|
2003-02-04 23:19:18 +00:00
|
|
|
#
|
|
|
|
.if defined(WITH_CUPS)
|
|
|
|
CONFIGURE_ARGS+=--enable-cups
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-cups
|
|
|
|
.endif
|
|
|
|
#
|
|
|
|
.if defined(WITH_DEBUG)
|
2000-03-22 00:34:21 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-release
|
|
|
|
.endif
|
2003-02-04 23:19:18 +00:00
|
|
|
#
|
|
|
|
.if defined(WITH_FOX_APPLICATIONS)
|
|
|
|
PLIST_SUB+= APPS=""
|
|
|
|
|
|
|
|
MAN1+= PathFinder.1 adie.1 calculator.1
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= APPS="@comment "
|
|
|
|
.endif
|
|
|
|
#
|
|
|
|
.if defined(WITH_OPTIMIZED_CXXFLAGS)
|
|
|
|
# turn distribution-recommended optimization flags back on
|
|
|
|
CXXFLAGS+= -Wuninitialized -ffast-math -finline-functions -fomit-frame-pointer -fexpensive-optimizations
|
|
|
|
.endif
|
|
|
|
#
|
|
|
|
.if defined(WITH_PROFILING)
|
2000-03-22 00:34:21 +00:00
|
|
|
CONFIGURE_ARGS+=--with-profiling=gprof
|
|
|
|
.endif
|
2003-02-04 23:19:18 +00:00
|
|
|
#
|
2001-07-20 12:44:47 +00:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
MAKE_ARGS+= DOC=
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= DOC=doc
|
|
|
|
.endif
|
2001-02-24 20:23:18 +00:00
|
|
|
|
2001-12-02 20:32:32 +00:00
|
|
|
post-patch:
|
2003-02-04 23:19:18 +00:00
|
|
|
# CXXFLAGS safeness
|
|
|
|
.if !defined(WITH_OPTIMIZED_CXXFLAGS)
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's|-O2|${CXXFLAGS}|g' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's|-O2|-O2 ${CXXFLAGS}|g' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
.endif
|
|
|
|
# doc prefix safeness
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's|^(htmldir).*$$|\1=${DOCSDIR}/html|' \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's|^(artdir).*$$|\1=${DOCSDIR}/html|' \
|
|
|
|
${WRKSRC}/doc/art/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's|^(screenshotsdir).*$$|\1=${DOCSDIR}/html|' \
|
|
|
|
${WRKSRC}/doc/screenshots/Makefile.in
|
|
|
|
.if !defined(WITH_FOX_APPLICATIONS)
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's,^(SUBDIRS.*)adie,\1,; \
|
|
|
|
s,^(SUBDIRS.*)pathfinder,\1,; \
|
|
|
|
s,^(SUBDIRS.*)calculator,\1,' \
|
2001-12-02 20:32:32 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
2003-02-04 23:19:18 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_OPTIMIZED_CXXFLAGS)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'You can enable additional compilation optimizations'
|
|
|
|
@${ECHO_MSG} 'by defining WITH_OPTIMIZED_CXXFLAGS'
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_CUPS)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'You can enable CUPS support by defining WITH_CUPS'
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_DEBUG)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'You can build DEBUG support by defining WITH_DEBUG'
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_FOX_APPLICATIONS)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'You can install FOX sample applications by defining WITH_FOX_APPLICATIONS"
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_PROFILING)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'You can build PROFILING support by defining WITH_PROFILING'
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SHM)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'You can disable Shared Memory support by defining WITHOUT_SHM'
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG}
|
2001-12-02 20:32:32 +00:00
|
|
|
|
2003-02-08 00:14:58 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-05-18 11:36:12 +00:00
|
|
|
.if ${OSVERSION} >= 500113
|
|
|
|
BROKEN= "Configure fails"
|
|
|
|
.endif
|
|
|
|
|
2003-02-08 00:14:58 +00:00
|
|
|
##
|
|
|
|
## Port conflict management
|
|
|
|
##
|
|
|
|
.if exists(${LOCALBASE}/lib/libFOX-1.0.so)
|
|
|
|
IGNORE= Conflict management: you have port fox-devel installed. The\
|
2003-05-10 14:21:33 +00:00
|
|
|
fox port is incompatible with fox-devel one. You have to\
|
|
|
|
uninstall fox-devel port if you really need the fox one
|
2003-02-08 00:14:58 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|
|
|
|
|