1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

fix media installation

This commit is contained in:
Oliver Lehmann 2009-05-14 07:32:18 +00:00
parent 657364b7b1
commit dd4c5438dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233873
2 changed files with 1422 additions and 1430 deletions

View File

@ -47,21 +47,15 @@ post-patch:
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^CFLAGS =.*|& $${SDL_CFLAGS} -I${LOCALBASE}/include|g' \
${WRKSRC}/src/framework/Makefile.in
@${REINPLACE_CMD} -e 's|<SDL/|<|g' \
${WRKSRC}/src/framework/scrap.c
@${REINPLACE_CMD} -e 's|<SDL/|<|g; \
s|sighandler_t|sig_t|g; \
s|_NSIG|NSIG|g' \
@${REINPLACE_CMD} -e 's|sighandler_t|sig_t|g' \
${WRKSRC}/src/components/ogre/OgreSetup.cpp
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' \
${WRKSRC}/src/components/ogre/SceneManagers/EmberPagingSceneManager/src/filetutils.cpp
@${REINPLACE_CMD} -e 's| install-dist_docDATA | |g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|$$(sysconfdir)/ember/|$$(sysconfdir)/ember|g' \
${WRKSRC}/Makefile.in \
${WRKSRC}/src/components/ogre/Makefile.in
post-install:
(cd ${WRKDIR}/media-${PORTVERSION} && ${FIND} . -type f -print | \
(cd ${WRKDIR}/media-${PORTVERSION}/media && ${FIND} . -type f -print | \
${CPIO} -pdmu -R${SHAREOWN}:${SHAREGRP} ${DATADIR}/media)
${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 0755
${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 0644

File diff suppressed because it is too large Load Diff