Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.xorg.mk
Show All 40 Lines | |||||
MASTER_SITE_SUBDIR?= individual/${XORG_CAT} | MASTER_SITE_SUBDIR?= individual/${XORG_CAT} | ||||
# All xorg ports needs pkgconfig to build, but some ports look for pkgconfig and | # All xorg ports needs pkgconfig to build, but some ports look for pkgconfig and | ||||
# then continues the build. | # then continues the build. | ||||
USES+= pkgconfig | USES+= pkgconfig | ||||
# All xorg ports needs xorg-macros. | # All xorg ports needs xorg-macros. | ||||
. if ${PORTNAME} != xorg-macros | . if ${PORTNAME} != xorg-macros | ||||
USE_XORG+= xorg-macros | USE_XORG+= xorg-macros | ||||
. endif | . endif | ||||
. if ${XORG_CAT} == "app" | . if ${XORG_CAT} == "app" | ||||
# Nothing at the moment | # Nothing at the moment | ||||
. endif | . endif | ||||
. if ${XORG_CAT} == "data" | . if ${XORG_CAT} == "data" | ||||
# Nothing at the moment. | # Nothing at the moment. | ||||
. endif | . endif | ||||
. if ${XORG_CAT} == "driver" | . if ${XORG_CAT} == "driver" | ||||
USE_XORG+= xorg-server xproto randrproto xi renderproto xextproto \ | USE_XORG+= dri2proto dri3proto fontsproto glproto inputproto kbproto \ | ||||
inputproto kbproto fontsproto videoproto dri2proto dri3proto \ | presentproto randrproto renderproto resourceproto \ | ||||
xf86driproto presentproto glproto xineramaproto resourceproto \ | scrnsaverproto videoproto xextproto xf86driproto xi \ | ||||
scrnsaverproto | xineramaproto xorg-server xproto | ||||
CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4' | CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4' | ||||
CFLAGS+= -Werror=uninitialized | |||||
USES+= libtool | USES+= libtool | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
. endif | . endif | ||||
. if ${XORG_CAT} == "font" | . if ${XORG_CAT} == "font" | ||||
FONTNAME?= ${PORTNAME:C/.*-//g:S/type/Type/:S/ttf/TTF/:S/speedo/Speedo/} | FONTNAME?= ${PORTNAME:C/.*-//g:S/type/Type/:S/ttf/TTF/:S/speedo/Speedo/} | ||||
CONFIGURE_ARGS+= --with-fontrootdir=${PREFIX}/share/fonts | CONFIGURE_ARGS+= --with-fontrootdir=${PREFIX}/share/fonts | ||||
CONFIGURE_ENV+= FONTROOTDIR=${PREFIX}/share/fonts | CONFIGURE_ENV+= FONTROOTDIR=${PREFIX}/share/fonts | ||||
. if !defined(NOFONT) | . if !defined(NOFONT) | ||||
USES+= fonts | USES+= fonts | ||||
BUILD_DEPENDS+= mkfontdir:x11-fonts/mkfontdir \ | BUILD_DEPENDS+= mkfontdir:x11-fonts/mkfontdir \ | ||||
bdftopcf:x11-fonts/bdftopcf | bdftopcf:x11-fonts/bdftopcf | ||||
PLIST_FILES+= "@comment ${FONTSDIR}/fonts.dir" \ | PLIST_FILES+= "@comment ${FONTSDIR}/fonts.dir" \ | ||||
"@comment ${FONTSDIR}/fonts.scale" | "@comment ${FONTSDIR}/fonts.scale" | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. if ${XORG_CAT} == "lib" | . if ${XORG_CAT} == "lib" | ||||
USES+= pathfix libtool | USES+= libtool pathfix | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CFLAGS+= -Werror=uninitialized | |||||
CONFIGURE_ARGS+=--enable-malloc0returnsnull | CONFIGURE_ARGS+=--enable-malloc0returnsnull | ||||
. endif | . endif | ||||
. if ${XORG_CAT} == "proto" | . if ${XORG_CAT} == "proto" | ||||
USES+= pathfix | USES+= pathfix | ||||
. endif | . endif | ||||
. if ${XORG_CAT} == "xserver" | . if ${XORG_CAT} == "xserver" | ||||
DISTFILES?= xorg-server-${PORTVERSION}.tar.bz2 | DISTFILES?= xorg-server-${PORTVERSION}.tar.bz2 | ||||
WRKSRC= ${WRKDIR}/xorg-server-${PORTVERSION} | WRKSRC= ${WRKDIR}/xorg-server-${PORTVERSION} | ||||
USES+= pathfix | USES+= libtool pathfix | ||||
CFLAGS+= -Werror=uninitialized | |||||
CONFIGURE_ARGS+= --with-xkb-path=${LOCALBASE}/share/X11/xkb \ | CONFIGURE_ARGS+= --with-xkb-path=${LOCALBASE}/share/X11/xkb \ | ||||
--with-fontrootdir=${LOCALBASE}/share/fonts | --with-fontrootdir=${LOCALBASE}/share/fonts | ||||
LIB_PC_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/dri | LIB_PC_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/dri | ||||
USE_XORG+= fontutil:build | USE_XORG+= fontutil:build | ||||
. endif | . endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if defined(_POSTMKINCLUDED) && !defined(Xorg_Post_Include) | .if defined(_POSTMKINCLUDED) && !defined(Xorg_Post_Include) | ||||
Xorg_Post_Include= bsd.xorg.mk | Xorg_Post_Include= bsd.xorg.mk | ||||
# Register all xorg .pc files here. | # Register all xorg .pc files here. | ||||
# foo_LIB_PC_DEPENDS means it should go to BUILD_DEPENDS *and* RUN_DEPENDS. | # foo_LIB_PC_DEPENDS means it should go to BUILD_DEPENDS *and* RUN_DEPENDS. | ||||
XORG_MODULES= bigreqsproto \ | XORG_MODULES= bigreqsproto \ | ||||
compositeproto \ | compositeproto \ | ||||
damageproto \ | damageproto \ | ||||
dmx \ | dmx \ | ||||
dmxproto \ | dmxproto \ | ||||
dri2proto \ | dri2proto \ | ||||
dri3proto \ | dri3proto \ | ||||
evieproto \ | evieproto \ | ||||
fixesproto \ | fixesproto \ | ||||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |