summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gai/Makefile
blob: f03ee6be75d26114d28e98e348eb6c640ae8c5c4 (plain)
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
# ex:ts=8
# Ports collection makefile for:	gai
# Date created:			Feb 16, 2004
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	gai
PORTVERSION=	0.5.10
PORTREVISION=	1
CATEGORIES=	x11-toolkits gnome
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	lx@redundancy.redundancy.org
COMMENT=	General Applet Interface Library

LIB_DEPENDS=	gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext

USE_REINPLACE=	yes
USE_BZIP2=	yes
USE_GL=		yes
USE_SDL=	sdl
USE_GNOME=	gnomepanel
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	SDLCONF=${SDL_CONFIG}

PLIST_FILES=	include/gai/gai.h lib/libgai.so.${PORTVERSION} \
		lib/libgai.so.0 lib/libgai.so libdata/pkgconfig/gai.pc \
		share/locale/de/LC_MESSAGES/gai.mo
PLIST_DIRS=	include/gai
PORTDOCS=	*
INSTALLS_SHLIB=	yes

post-patch:
	@${REINPLACE_CMD} -e "s|sdl-config --|${SDL_CONFIG} --|g; \
		s|/usr/X11R6|${X11BASE}|g" ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
	cd ${WRKSRC}/docs && \
	${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
	${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif
.for dir in docking examples templates
	cd ${WRKSRC} && \
	${FIND} ${dir} -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
	${FIND} ${dir} -type f -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
.endfor
	@${FIND} ${EXAMPLESDIR} -type f | \
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
	@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
		${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud