2004-05-29 18:08:55 -04:00
|
|
|
# New ports collection makefile for: oglext
|
|
|
|
# Date created: 01 Feb 2004
|
|
|
|
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= oglext
|
2005-09-04 06:15:59 -04:00
|
|
|
PORTVERSION= 1.2.0
|
2004-05-29 18:08:55 -04:00
|
|
|
CATEGORIES= graphics devel
|
2004-08-21 06:08:58 -04:00
|
|
|
MASTER_SITES= http://www.julius.caesar.de/oglext/${PORTVERSION}/
|
2004-05-29 18:08:55 -04:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
|
2006-07-22 00:28:27 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-05-29 18:08:55 -04:00
|
|
|
COMMENT= A library for easier access to OpenGL extensions
|
|
|
|
|
2004-08-21 06:08:58 -04:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/tmake:${PORTSDIR}/devel/tmake
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2004-05-29 18:08:55 -04:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GL= yes
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2004-08-21 06:08:58 -04:00
|
|
|
ALL_TARGET= all staticlib
|
|
|
|
|
|
|
|
TMAKE?= ${LOCALBASE}/bin/tmake
|
|
|
|
TMAKEPATH?= ${LOCALBASE}/share/tmake/freebsd-g++
|
2004-05-29 18:08:55 -04:00
|
|
|
|
2005-09-04 06:15:59 -04:00
|
|
|
# a quick hack to fix dir's permissions
|
|
|
|
post-extract:
|
|
|
|
@(for i in 1 2; do \
|
|
|
|
${CHMOD} u+x `${FIND} ${WRKSRC} -type d`; \
|
|
|
|
done)
|
|
|
|
|
2004-05-29 18:08:55 -04:00
|
|
|
pre-patch:
|
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s/`${PRINTF} '\r'`//"
|
|
|
|
|
2004-08-21 06:08:58 -04:00
|
|
|
pre-build:
|
|
|
|
${SETENV} TMAKEPATH=${TMAKEPATH} \
|
|
|
|
${TMAKE} ${WRKSRC}/build/OglExt.pro >${BUILD_WRKSRC}/Makefile
|
|
|
|
|
2004-05-29 18:08:55 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/libOglExt.so.1 ${PREFIX}/lib
|
|
|
|
${LN} -sf ${PREFIX}/lib/libOglExt.so.1 ${PREFIX}/lib/libOglExt.so
|
2004-08-21 06:08:58 -04:00
|
|
|
${INSTALL_DATA} ${BUILD_WRKSRC}/libOglExt.a ${PREFIX}/lib
|
2004-05-29 18:08:55 -04:00
|
|
|
# install includes in separate dir to avoid conflicts with Mesa
|
|
|
|
@${MKDIR} ${PREFIX}/include/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/${PORTNAME}
|
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2005-09-04 06:15:59 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
2004-05-29 18:08:55 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|