diff options
author | tijl <tijl@FreeBSD.org> | 2017-01-19 23:44:53 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2017-01-19 23:44:53 +0800 |
commit | 55dd07bce317a6a87cb600c4eb5a7d67c3d9721b (patch) | |
tree | e291f6d22d8d71faa3022898990b266286fc9af2 /Mk | |
parent | 9685dfba21a336d3762fe96fb09b3114d6d82065 (diff) | |
download | freebsd-ports-gnome-55dd07bce317a6a87cb600c4eb5a7d67c3d9721b.tar.gz freebsd-ports-gnome-55dd07bce317a6a87cb600c4eb5a7d67c3d9721b.tar.zst freebsd-ports-gnome-55dd07bce317a6a87cb600c4eb5a7d67c3d9721b.zip |
Update Linux CentOS 7 ports to 7.3.1611. While 7.2 had semi-official i386
packages there are no such packages for 7.3 yet so i386 support has been
marked IGNORE for now.
Change DIST_SUBDIR to just "centos" so distfiles that remain the same
between major versions don't have to be redownloaded.
Remove fmake hacks from linux.mk.
Submitted by: Piotr Kubaj <pkubaj@anongoth.pl>
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/linux.mk | 44 | ||||
-rw-r--r-- | Mk/bsd.default-versions.mk | 4 |
2 files changed, 22 insertions, 26 deletions
diff --git a/Mk/Uses/linux.mk b/Mk/Uses/linux.mk index 3879843a010b..7e357a7c90e7 100644 --- a/Mk/Uses/linux.mk +++ b/Mk/Uses/linux.mk @@ -31,21 +31,26 @@ linux_ARGS= ${LINUX_DEFAULT:S/_64//} .if ${linux_ARGS} == c6 LINUX_DIST_VER?= 6.8 -.elif ${linux_ARGS} == c7 -LINUX_DIST_VER?= 7.2.1511 +.if ${ARCH} == amd64 && ${LINUX_DEFAULT} != c6 +LINUX_ARCH= x86_64 +LINUX_ARCH32= i386 +.elif ${ARCH} == amd64 || ${ARCH} == i386 +LINUX_ARCH= i386 .else -IGNORE= Invalid Linux distribution: ${linux_ARGS} +LINUX_ARCH= ${ARCH} +IGNORE= Linux CentOS ${LINUX_DIST_VER} is unsupported on ${ARCH} .endif - -.if ${LINUX_DEFAULT:M*_64} +.elif ${linux_ARGS} == c7 +LINUX_DIST_VER?= 7.3.1611 +.if ${ARCH} == amd64 LINUX_ARCH= x86_64 LINUX_ARCH32= i386 -.if ${ARCH} != amd64 || ${OPSYS} != FreeBSD \ - || ( ${OSVERSION} >= 1100000 && ${OSVERSION} < 1100105 ) -IGNORE= Linux ${LINUX_DEFAULT} is unsupported on pre-release versions of FreeBSD 11. Update to 11.0-RELEASE or higher. +.else +LINUX_ARCH= ${ARCH} +IGNORE= Linux CentOS ${LINUX_DIST_VER} is unsupported on ${ARCH} .endif .else -LINUX_ARCH= i386 +IGNORE= Invalid Linux distribution: ${linux_ARGS} .endif linux_allegro_DEP= linux-${linux_ARGS}-allegro>0:devel/linux-${linux_ARGS}-allegro @@ -186,7 +191,7 @@ MASTER_SITE_SUBDIR= altarch/${LINUX_DIST_VER}/os/${LINUX_ARCH}/Packages \ MASTER_SITE_SUBDIR+= centos/${LINUX_DIST_VER}/os/Source/SPackages/:SOURCE \ centos/${LINUX_DIST_VER}/updates/Source/SPackages/:SOURCE .endif -DIST_SUBDIR?= rpm/centos/${LINUX_DIST_VER}/${LINUX_ARCH} +DIST_SUBDIR?= centos .if ${USE_LINUX_RPM} == noarch LINUX_RPM_ARCH?= noarch @@ -230,10 +235,9 @@ LIB_DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} .else BIN_DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} .endif -.ifdef LINUX_ARCH32 && EXTRACT_SUFX32 -.for fmakehack in ${LINUX_ARCH32} -.if !(defined(ONLY_FOR_ARCHS) && empty(ONLY_FOR_ARCHS:M${fmakehack})) \ - && empty(NOT_FOR_ARCHS:M${fmakehack}) +.if defined(LINUX_ARCH32) && defined(EXTRACT_SUFX32) \ + && !(defined(ONLY_FOR_ARCHS) && empty(ONLY_FOR_ARCHS:M${LINUX_ARCH32})) \ + && empty(NOT_FOR_ARCHS:M${LINUX_ARCH32}) DISTFILES?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \ ${LIB_DISTFILES} ${BIN_DISTFILES} EXTRACT_ONLY?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \ @@ -242,11 +246,6 @@ EXTRACT_ONLY?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \ DISTFILES?= ${LIB_DISTFILES} ${BIN_DISTFILES} EXTRACT_ONLY?= ${LIB_DISTFILES} ${BIN_DISTFILES} .endif -.endfor -.else -DISTFILES?= ${LIB_DISTFILES} ${BIN_DISTFILES} -EXTRACT_ONLY?= ${LIB_DISTFILES} ${BIN_DISTFILES} -.endif .ifdef PACKAGE_BUILDING SRC_DISTFILES?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${SRC_SUFX}:SOURCE/} \ ${BIN_DISTFILES:S/${EXTRACT_SUFX}/${SRC_SUFX}:SOURCE/} @@ -291,12 +290,9 @@ DISTFILES?= ${DISTFILES_${LINUX_ARCH}} .endif .endif -# With fmake :M${var} only works when ${var} is a for loop variable. -.for fmakehack in ${LINUX_ARCH:S/x86_64/amd64/} -.if (defined(ONLY_FOR_ARCHS) && empty(ONLY_FOR_ARCHS:M${fmakehack})) \ - || !empty(NOT_FOR_ARCHS:M${fmakehack}) +.if (defined(ONLY_FOR_ARCHS) && empty(ONLY_FOR_ARCHS:M${LINUX_ARCH:S/x86_64/amd64/})) \ + || !empty(NOT_FOR_ARCHS:M${LINUX_ARCH:S/x86_64/amd64/}) IGNORE= does not run on Linux/${LINUX_ARCH} .endif -.endfor .endif # _POSTMKINCLUDED && ! _INCLUDE_USES_LINUX_POST_MK diff --git a/Mk/bsd.default-versions.mk b/Mk/bsd.default-versions.mk index 2e1fec2d8d56..37184562dd7b 100644 --- a/Mk/bsd.default-versions.mk +++ b/Mk/bsd.default-versions.mk @@ -42,10 +42,10 @@ GCC_DEFAULT?= 4.9 # Possible values: 7, 8, 9, agpl GHOSTSCRIPT_DEFAULT?= agpl .if defined(ARCH) && ${ARCH} == amd64 -# Possible values: c6, c6_64, c7, c7_64 +# Possible values: c6, c6_64, c7 LINUX_DEFAULT?= c6_64 .else -# Possible values: c6, c7 +# Possible values: c6 LINUX_DEFAULT?= c6 .endif .if defined(OVERRIDE_LINUX_BASE_PORT) |