1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/x11-toolkits/gai/Makefile
2015-05-11 09:59:11 +00:00

49 lines
1.4 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= gai
PORTVERSION= 0.5.10
PORTREVISION= 16
CATEGORIES= x11-toolkits gnome
MASTER_SITES= SF/${PORTNAME}/GAI%20-%20Library/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= General Applet Interface Library
LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
USES= gettext-tools pkgconfig tar:bzip2
USE_GL= gl
USE_SDL= sdl
USE_GNOME= libgnomeui
GNU_CONFIGURE= yes
CONFIGURE_ENV= SDLCONF=${SDL_CONFIG}
CONFIGURE_ARGS= --disable-gnome
CPPFLAGS+= `pkg-config --cflags libgnomeui-2.0`
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
PORTDOCS= *
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e "s|sdl-config --|${SDL_CONFIG} --|g; \
s|/usr/X11R6|${LOCALBASE}|g" ${WRKSRC}/configure
post-install:
cd ${WRKSRC}/docs && \
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
.for dir in docking examples templates
cd ${WRKSRC} && \
${FIND} ${dir} -type d -exec ${MKDIR} "${STAGEDIR}${EXAMPLESDIR}/{}" \; && \
${FIND} ${dir} -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${EXAMPLESDIR}/{}" \;
.endfor
@${FIND} ${STAGEDIR}${EXAMPLESDIR} -type f | \
${SED} "s,^${STAGEDIR}${PREFIX}/,," >> ${TMPPLIST}
.include <bsd.port.mk>