freebsd-ports/editors/libreoffice/Makefile.common

77 lines
1.9 KiB
Text
Raw Normal View History

# $FreeBSD$
PORTNAME= libreoffice
2015-04-25 19:30:29 +02:00
PORTVERSION= 4.3.7
2014-12-19 00:32:32 +01:00
RCVER= 2
#PRERELEASE= yes
LOVERSION= ${PORTVERSION}.${RCVER}
CATEGORIES?= editors
MAINTAINER?= office@FreeBSD.org
LICENSE= LGPL3 MPL
LICENSE_COMB= dual
2013-08-22 22:38:28 +02:00
.if defined(PRERELEASE)
MASTER_SITES?= http://dev-builds.libreoffice.org/pre-releases/${MASTER_SITE_SUBDIR}
.else
MASTER_SITES?= http://download.documentfoundation.org/libreoffice/${MASTER_SITE_SUBDIR}/
2013-08-22 22:38:28 +02:00
.endif
ONLY_FOR_ARCH= i386 amd64
# for dynamic plist generation
PLISTD?= ${WRKDIR}/plist_dirs
PLISTF?= ${WRKDIR}/plist_files
.if defined(LO_I18N)
2014-10-16 23:14:18 +02:00
NO_ARCH= yes
NO_BUILD= yes
RUN_DEPENDS= libreoffice:${PORTSDIR}/editors/libreoffice
.if defined(PRERELEASE)
2013-08-22 22:38:28 +02:00
MASTER_SITE_SUBDIR= deb/x86/
2013-03-08 20:01:45 +01:00
LO_I18N_FILE= LibreOffice_${LOVERSION}_Linux_x86_deb
.else
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/deb/x86/
2013-03-08 20:01:45 +01:00
LO_I18N_FILE= LibreOffice_${PORTVERSION}_Linux_x86_deb
.endif
DIST_SUBDIR?= libreoffice/i18n
PKGNAMEPREFIX= ${LO_I18N}-
2013-03-08 20:01:45 +01:00
DISTFILES= ${LO_I18N_FILE}_langpack_${LO_I18N:S/_/-/}${EXTRACT_SUFX}
.if defined(LO_HAS_HELPPACK)
2013-03-08 20:01:45 +01:00
DISTFILES+= ${LO_I18N_FILE}_helppack_${LO_I18N:S/_/-/}${EXTRACT_SUFX}
.endif
COMMENT?= ${LO_I18N} language pack for ${PORTNAME}
EXTRACT_AFTER_ARGS= --exclude '${PORTNAME}*-dict-*.deb' \
--strip-components 1
2013-02-04 21:03:49 +01:00
post-extract:
@${MKDIR} ${WRKSRC}; \
2013-02-04 21:03:49 +01:00
for deb in ${WRKDIR}/DEBS/*.deb ; do \
${TAR} xfO $${deb} data.tar.gz | ${TAR} -C ${WRKSRC} -xf - ; \
done ; \
do-install:
2014-10-16 23:14:18 +02:00
@${RM} -f ${PLISTF}
2013-02-04 21:03:49 +01:00
cd ${WRKSRC}/opt/${PORTNAME}${PORTVERSION:R} ; ${FIND} * \( -type f -o -type l \) -exec ${ECHO_CMD} "lib/${PORTNAME}/{} " \; >> ${PLISTF}
${SORT} ${PLISTF} >> ${TMPPLIST}
2013-10-25 19:05:50 +02:00
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
cd ${WRKSRC}/opt/${PORTNAME}${PORTVERSION:R} ; \
${PAX} -rw . ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
2013-08-22 22:38:28 +02:00
.else
MASTER_SITES+= http://dev-www.libreoffice.org/src/:src \
http://dev-www.libreoffice.org/extern/:ext
.if defined(PRERELEASE)
MASTER_SITE_SUBDIR= src/
.else
MASTER_SITE_SUBDIR= src/${PORTVERSION}/
.endif
.endif