Add a regression target for gl2ps.

From Ingo Feinerer who was kind enough to do the work
after my mild suggestion, thanks!
This commit is contained in:
pirofti 2015-06-03 07:35:27 +00:00
parent 78c317c699
commit beaec40f74

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/05/20 12:04:59 pirofti Exp $ # $OpenBSD: Makefile,v 1.2 2015/06/03 07:35:27 pirofti Exp $
COMMENT = OpenGL to PostScript printing library COMMENT = OpenGL to PostScript printing library
DISTNAME = gl2ps-1.3.8 DISTNAME = gl2ps-1.3.8
REVISION = 0
SHARED_LIBS = gl2ps 0.0 # 1.3 SHARED_LIBS = gl2ps 0.0 # 1.3
@ -26,6 +27,23 @@ BUILD_DEPENDS = print/texlive/base
LIB_DEPENDS = graphics/freeglut \ LIB_DEPENDS = graphics/freeglut \
graphics/png graphics/png
TEST_IS_INTERACTIVE = x11
WRKSRC = ${WRKDIR}/${DISTNAME}-source WRKSRC = ${WRKDIR}/${DISTNAME}-source
TEST_TMP=${WRKDIR}/test_tmp
do-test:
mkdir -p ${TEST_TMP}
${CC} -I${LOCALBASE}/include -I${X11BASE}/include \
-L${LOCALBASE}/lib -L${X11BASE}/lib -L${WRKBUILD} \
-lgl2ps -lglut -lGL -lGLU -lX11 -lm \
${WRKSRC}/gl2psTestSimple.c -o ${TEST_TMP}/gl2psTestSimple
${CC} -I${LOCALBASE}/include -I${X11BASE}/include \
-L${LOCALBASE}/lib -L${X11BASE}/lib -L${WRKBUILD} \
-lgl2ps -lglut -lGL -lGLU -lX11 -lm \
-DHAVE_LIBPNG -DHAVE_ZLIB -lpng -lz \
${WRKSRC}/gl2psTest.c -o ${TEST_TMP}/gl2psTest
cd ${TEST_TMP} && LD_LIBRARY_PATH=${WRKBUILD} ${TEST_TMP}/gl2psTestSimple
cd ${TEST_TMP} && LD_LIBRARY_PATH=${WRKBUILD} ${TEST_TMP}/gl2psTest
.include <bsd.port.mk> .include <bsd.port.mk>