1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/editors/lazarus/Makefile.common
Baptiste Daroussin 5271da855f Rely on bsdtar to autodetermine the format of the distfiles when possible
For a while now bsdtar is able to autotermine compression and archive format.
Let's then use tar directly instead of piping to tar.

Now USE_BZIP2 and USE_XZ only set EXTRACT_SUFX to the right format
2013-04-29 08:57:12 +00:00

54 lines
1.8 KiB
Makefile

# $FreeBSD: ports/editors/lazarus/Makefile.common,v 1.3 2012/12/12 21:08:13 svnexp Exp $
#USE_BZIP2= yes
USE_GMAKE= yes
EXTRACT_AFTER_ARGS= ${LCLDIR} ${PORTNAME}/packager/registration \
${PORTNAME}/components/lazutils
PATCHDIR= ${.CURDIR}/files
FILESDIR= ${.CURDIR}/files
PLIST_SUB+= BUILDNAME=${BUILDNAME}
LCLDIR= ${PORTNAME}/lcl
WRKSRC= ${WRKDIR}/${LCLDIR}
.if ${PKGNAMESUFFIX} != "-lcl-units"
BUILDSRC= ${WRKSRC}/interfaces
.else
BUILDSRC= ${WRKSRC}
.endif
.if ${PKGNAMESUFFIX} != "-lcl-units"
pre-build:
@${MKDIR} ${WRKSRC}/units/${BUILDNAME}
@${LN} -s ${LOCALBASE}/share/lazarus/lcl/units/${BUILDNAME}/* ${WRKDIR}/${LCLDIR}/units/${BUILDNAME}/
.endif
do-build:
@cd ${WRKDIR}/${PORTNAME}/packager/registration && \
${SETENV} ${MAKE_ENV} ${GMAKE} LCL_PLATFORM=${LCL_INTERFACE}
@cd ${WRKDIR}/${PORTNAME}/components/lazutils && \
${SETENV} ${MAKE_ENV} ${GMAKE} LCL_PLATFORM=${LCL_INTERFACE}
@cd ${BUILDSRC} && \
${SETENV} ${MAKE_ENV} ${GMAKE} LCL_PLATFORM=${LCL_INTERFACE}
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC}/units/${BUILDNAME}/${LCL_INTERFACE} && \
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/lcl/units/%%BUILDNAME%%/${LCL_INTERFACE}/|' >> ${PLIST}
.if ${PKGNAMESUFFIX} != "-lcl-units"
@${ECHO_CMD} "@dirrm %%DATADIR%%/lcl/units/%%BUILDNAME%%/${LCL_INTERFACE}" >> ${PLIST}
.endif
@${ECHO_CMD} "@dirrmtry %%DATADIR%%/lcl/units/%%BUILDNAME%%" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry %%DATADIR%%/lcl/units" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry %%DATADIR%%/lcl" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST}
do-install:
@${MKDIR} ${DATADIR}/lcl/units/${BUILDNAME}/${LCL_INTERFACE}
@cd ${WRKSRC}/units/${BUILDNAME}/${LCL_INTERFACE} && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/lcl/units/${BUILDNAME}/${LCL_INTERFACE}/{}" \;