Subject: www/mozilla: step toward build-linkifying?
To: None <tech-pkg@netbsd.org>
From: None <sen_ml@eccosys.com>
List: tech-pkg
Date: 10/15/2001 18:02:59
I made an attempt at creating www/mozilla/buildlink.mk and modified my
local www/mozilla/Makefile a bit.  Would the files help at all toward
build-linkifying mozilla?

# $NetBSD$
#
# This Makefile fragment is included by packages that use mozilla.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.mozilla to the dependency pattern
#     for the version of mozilla desired.
# (2) Include this Makefile fragment in the package Makefile,
# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
#     search path, and
# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
#     path.

.if !defined(MOZILLA_BUILDLINK_MK)
MOZILLA_BUILDLINK_MK=           #defined

.include "../../mk/bsd.buildlink.mk"

BUILDLINK_DEPENDS.mozilla?      mozilla>=0.9.4
DEPENDS+=                       ${BUILDLINK_DEPENDS.mozilla}:../../www/mozilla

EVAL_PREFIX+=                   BUILDLINK_PREFIX.mozilla=mozilla
BUILDLINK_PREFIX.mozilla_DEFAULT=       ${LOCALBASE}
BUILDLINK_FILES.mozilla=        include/mozilla/*.h
BUILDLINK_FILES.mozilla+=       include/mozilla/nspr/*.h
BUILDLINK_FILES.mozilla+=       include/mozilla/nspr/private/*.h
BUILDLINK_FILES.mozilla+=       include/mozilla/nspr/obsolete/*.h
BUILDLINK_FILES.mozilla+=       lib/mozilla/*.so
BUILDLINK_FILES.mozilla+=       lib/mozilla/components/*.so
BUILDLINK_FILES.mozilla+=       lib/mozilla/plugins/*.so

.include "../../graphics/jpeg/buildlink.mk"
.include "../../graphics/png/buildlink.mk"

BUILDLINK_TARGETS.mozilla=      mozilla-buildlink
BUILDLINK_TARGETS+=             ${BUILDLINK_TARGETS.mozilla}

pre-configure: ${BUILDLINK_TARGETS.mozilla}
mozilla-buildlink: _BUILDLINK_USE

.endif  # MOZILLA_BUILDLINK_MK

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/mozilla/Makefile,v
retrieving revision 1.72
diff -u -r1.72 Makefile
--- Makefile    2001/09/16 14:03:07     1.72
+++ Makefile    2001/10/15 08:58:44
@@ -16,11 +16,6 @@
 
 BUILD_DEPENDS+=        perl>=${PERL5_REQD}:../../lang/perl5
 BUILD_DEPENDS+=        zip>=2.3:../../archivers/zip
-DEPENDS+=      gtk+>=1.2.8:../../x11/gtk
-DEPENDS+=      gdk-pixbuf>=0.10.1:../../graphics/gdk-pixbuf
-DEPENDS+=      ORBit>=0.5.3:../../net/ORBit
-DEPENDS+=      jpeg-6b:../../graphics/jpeg
-DEPENDS+=      png>=1.0.11:../../graphics/png
 
 ONLY_FOR_PLATFORM=     NetBSD-1.4[Y-Z]-i386 NetBSD-1.4Z[A-Z]-i386 \
                        NetBSD-1.5_ALPHA-i386 NetBSD-1.5_BETA-* \
@@ -31,8 +26,8 @@
 GNU_CONFIGURE= yes
 CONFIGURE_ARGS=        --disable-tests \
                --disable-debug \
-               --with-jpeg=${LOCALBASE} \
-               --with-png=${LOCALBASE} \
+               --with-jpeg=${BUILDLINK_DIR} \
+               --with-png=${BUILDLINK_DIR} \
                --enable-mathml \
                --enable-svg \
                --enable-crypto
@@ -83,4 +78,9 @@
 do-install:
        ${SETENV} ${SCRIPTS_ENV} ${SCRIPTDIR}/moz-install
 
+.include "../../x11/gtk/buildlink.mk"
+.include "../../graphics/gdk-pixbuf/buildlink.mk"
+.include "../../net/ORBit/buildlink.mk"
+.include "../../graphics/jpeg/buildlink.mk"
+.include "../../graphics/png/buildlink.mk"
 .include "../../mk/bsd.pkg.mk"
cvs server: Diffing files
cvs server: Diffing patches
cvs server: Diffing pkg
cvs server: Diffing scripts