2003-01-26 13:39:22 +01:00
|
|
|
# New ports collection makefile for: OpenEXR
|
|
|
|
# Date created: 2003/01/26
|
|
|
|
# Whom: nork@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= OpenEXR
|
|
|
|
PORTVERSION= 1.0.4
|
2003-01-27 17:48:17 +01:00
|
|
|
PORTREVISION= 1
|
2003-01-26 13:39:22 +01:00
|
|
|
CATEGORIES= graphics devel
|
|
|
|
MASTER_SITES= http://savannah.nongnu.org/download/openexr/${PORTNAME}.pkg/${PORTVERSION}/
|
|
|
|
|
|
|
|
MAINTAINER= nork@FreeBSD.org
|
2003-02-22 17:16:12 +01:00
|
|
|
COMMENT= OpenEXR, a high dynamic-range (HDR) image file format developed by ILM
|
2003-01-26 13:39:22 +01:00
|
|
|
|
2003-02-25 08:36:42 +01:00
|
|
|
USE_GCC= 3.1+
|
2003-01-26 13:39:22 +01:00
|
|
|
USE_LIBTOOL= YES
|
|
|
|
GNU_CONFIGURE= YES
|
2003-01-27 17:48:17 +01:00
|
|
|
INSTALLS_SHLIB= YES
|
2003-01-26 13:39:22 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-02-25 08:36:42 +01:00
|
|
|
.if defined(USE_GCC) && ${USE_GCC} == 3.1+ && ${OSVERSION} < 500035
|
|
|
|
CC= gcc31
|
|
|
|
CXX= g++31
|
|
|
|
BUILD_DEPENDS+= gcc31:${PORTSDIR}/lang/gcc31
|
|
|
|
MAKE_ENV+= CC=${CC} CXX=${CXX}
|
|
|
|
.endif
|
|
|
|
|
2003-01-27 17:48:17 +01:00
|
|
|
.if !defined(WITHOUT_X11) && (defined(WITH_FLTK) || defined(WITH_FLTK_XUNICODE))
|
2003-01-26 13:39:22 +01:00
|
|
|
.if defined(WITH_FLTK_XUNICODE)
|
2003-01-27 17:48:17 +01:00
|
|
|
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk-xunicode
|
2003-01-26 13:39:22 +01:00
|
|
|
.else
|
2003-01-27 17:48:17 +01:00
|
|
|
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
|
2003-01-26 13:39:22 +01:00
|
|
|
.endif
|
|
|
|
USE_MESA= YES
|
|
|
|
CONFIGURE_ARGS+=--with-fltk-prefix=${X11BASE}
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= ${PTHREAD_LDFLAGS}
|
|
|
|
PLIST_SUB+= WITH_FLTK=
|
|
|
|
.if ${OSVERSION} < 500035
|
|
|
|
pre-everything::
|
2003-01-27 17:48:17 +01:00
|
|
|
@${ECHO_CMD} ===================================================
|
2003-01-26 13:39:22 +01:00
|
|
|
@${ECHO_CMD} Please install x11-toolkits/fltk* with USE_GCC=3.1.
|
2003-01-27 17:48:17 +01:00
|
|
|
@${ECHO_CMD} ===================================================
|
2003-01-26 13:39:22 +01:00
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-fltk-prefix=DUMMY
|
2003-01-27 17:48:17 +01:00
|
|
|
PLIST_SUB+= WITH_FLTK="@comment "
|
2003-01-26 13:39:22 +01:00
|
|
|
.endif
|
2003-01-27 17:48:17 +01:00
|
|
|
|
|
|
|
.ifdef WITHOUT_X11
|
|
|
|
CONFIGURE_ARGS+=--without-x
|
2003-01-26 13:39:22 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|