60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
28 lines
788 B
Makefile
28 lines
788 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/ \
|
|
LOCAL/thierry
|
|
DISTNAME= aster-${DISTVERSIONPREFIX}${ASTER_DISTVERSION}${DISTVERSIONSUFFIX}
|
|
DISTINFO_FILE= ${.CURDIR}/../../french/aster/distinfo
|
|
|
|
ASTER_VER= 11.7.0
|
|
ASTER_DISTVERSION= ${ASTER_VER}-1
|
|
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
|