openbsd-ports/graphics/aqsis/Makefile

77 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.10 2008/04/11 11:16:47 jasper Exp $
2007-03-27 13:08:00 -04:00
SHARED_ONLY= Yes
COMMENT= photorealistic 3D rendering solution
2007-03-27 13:08:00 -04:00
V= 1.2.0
DISTNAME= aqsis-${V}
PKGNAME= ${DISTNAME}p2
CATEGORIES= graphics
2007-03-27 13:08:00 -04:00
SHARED_LIBS+= aqsis 1.0 \
aqsistypes 1.0 \
ri2rib 1.0 \
shadervm 1.0 \
slxargs 1.0
HOMEPAGE= http://www.aqsis.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2 - LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aqsis/}
WANTLIB= Half Iex Imath c m stdc++ z
2007-12-14 06:45:55 -05:00
MODULES= devel/scons
2006-11-20 13:41:42 -05:00
BUILD_DEPENDS= ::textproc/libxslt \
::devel/boost \
2007-03-27 13:08:00 -04:00
::devel/bison
LIB_DEPENDS= fltk.>=1::x11/fltk \
jpeg.>=62::graphics/jpeg \
2007-03-27 13:08:00 -04:00
tiff.>=38::graphics/tiff \
IlmImf.>=4::graphics/openexr
2007-03-27 13:08:00 -04:00
NO_REGRESS= Yes
MAKE_ENV+= CC=${CC} CXX=${CXX} LDFLAGS="-fPIC -L${X11BASE}/lib" VERSION_STR=1.2.0
pre-configure:
2007-12-14 06:45:55 -05:00
@perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g' \
2007-03-27 13:08:00 -04:00
${WRKSRC}/platform/default/SConscript
2007-12-14 06:45:55 -05:00
@perl -pi -e 's,major.*$$,major = ${LIBaqsis_VERSION:R},g;' \
2007-03-27 13:08:00 -04:00
-e 's,minor.*$$,minor = ${LIBaqsis_VERSION:E},g;' \
${WRKSRC}/version.py
2007-12-14 06:45:55 -05:00
@perl -pi -e 's,VERSION_STR.*$$,VERSION_STR "${V}",g' \
2007-03-27 13:08:00 -04:00
${WRKSRC}/version.h.in
do-build:
2007-12-14 06:45:55 -05:00
@cd ${WRKSRC} && env -i ${MAKE_ENV} ${MODSCONS_BIN} \
2007-03-27 13:08:00 -04:00
tiff_include_path=${LOCALBASE}/include \
tiff_lib_path=${LOCALBASE}/lib \
jpeg_include_path=${LOCALBASE}/include \
jpeg_lib_path=${LOCALBASE}/lib \
fltk_include_path=${LOCALBASE}/include \
fltk_lib_path=${LOCALBASE}/lib \
exr_include_path=${LOCALBASE}/include/OpenEXR \
exr_lib_path=${LOCALBASE}/include \
bison=${LOCALBASE}/bin/bison \
2007-03-27 13:08:00 -04:00
sysconfdir=${SYSCONFDIR} \
destdir=${DESTDIR} \
2007-12-14 06:45:55 -05:00
install_prefix='${PREFIX}' \
no_rpath=true build
2007-03-27 13:08:00 -04:00
post-install:
2007-03-27 13:08:00 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/aqsis
${INSTALL_DATA} ${WRKSRC}/build/aqsisrc \
${PREFIX}/share/examples/aqsis/
.include <bsd.port.mk>