mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
7a325e6491
Update x11-fonts/mkfontscale to 1.2.0 Remove x11-fonts/mkfontdir, which has been merged into mkfontscale. Update dependencies and bump portrevisions. Add an entry to UPDATING and MOVES Changelog: https://lists.x.org/archives/xorg/2019-March/059633.html Thanks to Antoine for the exp-run! PR: 236336 (exp-run) Obtained from: FreeBSD Graphics Team dev repo https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/mkfontscale Sponsored by: B3 Init
240 lines
8.1 KiB
Makefile
240 lines
8.1 KiB
Makefile
#-*- tab-width: 4; -*-
|
|
# ex:ts=4
|
|
#
|
|
# bsd.xorg.mk - Support for X.Org ports and dependencies
|
|
#
|
|
# Created by: Florent Thoumie <flz@FreeBSD.org>
|
|
#
|
|
# !!! Here be dragons !!! (yeah, here as well...)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
.if !defined(_POSTMKINCLUDED) && !defined(Xorg_Pre_Include)
|
|
|
|
Xorg_Include_MAINTAINER= x11@FreeBSD.org
|
|
Xorg_Pre_Include= bsd.xorg.mk
|
|
|
|
# Some notes:
|
|
#
|
|
# app - Installs applications, no shared libraries.
|
|
# data - Installs only data.
|
|
# doc - no particular notes
|
|
# driver - depends on xorgproto at least
|
|
# font - don't install .pc file
|
|
# lib - various dependencies, install .pc file, needs pathfix
|
|
# proto - install .pc file, needs pathfix, most only needed at build time.
|
|
# xserver - there's only one atm, I guess everything can fit into the port itself
|
|
|
|
.if defined(XORG_CAT)
|
|
# Default variables, common to all new modular xorg ports.
|
|
.if !defined(USES) || ! ${USES:Mtar*}
|
|
USES+= tar:bzip2
|
|
.endif
|
|
GNU_CONFIGURE= yes
|
|
# for some reason this makes mkfontscale and others fail in the install target
|
|
#INSTALL_TARGET= install-strip
|
|
DIST_SUBDIR= xorg/${XORG_CAT}
|
|
|
|
MASTER_SITES?= ${MASTER_SITE_XORG}
|
|
MASTER_SITE_SUBDIR?= individual/${XORG_CAT}
|
|
|
|
# All xorg ports needs pkgconfig to build, but some ports look for pkgconfig and
|
|
# then continues the build.
|
|
USES+= pkgconfig
|
|
|
|
# All xorg ports needs xorg-macros.
|
|
. if ${PORTNAME} != xorg-macros
|
|
USE_XORG+= xorg-macros
|
|
. endif
|
|
|
|
. if ${XORG_CAT} == "app"
|
|
# Nothing at the moment
|
|
. endif
|
|
|
|
. if ${XORG_CAT} == "data"
|
|
# Nothing at the moment.
|
|
. endif
|
|
|
|
. if ${XORG_CAT} == "driver"
|
|
USE_XORG+= xorg-server xorgproto xi
|
|
CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4'
|
|
USES+= libtool
|
|
INSTALL_TARGET= install-strip
|
|
. endif
|
|
|
|
. if ${XORG_CAT} == "font"
|
|
FONTNAME?= ${PORTNAME:C/.*-//g:S/type/Type/:S/ttf/TTF/:S/speedo/Speedo/}
|
|
CONFIGURE_ARGS+= --with-fontrootdir=${PREFIX}/share/fonts
|
|
CONFIGURE_ENV+= FONTROOTDIR=${PREFIX}/share/fonts
|
|
. if !defined(NOFONT)
|
|
USES+= fonts
|
|
BUILD_DEPENDS+= mkfontscale>=0:x11-fonts/mkfontscale \
|
|
bdftopcf:x11-fonts/bdftopcf
|
|
PLIST_FILES+= "@comment ${FONTSDIR}/fonts.dir" \
|
|
"@comment ${FONTSDIR}/fonts.scale"
|
|
. endif
|
|
. endif
|
|
|
|
. if ${XORG_CAT} == "lib"
|
|
USES+= pathfix libtool
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS+=--enable-malloc0returnsnull
|
|
. endif
|
|
|
|
. if ${XORG_CAT} == "proto"
|
|
USES+= pathfix
|
|
. endif
|
|
|
|
. if ${XORG_CAT} == "xserver"
|
|
DISTFILES?= xorg-server-${PORTVERSION}.tar.bz2
|
|
WRKSRC= ${WRKDIR}/xorg-server-${PORTVERSION}
|
|
USES+= pathfix
|
|
CONFIGURE_ARGS+= --with-xkb-path=${LOCALBASE}/share/X11/xkb \
|
|
--with-fontrootdir=${LOCALBASE}/share/fonts
|
|
|
|
LIB_PC_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri
|
|
USE_XORG+= fontutil:build
|
|
. endif
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.if defined(_POSTMKINCLUDED) && !defined(Xorg_Post_Include)
|
|
|
|
Xorg_Post_Include= bsd.xorg.mk
|
|
|
|
# Register all xorg .pc files here.
|
|
# foo_LIB_PC_DEPENDS means it should go to BUILD_DEPENDS *and* RUN_DEPENDS.
|
|
|
|
XORG_MODULES= dmx \
|
|
fontenc \
|
|
fontutil \
|
|
ice \
|
|
libfs \
|
|
oldx \
|
|
pciaccess \
|
|
pixman \
|
|
sm \
|
|
x11 \
|
|
xau \
|
|
xaw \
|
|
xaw6 \
|
|
xaw7 \
|
|
xbitmaps \
|
|
xcb \
|
|
xcomposite \
|
|
xcursor \
|
|
xdamage \
|
|
xdmcp \
|
|
xevie \
|
|
xext \
|
|
xfixes \
|
|
xfont \
|
|
xfont2 \
|
|
xfontcache \
|
|
xft \
|
|
xi \
|
|
xinerama \
|
|
xkbfile \
|
|
xkbui \
|
|
xmu \
|
|
xmuu \
|
|
xorg-macros \
|
|
xorg-server \
|
|
xorgproto \
|
|
xp \
|
|
xpm \
|
|
xprintapputil \
|
|
xprintutil \
|
|
xrandr \
|
|
xrender \
|
|
xres \
|
|
xscrnsaver \
|
|
xshmfence \
|
|
xt \
|
|
xtrans \
|
|
xtrap \
|
|
xtst \
|
|
xv \
|
|
xvmc \
|
|
xxf86dga \
|
|
xxf86misc \
|
|
xxf86vm
|
|
|
|
dmx_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dmx.pc:x11/libdmx
|
|
fontenc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontenc.pc:x11-fonts/libfontenc
|
|
fontutil_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontutil.pc:x11-fonts/font-util
|
|
ice_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/ice.pc:x11/libICE
|
|
libfs_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libfs.pc:x11-fonts/libFS
|
|
oldx_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/oldx.pc:x11/liboldX
|
|
pciaccess_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pciaccess.pc:devel/libpciaccess
|
|
pixman_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pixman-1.pc:x11/pixman
|
|
sm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/sm.pc:x11/libSM
|
|
x11_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/x11.pc:x11/libX11
|
|
xau_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xau.pc:x11/libXau
|
|
xaw_LIB_PC_DEPENDS= ${xaw7_LIB_PC_DEPENDS}
|
|
xaw6_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xaw6.pc:x11-toolkits/libXaw
|
|
xaw7_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xaw7.pc:x11-toolkits/libXaw
|
|
xbitmaps_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xbitmaps.pc:x11/xbitmaps
|
|
xcb_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcb.pc:x11/libxcb
|
|
xcomposite_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcomposite.pc:x11/libXcomposite
|
|
xcursor_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcursor.pc:x11/libXcursor
|
|
xdamage_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xdamage.pc:x11/libXdamage
|
|
xdmcp_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xdmcp.pc:x11/libXdmcp
|
|
xevie_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xevie.pc:x11/libXevie
|
|
xext_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xext.pc:x11/libXext
|
|
xfixes_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfixes.pc:x11/libXfixes
|
|
xfont_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfont.pc:x11-fonts/libXfont
|
|
xfont2_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfont2.pc:x11-fonts/libXfont2
|
|
xfontcache_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfontcache.pc:x11-fonts/libXfontcache
|
|
xft_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xft.pc:x11-fonts/libXft
|
|
xi_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xi.pc:x11/libXi
|
|
xinerama_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xinerama.pc:x11/libXinerama
|
|
xkbfile_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xkbfile.pc:x11/libxkbfile
|
|
xkbui_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xkbui.pc:x11/libxkbui
|
|
xmu_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xmu.pc:x11-toolkits/libXmu
|
|
xmuu_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xmuu.pc:x11-toolkits/libXmu
|
|
xorg-macros_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xorg-macros.pc:devel/xorg-macros
|
|
xorg-server_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xorg-server.pc:x11-servers/xorg-server
|
|
xorgproto_BUILD_DEPENDS= xorgproto>=0:x11/xorgproto
|
|
xp_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xp.pc:x11/libXp
|
|
xpm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xpm.pc:x11/libXpm
|
|
xprintapputil_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xprintapputil.pc:x11/libXprintAppUtil
|
|
xprintutil_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xprintutil.pc:x11/libXprintUtil
|
|
xrandr_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xrandr.pc:x11/libXrandr
|
|
xrender_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xrender.pc:x11/libXrender
|
|
xres_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xres.pc:x11/libXres
|
|
xscrnsaver_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xscrnsaver.pc:x11/libXScrnSaver
|
|
xt_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xt.pc:x11-toolkits/libXt
|
|
xshmfence_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xshmfence.pc:x11/libxshmfence
|
|
xtrans_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtrans.pc:x11/xtrans
|
|
xtrap_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtrap.pc:x11/libXTrap
|
|
xtst_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtst.pc:x11/libXtst
|
|
xv_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xv.pc:x11/libXv
|
|
xvmc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xvmc.pc:x11/libXvMC
|
|
xxf86dga_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86dga.pc:x11/libXxf86dga
|
|
xxf86misc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86misc.pc:x11/libXxf86misc
|
|
xxf86vm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86vm.pc:x11/libXxf86vm
|
|
|
|
.for _module in ${USE_XORG:M*\:both:C/\:.*//g}
|
|
. if ${XORG_MODULES:M${_module}} == ""
|
|
IGNORE= requires unknown xorg module (${_module})
|
|
. endif
|
|
RUN_DEPENDS+= ${${_module}_BUILD_DEPENDS}
|
|
.endfor
|
|
|
|
.for _module in ${USE_XORG:C/\:.*//g}
|
|
. if ${XORG_MODULES:M${_module}} == ""
|
|
IGNORE= requires unknown xorg module (${_module})
|
|
. endif
|
|
LIB_PC_DEPENDS+= ${${_module}_LIB_PC_DEPENDS}
|
|
BUILD_DEPENDS+= ${${_module}_BUILD_DEPENDS}
|
|
.endfor
|
|
|
|
RUN_DEPENDS+= ${LIB_PC_DEPENDS}
|
|
BUILD_DEPENDS+= ${LIB_PC_DEPENDS}
|
|
|
|
.endif
|