blob: 2ffd4721423da717f008ef09ca65201b7998bc15 (
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
|
# New ports collection makefile for: gigi
# Date created: 2007-04-29
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= gigi
PORTVERSION= 0.6.0
PORTREVISION= 2
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= alepulver
MAINTAINER= alepulver@FreeBSD.org
COMMENT= OpenGL Graphic User Interface Library
LIB_DEPENDS= IL.1:${PORTSDIR}/graphics/devil \
boost_filesystem.4:${PORTSDIR}/devel/boost \
freetype.9:${PORTSDIR}/print/freetype2
BROKEN= Does not build
USE_BZIP2= yes
USE_SCONS= yes
SCONS_ARGS= prefix=""
USE_SDL= sdl
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}/GG
SHLIB_VER= 0
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
post-build:
.for f in GiGi GiGiNet GiGiSDL
@cd ${WRKSRC} && ${SED} -e \
's|%(prefix)s|${PREFIX}|; s|%(libdir)s|${PREFIX}/lib|; \
s|%(incdir)s|${PREFIX}/include|; \
s|%(version)s|${PORTVERSION}|; s|%(gigi_libs)s||; \
s|%(boost_include)s||; s|%(gigi_net_libs)s||; \
s|%(gigi_sdl_libs)s||; s|%(sdl_include)s||' \
${f}.pc.in > ${f}.pc
.endfor
do-install:
${MKDIR} ${PREFIX}/include/GG
${CP} -R ${WRKSRC}/GG/* ${PREFIX}/include/GG
.for lib in GiGi GiGiNet GiGiSDL
${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
${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://svn.sourceforge.net/svnroot/${PORTNAME}/trunk ${PORTNAME}
tar cjf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}
${RM} -rf ${PORTNAME}
.include <bsd.port.mk>
|