Tweak x11-toolkits/p5-Wx version 0.99.23_2
[dports.git] / x11-toolkits / gai / Makefile
1 # Created by: ijliao
2 # $FreeBSD$
3
4 PORTNAME=       gai
5 PORTVERSION=    0.5.10
6 PORTREVISION=   16
7 CATEGORIES=     x11-toolkits gnome
8 MASTER_SITES=   SF/${PORTNAME}/GAI%20-%20Library/${PORTNAME}-${PORTVERSION}
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        General Applet Interface Library
12
13 LIB_DEPENDS=    libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
14
15 USES=           gettext-tools pkgconfig tar:bzip2
16 USE_GL=         gl
17 USE_SDL=        sdl
18 USE_GNOME=      libgnomeui
19 GNU_CONFIGURE=  yes
20 CONFIGURE_ENV=  SDLCONF=${SDL_CONFIG}
21 CONFIGURE_ARGS= --disable-gnome
22 CPPFLAGS+=      `pkg-config --cflags libgnomeui-2.0`
23
24 PLIST_FILES=    include/gai/gai.h lib/libgai.so.${PORTVERSION} \
25                 lib/libgai.so.0 lib/libgai.so libdata/pkgconfig/gai.pc \
26                 share/locale/de/LC_MESSAGES/gai.mo
27 PORTDOCS=       *
28 USE_LDCONFIG=   yes
29
30 OPTIONS_DEFINE= DOCS
31
32 post-patch:
33         @${REINPLACE_CMD} -e "s|sdl-config --|${SDL_CONFIG} --|g; \
34                 s|/usr/X11R6|${LOCALBASE}|g" ${WRKSRC}/configure
35
36 post-install:
37         cd ${WRKSRC}/docs && \
38         ${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
39         ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
40 .for dir in docking examples templates
41         cd ${WRKSRC} && \
42         ${FIND} ${dir} -type d -exec ${MKDIR} "${STAGEDIR}${EXAMPLESDIR}/{}" \; && \
43         ${FIND} ${dir} -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${EXAMPLESDIR}/{}" \;
44 .endfor
45         @${FIND} ${STAGEDIR}${EXAMPLESDIR} -type f | \
46                 ${SED} "s,^${STAGEDIR}${PREFIX}/,," >> ${TMPPLIST}
47         @${FIND} ${STAGEDIR}${EXAMPLESDIR} -type d | ${SORT} -r | \
48                 ${SED} "s,^${STAGEDIR}${PREFIX}/,@dirrm ," >> ${TMPPLIST}
49
50 .include <bsd.port.mk>