2009-04-09 09:01:53 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2009/04/09 13:01:53 jasper Exp $
|
2006-11-20 04:35:48 -05:00
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= load PNG graphics files and bind them to an OpenGL texture
|
2006-11-20 04:35:48 -05:00
|
|
|
|
|
|
|
VERSION= 1.45
|
|
|
|
DISTNAME= glpng
|
2009-04-09 09:01:53 -04:00
|
|
|
PKGNAME= ${DISTNAME}-${VERSION}p1
|
2006-11-20 04:35:48 -05:00
|
|
|
SHARED_LIBS= glpng 0.0
|
|
|
|
CATEGORIES= graphics
|
|
|
|
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.wyatt100.freeserve.co.uk/
|
|
|
|
|
|
|
|
# BSD-like
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
|
|
|
|
WANTLIB= GL
|
|
|
|
|
|
|
|
LIB_DEPENDS= png.>=5::graphics/png
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
|
|
|
# This regression test wants an X11 display
|
|
|
|
REGRESS_IS_INTERACTIVE= Yes
|
|
|
|
|
2009-04-09 09:01:53 -04:00
|
|
|
REGRESS_DEPENDS= ::graphics/freeglut
|
2006-11-20 04:35:48 -05:00
|
|
|
|
|
|
|
DIST_SUBDIR= ${DISTNAME}-${VERSION}
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
WRKSRC= ${WRKDIST}/src
|
|
|
|
|
|
|
|
MAKE_FILE= ${FILESDIR}/Makefile
|
|
|
|
MAKE_ENV= SHLIB_MAJOR=${LIBglpng_VERSION:R} \
|
|
|
|
SHLIB_MINOR=${LIBglpng_VERSION:E}
|
|
|
|
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
|
|
|
|
CFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include \
|
|
|
|
-I${WRKDIR}/include
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/glpng
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/GL/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/include/GL/glpng.h \
|
|
|
|
${PREFIX}/include/GL
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/glpng.htm \
|
|
|
|
${PREFIX}/share/doc/glpng/glpng.html
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
cd ${WRKDIR}/Example \
|
|
|
|
&& ${CC} ${CFLAGS} -o Test Test.c -lm -lz \
|
|
|
|
-L${X11BASE}/lib -lGLU -lXi -lXmu \
|
|
|
|
-L${LOCALBASE}/lib -lglut \
|
|
|
|
-L${WRKBUILD} -lglpng \
|
|
|
|
&& LD_LIBRARY_PATH=${WRKSRC} ./Test
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|