Adjust WANTLIB and bump.
Silence post-extract a little bit. Enable regression tests.
This commit is contained in:
parent
64333027b3
commit
4eb670526b
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.22 2010/05/22 10:37:35 landry Exp $
|
||||
# $OpenBSD: Makefile,v 1.23 2010/06/24 19:53:12 kili Exp $
|
||||
#
|
||||
# Credits to Matt Jibson. He did the initial work on this port and many
|
||||
# tools it depends on.
|
||||
@ -13,7 +13,7 @@ COMMENT-docs= lilypond documentation
|
||||
VERSION= 2.12.3
|
||||
DISTNAME= lilypond-${VERSION}
|
||||
DISTNAME-docs= ${DISTNAME}-1.documentation
|
||||
PKGNAME-main= lilypond-${VERSION}
|
||||
PKGNAME-main= lilypond-${VERSION}p0
|
||||
PKGNAME-docs= lilypond-docs-${VERSION}
|
||||
CATEGORIES= print
|
||||
|
||||
@ -60,7 +60,7 @@ PKG_ARCH-docs= *
|
||||
LIB_DEPENDS-docs=
|
||||
RUN_DEPENDS-docs=
|
||||
|
||||
WANTLIB-main= X11 c expat fontconfig freetype gmp ltdl m \
|
||||
WANTLIB-main= X11 c expat fontconfig freetype gmp gthread-2.0 ltdl m \
|
||||
pthread stdc++ z
|
||||
MODULES= devel/gettext lang/python
|
||||
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
||||
@ -77,19 +77,36 @@ BUILD_DEPENDS= ::print/mftrace \
|
||||
|
||||
SUBST_VARS+= VERSION
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
# Extract the documentation distfiles.
|
||||
# Remove files generated by bison to avoid some recompilations
|
||||
# during fake stage.
|
||||
post-extract:
|
||||
bzip2 -cd ${FULLDISTDIR}/${DISTNAME-docs}.tar.bz2 | \
|
||||
@bzip2 -cd ${FULLDISTDIR}/${DISTNAME-docs}.tar.bz2 | \
|
||||
pax -rs '!^\.!${WRKDIR}/docs!'
|
||||
rm -rf ${WRKSRC}/lily/out
|
||||
@rm -rf ${WRKSRC}/lily/out
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lilypond/${VERSION}
|
||||
umask 022 && cp -R ${WRKDIR}/docs/share/doc/lilypond/html/* \
|
||||
${PREFIX}/share/doc/lilypond/${VERSION}
|
||||
|
||||
REGRESS_DEPENDS= ::print/lilypond-test-baseline:patch
|
||||
|
||||
pre-regress:
|
||||
.for d in input/regression input/regression/musicxml
|
||||
-@mv ${WRKDIR}/print/lilypond-test-baseline/${DISTNAME}/$d/out-test-baseline ${WRKBUILD}/$d
|
||||
.endfor
|
||||
|
||||
post-regress:
|
||||
@echo Please check ${WRKBUILD}/out/test-results/index.html for \
|
||||
any graphical anomalities.
|
||||
|
||||
# Build a new lilypond-test-baseline-*.tar.bz2
|
||||
test-baseline: build
|
||||
@cd ${WRKBUILD} && exec ${_SYSTRACE_CMD} ${SETENV} ${MAKE_ENV} \
|
||||
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} test-baseline
|
||||
cd ${WRKDIR} && pax -wjf ${DISTNAME:C/-.*//}-test-baseline-${VERSION}.tar.bz2 \
|
||||
${DISTNAME}/input/regression/out-test-baseline \
|
||||
${DISTNAME}/input/regression/musicxml/out-test-baseline
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
x
Reference in New Issue
Block a user