1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/french/aster/bsd.aster.mk
John Marino 75b8db4f24 french/aster (and depends): specify post-extraction with ${TAR}
It's possible that EXTRACT_CMD won't be predefined in the near future
in order to support distfiles in multiple formats.  We know the post-
extraction tool needs to be tar, so let's specify it directly.

Approved by:	infrastructure improvements blanket
2014-05-29 10:39:36 +00:00

27 lines
770 B
Makefile

# Created by: Thierry Thomas (<thierry@pompo.net>)
# $FreeBSD$
#
# Common variables used by ports related to Code_Aster
DISTVERSIONPREFIX= full-src-
DISTVERSIONSUFFIX= .noarch
MASTER_SITES= http://www.code-aster.org/FICHIERS/
DISTNAME= aster-${DISTVERSIONPREFIX}${ASTER_DISTVERSION}${DISTVERSIONSUFFIX}
DISTINFO_FILE= ${.CURDIR}/../../french/aster/distinfo
ASTER_VER= 11.5.0
ASTER_DISTVERSION= ${ASTER_VER}-4
EXTRACT_WRKSRC= ${WRKDIR}/aster-${DISTVERSIONPREFIX}${ASTER_VER}/SRC
.if ${PORTNAME} == metis-edf
TARNAME= ${PORTNAME:C|-edf||}
.else
TARNAME= ${PORTNAME}
.endif
.if ${PORTNAME} != aster
post-extract:
(cd ${WRKDIR} && \
${TAR} ${EXTRACT_BEFORE_ARGS} ${EXTRACT_WRKSRC}/${TARNAME}${DVPFX}-${DISTVERSION}${DVSFX}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS})
.endif