Skip to content

Commit

Permalink
- fine grained X11 dependencies for packages which have either USE_IMAKE
Browse files Browse the repository at this point in the history
  or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or
  via buildlink3.mks
- introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm
  in the !modular case
- fix some cases where the check for libX11 couldn't work at all by using
  C++ for compilation without including the proper headers

Verified using a full X11_TYPE=xorg bulk build without additional
breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
  • Loading branch information
jsonn committed Dec 27, 2006
1 parent 6432f76 commit d26cf36
Show file tree
Hide file tree
Showing 211 changed files with 805 additions and 251 deletions.
5 changes: 4 additions & 1 deletion audio/bmp/Makefile.common
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.21 2006/07/31 21:43:55 jmmv Exp $
# $NetBSD: Makefile.common,v 1.22 2006/12/27 13:37:35 joerg Exp $
#

DISTNAME= bmp-0.9.7.1
Expand Down Expand Up @@ -85,12 +85,15 @@ post-patch:
. endif
.endif

BUILDLINK_DEPMETHOD.libXt?= build

.include "../../audio/libmikmod/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libglade2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"

.include "../../mk/oss.buildlink3.mk"
4 changes: 3 additions & 1 deletion audio/mixer.app/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2006/12/15 20:32:53 joerg Exp $
# $NetBSD: Makefile,v 1.14 2006/12/27 13:37:35 joerg Exp $
#

DISTNAME= Mixer.app-1.8.0
Expand All @@ -25,6 +25,8 @@ do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/Mixer.app
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/Mixer.app

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
6 changes: 5 additions & 1 deletion audio/nas/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.68 2006/10/22 16:03:18 rillig Exp $
# $NetBSD: Makefile,v 1.69 2006/12/27 13:37:35 joerg Exp $

