mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include "${.CURDIR}/../../editors/libreoffice/Makefile.common"
|
|
|
|
MASTER_SITES= https://download.documentfoundation.org/libreoffice/${MASTER_SITE_SUBDIR}/
|
|
.if defined(PRERELEASE)
|
|
MASTER_SITES+= https://dev-builds.libreoffice.org/pre-releases/deb/x86_64/
|
|
MASTER_SITE_SUBDIR= testing/${PORTVERSION}/deb/x86_64
|
|
LO_I18N_FILE= LibreOffice_${LOVERSION}_Linux_x86-64_deb
|
|
.else
|
|
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/deb/x86_64
|
|
LO_I18N_FILE= LibreOffice_${PORTVERSION}_Linux_x86-64_deb
|
|
.endif
|
|
PKGNAMEPREFIX= ${LO_I18N}-
|
|
DISTFILES= ${LO_I18N_FILE}_langpack_${LO_I18N:S/_/-/}${EXTRACT_SUFX}
|
|
.if defined(LO_HAS_HELPPACK)
|
|
DISTFILES+= ${LO_I18N_FILE}_helppack_${LO_I18N:S/_/-/}${EXTRACT_SUFX}
|
|
.endif
|
|
DIST_SUBDIR= libreoffice/i18n
|
|
|
|
COMMENT?= ${LO_I18N} language pack for ${PORTNAME}
|
|
|
|
DESCR?= ${.CURDIR}/../../editors/libreoffice/pkg-descr.i18n
|
|
|
|
RUN_DEPENDS?= libreoffice:editors/libreoffice
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
EXTRACT_AFTER_ARGS= --exclude '${PORTNAME}*-dict-*.deb' \
|
|
--strip-components 1
|
|
|
|
post-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
for deb in ${WRKDIR}/DEBS/*.deb ; do \
|
|
${TAR} xfO $${deb} data.tar.xz | ${TAR} -C ${WRKSRC} -xf - ; \
|
|
done
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
|
|
cd ${WRKSRC}/opt/${PORTNAME}${PORTVERSION:R} ; \
|
|
${PAX} -rw . ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
|
|
|
|
post-install:
|
|
@cd ${WRKSRC}/opt/${PORTNAME}${PORTVERSION:R} && \
|
|
${FIND} -s * -not -type d \
|
|
-exec ${ECHO_CMD} "lib/${PORTNAME}/{}" \; >> ${TMPPLIST} && \
|
|
${FIND} -d * -type d -empty \
|
|
-exec ${ECHO_CMD} "@dir lib/${PORTNAME}/{}" \; >> ${TMPPLIST}
|