Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/linux.mk
Context not available. | |||||
# infrastructure ports are made available. Possible values: | # infrastructure ports are made available. Possible values: | ||||
# yes Default LIB_DISTFILES and empty BIN_DISTFILES. | # yes Default LIB_DISTFILES and empty BIN_DISTFILES. | ||||
# nolib Default BIN_DISTFILES and empty LIB_DISTFILES. | # nolib Default BIN_DISTFILES and empty LIB_DISTFILES. | ||||
# noarch Like nolib but distfiles are architecture neutral. | |||||
# Additional variables when USE_LINUX_RPM is defined: | # Additional variables when USE_LINUX_RPM is defined: | ||||
# BIN_DISTFILES List of distfiles to install. | # BIN_DISTFILES List of distfiles to install. | ||||
# LIB_DISTFILES List of distfiles to install both the 32 and 64 bit version of. | # LIB_DISTFILES List of distfiles to install both the 32 and 64 bit version of. | ||||
Context not available. | |||||
.else | .else | ||||
.if ${LINUX_DEFAULT:M*_64} | .if ${LINUX_DEFAULT:M*_64} | ||||
LINUX_ARCH= x86_64 | LINUX_ARCH= x86_64 | ||||
LINUX_ARCH32= i386 | |||||
.if ${ARCH} != amd64 || ${OPSYS} != FreeBSD || ${OSVERSION} < 1002507 \ | .if ${ARCH} != amd64 || ${OPSYS} != FreeBSD || ${OSVERSION} < 1002507 \ | ||||
|| ( ${OSVERSION} >= 1100000 && ${OSVERSION} < 1100105 ) | || ( ${OSVERSION} >= 1100000 && ${OSVERSION} < 1100105 ) | ||||
IGNORE= Linux ${LINUX_DEFAULT} only supported on FreeBSD/amd64 10.3 or higher | IGNORE= Linux ${LINUX_DEFAULT} only supported on FreeBSD/amd64 10.3 or higher | ||||
Context not available. | |||||
linux_gtk2_DEP= linux-${linux_ARGS}-gtk2>0:x11-toolkits/linux-${linux_ARGS}-gtk2 | linux_gtk2_DEP= linux-${linux_ARGS}-gtk2>0:x11-toolkits/linux-${linux_ARGS}-gtk2 | ||||
linux_hicontheme_DEP= linux-${linux_ARGS}-hicolor-icon-theme>0:x11-themes/linux-${linux_ARGS}-hicolor-icon-theme | linux_hicontheme_DEP= linux-${linux_ARGS}-hicolor-icon-theme>0:x11-themes/linux-${linux_ARGS}-hicolor-icon-theme | ||||
linux_jasper_DEP= linux-${linux_ARGS}-jasper>0:graphics/linux-${linux_ARGS}-jasper | linux_jasper_DEP= linux-${linux_ARGS}-jasper>0:graphics/linux-${linux_ARGS}-jasper | ||||
linux_jbigkit_DEP= linux-${linux_ARGS}-jbigkit>0:graphics/linux-${linux_ARGS}-jbigkit | |||||
linux_jpeg_DEP= linux-${linux_ARGS}-jpeg>0:graphics/linux-${linux_ARGS}-jpeg | linux_jpeg_DEP= linux-${linux_ARGS}-jpeg>0:graphics/linux-${linux_ARGS}-jpeg | ||||
linux_libasyncns_DEP= linux-${linux_ARGS}-libasyncns>0:dns/linux-${linux_ARGS}-libasyncns | linux_libasyncns_DEP= linux-${linux_ARGS}-libasyncns>0:dns/linux-${linux_ARGS}-libasyncns | ||||
.if ${linux_ARGS:Mf10} || ${linux_ARGS:Mc6} | |||||
linux_libaudiofile_DEP= linux-${linux_ARGS}-libaudiofile>0:audio/linux-${linux_ARGS}-libaudiofile | linux_libaudiofile_DEP= linux-${linux_ARGS}-libaudiofile>0:audio/linux-${linux_ARGS}-libaudiofile | ||||
.else | |||||
linux_libaudiofile_DEP= linux-${linux_ARGS}-audiofile>0:audio/linux-${linux_ARGS}-audiofile | |||||
.endif | |||||
linux_libgcrypt_DEP= linux-${linux_ARGS}-libgcrypt>0:security/linux-${linux_ARGS}-libgcrypt | linux_libgcrypt_DEP= linux-${linux_ARGS}-libgcrypt>0:security/linux-${linux_ARGS}-libgcrypt | ||||
linux_libgfortran_DEP= linux-${linux_ARGS}-libgfortran>0:devel/linux-${linux_ARGS}-libgfortran | linux_libgfortran_DEP= linux-${linux_ARGS}-libgfortran>0:devel/linux-${linux_ARGS}-libgfortran | ||||
linux_libglu_DEP= linux-${linux_ARGS}-libGLU>0:graphics/linux-${linux_ARGS}-libGLU | linux_libglu_DEP= linux-${linux_ARGS}-libGLU>0:graphics/linux-${linux_ARGS}-libGLU | ||||
Context not available. | |||||
linux_pixman_DEP= linux-${linux_ARGS}-pixman>0:x11/linux-${linux_ARGS}-pixman | linux_pixman_DEP= linux-${linux_ARGS}-pixman>0:x11/linux-${linux_ARGS}-pixman | ||||
linux_png_DEP= linux-${linux_ARGS}-png>0:graphics/linux-${linux_ARGS}-png | linux_png_DEP= linux-${linux_ARGS}-png>0:graphics/linux-${linux_ARGS}-png | ||||
linux_pulseaudio-libs_DEP= linux-${linux_ARGS}-pulseaudio-libs>0:audio/linux-${linux_ARGS}-pulseaudio-libs | linux_pulseaudio-libs_DEP= linux-${linux_ARGS}-pulseaudio-libs>0:audio/linux-${linux_ARGS}-pulseaudio-libs | ||||
linux_qt47_DEP= linux-${linux_ARGS}-qt47>0:devel/linux-${linux_ARGS}-qt47 | .if ${linux_ARGS:Mc6} | ||||
linux_qt47-webkit_DEP= linux-${linux_ARGS}-qt47-webkit>0:www/linux-${linux_ARGS}-qt47-webkit | linux_qt_DEP= linux-${linux_ARGS}-qt47>0:devel/linux-${linux_ARGS}-qt47 | ||||
linux_qt47-x11_DEP= linux-${linux_ARGS}-qt47-x11>0:x11-toolkits/linux-${linux_ARGS}-qt47-x11 | linux_qt-x11_DEP= linux-${linux_ARGS}-qt47-x11>0:x11-toolkits/linux-${linux_ARGS}-qt47-x11 | ||||
linux_qtwebkit_DEP= linux-${linux_ARGS}-qt47-webkit>0:www/linux-${linux_ARGS}-qt47-webkit | |||||
.else | |||||
linux_qt_DEP= linux-${linux_ARGS}-qt>0:devel/linux-${linux_ARGS}-qt | |||||
linux_qt-x11_DEP= linux-${linux_ARGS}-qt-x11>0:x11-toolkits/linux-${linux_ARGS}-qt-x11 | |||||
linux_qtwebkit_DEP= linux-${linux_ARGS}-qtwebkit>0:www/linux-${linux_ARGS}-qtwebkit | |||||
.endif | |||||
linux_scimlibs_DEP= linux-${linux_ARGS}-scim-libs>0:textproc/linux-${linux_ARGS}-scim-libs | linux_scimlibs_DEP= linux-${linux_ARGS}-scim-libs>0:textproc/linux-${linux_ARGS}-scim-libs | ||||
linux_sdl12_DEP= linux-${linux_ARGS}-sdl>0:devel/linux-${linux_ARGS}-sdl12 | linux_sdl12_DEP= linux-${linux_ARGS}-sdl>0:devel/linux-${linux_ARGS}-sdl12 | ||||
linux_sdlimage_DEP= linux-${linux_ARGS}-sdl_image>0:graphics/linux-${linux_ARGS}-sdl_image | linux_sdlimage_DEP= linux-${linux_ARGS}-sdl_image>0:graphics/linux-${linux_ARGS}-sdl_image | ||||
Context not available. | |||||
.endif | .endif | ||||
DIST_SUBDIR?= rpm/${LINUX_ARCH}/fedora/${LINUX_DIST_VER} | DIST_SUBDIR?= rpm/${LINUX_ARCH}/fedora/${LINUX_DIST_VER} | ||||
.if ${USE_LINUX_RPM} == noarch | |||||
LINUX_RPM_ARCH?= noarch | |||||
.else | |||||
LINUX_RPM_ARCH?= i386 | LINUX_RPM_ARCH?= i386 | ||||
.endif | |||||
.elif ${linux_ARGS} == c6 | .elif ${linux_ARGS} == c6 | ||||
Context not available. | |||||
.endif | .endif | ||||
DIST_SUBDIR?= rpm/${LINUX_RPM_ARCH}/centos/${LINUX_DIST_VER} | DIST_SUBDIR?= rpm/${LINUX_RPM_ARCH}/centos/${LINUX_DIST_VER} | ||||
.if ${LINUX_ARCH} == x86_64 | .if ${USE_LINUX_RPM} == noarch | ||||
LINUX_RPM_ARCH?= noarch | |||||
.elif ${LINUX_ARCH} == x86_64 | |||||
LINUX_RPM_ARCH?= x86_64 | LINUX_RPM_ARCH?= x86_64 | ||||
LINUX_RPM_ARCH32?= i686 | LINUX_RPM_ARCH32?= i686 | ||||
.else | .else | ||||
Context not available. | |||||
.endif | .endif | ||||
DIST_SUBDIR?= rpm/centos/${LINUX_DIST_VER}/${LINUX_ARCH} | DIST_SUBDIR?= rpm/centos/${LINUX_DIST_VER}/${LINUX_ARCH} | ||||
.if ${LINUX_ARCH} == x86_64 | .if ${USE_LINUX_RPM} == noarch | ||||
LINUX_RPM_ARCH?= noarch | |||||
.elif ${LINUX_ARCH} == x86_64 | |||||
LINUX_RPM_ARCH?= x86_64 | LINUX_RPM_ARCH?= x86_64 | ||||
LINUX_RPM_ARCH32?= i686 | LINUX_RPM_ARCH32?= i686 | ||||
.else | .else | ||||
Context not available. | |||||
.ifdef USE_LINUX_RPM | .ifdef USE_LINUX_RPM | ||||
.if ${USE_LINUX_RPM} == nolib | .if ${USE_LINUX_RPM} == noarch | ||||
NO_ARCH= yes | |||||
.else | |||||
ONLY_FOR_ARCHS?= i386 amd64 | |||||
.endif | |||||
.if ${USE_LINUX_RPM} != yes | |||||
BIN_DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} | BIN_DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} | ||||
.else | .else | ||||
LIB_DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} | LIB_DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} | ||||
.endif | .endif | ||||
.ifdef LINUX_RPM_ARCH32 | .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}) | |||||
DISTFILES?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \ | DISTFILES?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \ | ||||
${LIB_DISTFILES} ${BIN_DISTFILES} | ${LIB_DISTFILES} ${BIN_DISTFILES} | ||||
EXTRACT_ONLY?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \ | EXTRACT_ONLY?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \ | ||||
Context not available. | |||||
DISTFILES?= ${LIB_DISTFILES} ${BIN_DISTFILES} | DISTFILES?= ${LIB_DISTFILES} ${BIN_DISTFILES} | ||||
EXTRACT_ONLY?= ${LIB_DISTFILES} ${BIN_DISTFILES} | EXTRACT_ONLY?= ${LIB_DISTFILES} ${BIN_DISTFILES} | ||||
.endif | .endif | ||||
.endfor | |||||
.else | |||||
DISTFILES?= ${LIB_DISTFILES} ${BIN_DISTFILES} | |||||
EXTRACT_ONLY?= ${LIB_DISTFILES} ${BIN_DISTFILES} | |||||
.endif | |||||
.ifdef PACKAGE_BUILDING | .ifdef PACKAGE_BUILDING | ||||
SRC_DISTFILES?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${SRC_SUFX}:SOURCE/} \ | SRC_DISTFILES?= ${LIB_DISTFILES:S/${EXTRACT_SUFX}/${SRC_SUFX}:SOURCE/} \ | ||||
${BIN_DISTFILES:S/${EXTRACT_SUFX}/${SRC_SUFX}:SOURCE/} | ${BIN_DISTFILES:S/${EXTRACT_SUFX}/${SRC_SUFX}:SOURCE/} | ||||
Context not available. | |||||
EXTRACT_AFTER_ARGS= | ${TAR} xf - --no-same-owner --no-same-permissions | EXTRACT_AFTER_ARGS= | ${TAR} xf - --no-same-owner --no-same-permissions | ||||
.endif | .endif | ||||
ONLY_FOR_ARCHS?= i386 amd64 | .if ${linux_ARGS} != f10 && ${USE_LINUX_RPM} != noarch | ||||
.if ${linux_ARGS} != f10 | |||||
PLIST?= ${PKGDIR}/pkg-plist.${LINUX_ARCH} | PLIST?= ${PKGDIR}/pkg-plist.${LINUX_ARCH} | ||||
.endif | .endif | ||||
Context not available. | |||||
.endif # USE_LINUX_RPM | .endif # USE_LINUX_RPM | ||||
# 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}) | |||||
IGNORE= does not run on Linux/${LINUX_ARCH} | |||||
.endif | |||||
.endfor | |||||
.endif # _POSTMKINCLUDED && ! _INCLUDE_USES_LINUX_POST_MK | .endif # _POSTMKINCLUDED && ! _INCLUDE_USES_LINUX_POST_MK | ||||
Context not available. |