# New ports collection makefile for: gigi # Date created: 2007-04-29 # Whom: alepulver # # $FreeBSD$ # PORTNAME= gigi PORTVERSION= 0.6.0.813 PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= oliver MAINTAINER= oliver@FreeBSD.org COMMENT= OpenGL Graphic User Interface Library LIB_DEPENDS= IL.2:${PORTSDIR}/graphics/devil \ boost_python.4:${PORTSDIR}/devel/boost-python-libs \ freetype.9:${PORTSDIR}/print/freetype2 USE_GCC= 4.4+ USE_SCONS= yes SCONS_ARGS= prefix="" pkgconfigdir="" build_tutorials=0 USE_BZIP2= yes USE_SDL= sdl USE_LDCONFIG= yes # Ensure local headers are found first, otherwise updating would fail. CFLAGS+= -I. OPTIONS= OGRE "Enable Ogre (3D engine) support" on SHLIB_VER= 0 PLIST_SUB= SHLIB_VER="${SHLIB_VER}" GIGI_LIBS= GiGi GiGiSDL WRKSRC= ${WRKDIR}/gigi/GG .include .if defined(WITH_OGRE) BUILD_DEPENDS+= ${LOCALBASE}/lib/libOgreMain.so:${PORTSDIR}/graphics/ogre3d \ ${LOCALBASE}/lib/libOIS.so:${PORTSDIR}/devel/ois RUN_DEPENDS+= ${LOCALBASE}/lib/libOgreMain.so:${PORTSDIR}/graphics/ogre3d \ ${LOCALBASE}/lib/libOIS.so:${PORTSDIR}/devel/ois PLIST_SUB+= OGRE="" GIGI_LIBS+= GiGiOgre GiGiOgrePlugin_OIS .else SCONS_ARGS+= build_ogre_driver=0 build_ogre_ois_plugin=0 PLIST_SUB+= OGRE="@comment " .endif .if ${ARCH} == "sparc64" BROKEN= Does not compile .endif post-patch: @${REINPLACE_CMD} -e 's|png_infopp_NULL|NULL|g' -e 's|int_p_NULL|NULL|g' \ -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \ ${WRKSRC}/src/GIL/extension/io/png_dynamic_io.hpp \ ${WRKSRC}/src/GIL/extension/io/png_io_private.hpp @${REINPLACE_CMD} -e 's|Clr\.cpp|ClrConstants\.cpp|g' \ ${WRKSRC}/src/SConscript post-build: @${REINPLACE_CMD} -Ee 's,^(prefix|(lib|include)dir)=,&${PREFIX},' \ ${WRKSRC}/*.pc do-install: ${MKDIR} ${PREFIX}/include/GG cd ${WRKSRC}/GG && ${FIND} . -name "*.h" -depth | ${CPIO} -pdmv ${PREFIX}/include/GG .for lib in ${GIGI_LIBS} ${INSTALL_PROGRAM} ${WRKSRC}/lib${lib}.so \ ${PREFIX}/lib/lib${lib}.so.${SHLIB_VER} cd ${PREFIX}/lib && ${LN} -sf lib${lib}.so.${SHLIB_VER} lib${lib}.so -[ -f ${WRKSRC}/${lib}.pc ] && ${INSTALL_DATA} ${WRKSRC}/${lib}.pc ${PREFIX}/libdata/pkgconfig .endfor maint-gen-distfile: @if [ -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ ${ECHO_CMD} "ERROR: the distfile already exists."; \ ${FALSE}; \ fi svn export https://${PORTNAME}.svn.sourceforge.net/svnroot/${PORTNAME}/trunk ${PORTNAME} tar cjf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${PORTNAME} ${RM} -rf ${PORTNAME} .include