blob: 885e69f1df33ea89b50ceb401d00cb85c42ef4d8 (
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
|
# New ports collection makefile for: gigi
# Date created: 2007-04-29
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= gigi
PORTVERSION= 0.8.0.1048
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_CMAKE= yes
CMAKE_ARGS= -DBUILD_TUTORIALS:BOOL=OFF
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 <bsd.port.pre.mk>
.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
CMAKE_ARGS+= -DBUILD_OGRE_DRIVER:BOOL=OFF -DBUILD_OGRE_OIS_PLUGIN:BOOL=OFF
PLIST_SUB+= OGRE="@comment "
.endif
post-build:
@${REINPLACE_CMD} -Ee 's,^prefix=.*,prefix=${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 -r 1048 https://${PORTNAME}.svn.sourceforge.net/svnroot/${PORTNAME}/trunk ${PORTNAME}
tar cjf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}
${RM} -rf ${PORTNAME}
.include <bsd.port.post.mk>
|