55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
|
# ex:ts=8
|
||
|
# Ports collection makefile for: gai
|
||
|
# Date created: Feb 16, 2004
|
||
|
# Whom: ijliao
|
||
|
#
|
||
|
# $FreeBSD$
|
||
|
#
|
||
|
|
||
|
PORTNAME= gai
|
||
|
PORTVERSION= 0.5.2
|
||
|
CATEGORIES= x11-toolkits gnome
|
||
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||
|
|
||
|
MAINTAINER= ports@FreeBSD.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= yes
|
||
|
USE_GNOME= gnomehack gnomeprefix gtk20 pango gnomepanel
|
||
|
GNU_CONFIGURE= yes
|
||
|
CONFIGURE_ENV= SDLCONF=${SDL_CONFIG}
|
||
|
|
||
|
PLIST_FILES= include/gai/gai.h lib/libgai.so.0.5.2 lib/libgai.so.0 \
|
||
|
lib/libgai.so libdata/pkgconfig/gai.pc
|
||
|
PLIST_DIRS= include/gai
|
||
|
|
||
|
post-patch:
|
||
|
@${REINPLACE_CMD} -e "s|sdl-config --|${SDL_CONFIG} --|g" ${WRKSRC}/configure
|
||
|
@${REINPLACE_CMD} -e "s|lib/pkgconfig/|libdata/pkgconfig/|" ${WRKSRC}/gai/Makefile.in
|
||
|
|
||
|
.if !defined(NOPORTDOCS)
|
||
|
post-install:
|
||
|
@${MKDIR} ${DOCSDIR}
|
||
|
.for file in FAQ.html referenceguide.html
|
||
|
${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}
|
||
|
@${ECHO_CMD} "${DOCSDIR:S,^${PREFIX},,}/${file}" >> ${TMPPLIST}
|
||
|
.endfor
|
||
|
@${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX},,}" >> ${TMPPLIST}
|
||
|
@${MKDIR} ${EXAMPLESDIR}
|
||
|
.for dir in docking examples templates
|
||
|
${CP} -R ${WRKSRC}/${dir} ${EXAMPLESDIR}
|
||
|
.endfor
|
||
|
@${FIND} ${EXAMPLESDIR} -type f | \
|
||
|
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
|
||
|
@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
|
||
|
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
|
||
|
.endif
|
||
|
|
||
|
.include <bsd.port.mk>
|