DISTNAME= nas-1.8.src
PKGNAME= ${DISTNAME:S/.src//}
Expand Down Expand Up @@ -95,4 +95,8 @@ PLIST_SRC+= ${PKGDIR}/PLIST.server
pre-configure:
cd ${WRKSRC}/config && ${SETENV} ${CONFIGURE_ENV} ./configure

.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"
3 changes: 2 additions & 1 deletion audio/terminatorx/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2006/06/11 14:34:17 joerg Exp $
# $NetBSD: Makefile,v 1.13 2006/12/27 13:37:35 joerg Exp $
#

DISTNAME= terminatorX-3.82
Expand Down Expand Up @@ -37,6 +37,7 @@ SUBST_MESSAGE.oss= Fixing hardcoded audio device.
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/scrollkeeper/omf.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXxf86dga/buildlink3.mk"

.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
Expand Down
4 changes: 3 additions & 1 deletion audio/wmmixer/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2006/12/15 20:32:53 joerg Exp $
# $NetBSD: Makefile,v 1.15 2006/12/27 13:37:35 joerg Exp $
#

DISTNAME= wmmixer-1.0-beta1
Expand All @@ -22,6 +22,8 @@ NO_INSTALL_MANPAGES= YES
pre-build:
${TOUCH} ${WRKSRC}/wmmixer.man

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
4 changes: 3 additions & 1 deletion audio/wmmp3/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2006/12/15 20:32:53 joerg Exp $
# $NetBSD: Makefile,v 1.13 2006/12/27 13:37:35 joerg Exp $

DISTNAME= wmmp3-0.12
PKGREVISION= 2
Expand All @@ -22,5 +22,7 @@ post-install:
@${ECHO} "===> Installing sample.wmmp3 in ${PREFIX}/share/examples"
${INSTALL_DATA} ${WRKSRC}/sample.wmmp3 ${PREFIX}/share/examples

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
4 changes: 3 additions & 1 deletion audio/wmsmixer/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2006/12/15 20:32:53 joerg Exp $
# $NetBSD: Makefile,v 1.15 2006/12/27 13:37:35 joerg Exp $
#

DISTNAME= wmsmixer-0.5.1
Expand Down Expand Up @@ -27,6 +27,8 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/README.wmmixer \
${PREFIX}/share/doc/wmsmixer/README.wmsmixer

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
6 changes: 5 additions & 1 deletion audio/xcdplayer/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2006/08/12 14:51:39 darcy Exp $
# $NetBSD: Makefile,v 1.19 2006/12/27 13:37:35 joerg Exp $

DISTNAME= xcdplayer-2.2
PKGREVISION= 3
Expand All @@ -19,4 +19,8 @@ pre-configure:
${CP} ${FILESDIR}/cdrom_freebsd.h ${WRKSRC}
${CP} ${WRKSRC}/xcdplayer.1 ${WRKSRC}/xcdplayer.man

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/xbitmaps/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
4 changes: 3 additions & 1 deletion audio/xmix/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.22 2006/03/09 21:04:42 jlam Exp $
# $NetBSD: Makefile,v 1.23 2006/12/27 13:37:35 joerg Exp $

DISTNAME= xmix-2.1
PKGREVISION= 2
Expand All @@ -22,5 +22,7 @@ pre-configure:
pre-install:
${INSTALL_DATA} ${WRKSRC}/XMix ${PREFIX}/lib/X11/app-defaults

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
3 changes: 2 additions & 1 deletion audio/xwave/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2006/12/15 20:32:53 joerg Exp $
# $NetBSD: Makefile,v 1.22 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= xwave2
Expand All @@ -24,6 +24,7 @@ do-install:
${WRKSRC}/INSTALL \
${PREFIX}/share/doc/xwave2

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"

Expand Down
4 changes: 3 additions & 1 deletion benchmarks/xengine/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2006/09/03 00:56:28 wiz Exp $
# $NetBSD: Makefile,v 1.20 2006/12/27 13:37:36 joerg Exp $

DISTNAME= xengine-1.0.1
PKGREVISION= 3
Expand Down Expand Up @@ -31,4 +31,6 @@ post-install:
@${ECHO} " 1067 RPMs with P100, Winner 2000PRO/X, resolution: 1152x900"
@${ECHO} ""

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
7 changes: 5 additions & 2 deletions comms/xtel/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2006/12/15 20:32:53 joerg Exp $
# $NetBSD: Makefile,v 1.14 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= xtel-3.3.0
Expand All @@ -11,12 +11,15 @@ HOMEPAGE= http://pficheux.free.fr/xtel/
COMMENT= Minitel(r) emulator

USE_IMAKE= YES
USE_TOOLS+= mkfontdir
USE_TOOLS+= mkfontdir bdftopcf

FONTS_DIRS.x11= ${PREFIX}/lib/X11/fonts/xtel
REQD_DIRS= ${PREFIX}/lib/X11/fonts/xtel

.include "../../graphics/jpeg/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"
.include "../../x11/xbitmaps/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"
3 changes: 2 additions & 1 deletion devel/at-spi/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.37 2006/10/17 16:55:49 drochner Exp $
# $NetBSD: Makefile,v 1.38 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= at-spi-1.7.12
Expand Down Expand Up @@ -26,4 +26,5 @@ BUILDLINK_API_DEPENDS.atk+= atk>=1.12.0
.include "../../devel/popt/buildlink3.mk"
.include "../../net/ORBit2/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
3 changes: 2 additions & 1 deletion devel/at-spi/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.14 2006/07/08 23:10:41 jlam Exp $
# $NetBSD: buildlink3.mk,v 1.15 2006/12/27 13:37:36 joerg Exp $

BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
AT_SPI_BUILDLINK3_MK:= ${AT_SPI_BUILDLINK3_MK}+
Expand All @@ -22,5 +22,6 @@ BUILDLINK_PKGSRCDIR.at-spi?= ../../devel/at-spi
.include "../../devel/libbonobo/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"

BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
8 changes: 7 additions & 1 deletion devel/libdockapp/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2006/12/15 20:32:54 joerg Exp $
# $NetBSD: Makefile,v 1.20 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= libdockapp-0.4.0
Expand All @@ -18,5 +18,11 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libdockapp
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/libdockapp

BUILDLINK_DEPMETHOD.libXt?= build

.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
5 changes: 4 additions & 1 deletion devel/libmatchbox/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2006/12/15 20:32:54 joerg Exp $
# $NetBSD: Makefile,v 1.18 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= libmatchbox-1.9
Expand All @@ -14,7 +14,10 @@ GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config

.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"
4 changes: 3 additions & 1 deletion devel/libmatchbox/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.12 2006/12/15 20:32:54 joerg Exp $
# $NetBSD: buildlink3.mk,v 1.13 2006/12/27 13:37:36 joerg Exp $

BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
LIBMATCHBOX_BUILDLINK3_MK:= ${LIBMATCHBOX_BUILDLINK3_MK}+
Expand All @@ -18,7 +18,9 @@ BUILDLINK_PKGSRCDIR.libmatchbox?= ../../devel/libmatchbox
.endif # LIBMATCHBOX_BUILDLINK3_MK

.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"

BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
4 changes: 3 additions & 1 deletion devel/xxgdb/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2006/02/05 23:08:54 joerg Exp $
# $NetBSD: Makefile,v 1.13 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= xxgdb-1.12
Expand All @@ -25,4 +25,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/XDbx.ad ${PREFIX}/lib/X11/app-defaults/XDbx
${INSTALL_DATA} ${WRKSRC}/xxgdb.man ${PREFIX}/man/man1/xxgdb.1

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
3 changes: 2 additions & 1 deletion editors/cooledit/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.27 2006/12/15 20:32:54 joerg Exp $
# $NetBSD: Makefile,v 1.28 2006/12/27 13:37:36 joerg Exp $

DISTNAME= cooledit-3.17.17
PKGREVISION= 2
Expand All @@ -25,5 +25,6 @@ post-configure:
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
3 changes: 2 additions & 1 deletion editors/sam/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.33 2006/03/04 21:29:32 jlam Exp $
# $NetBSD: Makefile,v 1.34 2006/12/27 13:37:36 joerg Exp $

DISTNAME= sam
PKGNAME= sam-4.3
Expand Down Expand Up @@ -36,4 +36,5 @@ do-build:
done
.endif # SunOS

.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
6 changes: 3 additions & 3 deletions editors/ted/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.31 2006/12/15 20:32:54 joerg Exp $
# $NetBSD: Makefile,v 1.32 2006/12/27 13:37:36 joerg Exp $

DISTNAME= ted-2.16.src
PKGNAME= ted-2.16
Expand Down Expand Up @@ -30,8 +30,8 @@ CONFIGURE_ENV+= ac_tiff_includes="${BUILDLINK_PREFIX.tiff}/include"
CONFIGURE_ENV+= ac_tiff_libraries="${BUILDLINK_PREFIX.tiff}/lib"
CONFIGURE_ENV+= ac_xm_includes="${BUILDLINK_PREFIX.openmotif}/include"
CONFIGURE_ENV+= ac_xm_libraries="${BUILDLINK_PREFIX.openmotif}/lib"
CONFIGURE_ENV+= ac_xpm_includes="${BUILDLINK_PREFIX.xpm}/include"
CONFIGURE_ENV+= ac_xpm_libraries="${BUILDLINK_PREFIX.xpm}/lib"
CONFIGURE_ENV+= ac_xpm_includes="${BUILDLINK_PREFIX.libXpm}/include"
CONFIGURE_ENV+= ac_xpm_libraries="${BUILDLINK_PREFIX.libXpm}/lib"
CONFIGURE_ENV+= ac_zlib_includes="${BUILDLINK_PREFIX.zlib}/include"
CONFIGURE_ENV+= ac_zlib_libraries="${BUILDLINK_PREFIX.zlib}/lib"

Expand Down
5 changes: 4 additions & 1 deletion emulators/spim/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.31 2006/04/24 22:22:55 markd Exp $
# $NetBSD: Makefile,v 1.32 2006/12/27 13:37:36 joerg Exp $

DISTNAME= spim-7.1
PKGREVISION= 3
Expand Down Expand Up @@ -43,4 +43,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/Documentation/cycle.ps \
${PREFIX}/share/doc/spim

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
4 changes: 3 additions & 1 deletion emulators/vice/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.70 2006/12/15 20:32:55 joerg Exp $
# $NetBSD: Makefile,v 1.71 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= vice-1.19
Expand Down Expand Up @@ -57,6 +57,8 @@ post-patch:
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"
4 changes: 3 additions & 1 deletion emulators/x48/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2006/03/04 21:29:37 jlam Exp $
# $NetBSD: Makefile,v 1.11 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= x48_041
Expand All @@ -25,4 +25,6 @@ post-install:
${INSTALL_DATA} ROMDump ROMDump.s \
${PREFIX}/share/doc/x48/romdump

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
5 changes: 4 additions & 1 deletion emulators/xcopilot/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2006/12/15 20:32:55 joerg Exp $
# $NetBSD: Makefile,v 1.15 2006/12/27 13:37:36 joerg Exp $
#

DISTNAME= xcopilot-0.6.6
Expand All @@ -17,5 +17,8 @@ GNU_CONFIGURE= YES
post-extract:
${RM} -f ${WRKSRC}/mc68k/custom.c

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
4 changes: 3 additions & 1 deletion games/cbzone/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2006/02/05 23:09:13 joerg Exp $
# $NetBSD: Makefile,v 1.8 2006/12/27 13:37:36 joerg Exp $

DISTNAME= cbzone-sound
PKGNAME= cbzone-2.0c
Expand All @@ -13,4 +13,6 @@ WRKSRC= ${WRKDIR}/cbzone
USE_TOOLS+= gmake
USE_IMAKE= yes

.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Loading

0 comments on commit d26cf36

Please sign in to comment.