Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/devel/glib2/Makefile,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/devel/glib2/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.62 retrieving revision 1.108 diff -u -p -r1.62 -r1.108 --- pkgsrc/devel/glib2/Makefile 2004/12/20 13:05:08 1.62 +++ pkgsrc/devel/glib2/Makefile 2006/10/09 12:52:34 1.108 @@ -1,63 +1,82 @@ -# $NetBSD: Makefile,v 1.62 2004/12/20 13:05:08 grant Exp $ +# $NetBSD: Makefile,v 1.108 2006/10/09 12:52:34 joerg Exp $ -DISTNAME= glib-2.4.8 +DISTNAME= glib-2.12.4 PKGNAME= ${DISTNAME:S/glib/glib2/} CATEGORIES= devel -MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v2.4/ \ - ftp://ftp.cs.umn.edu/pub/gimp/gtk/v2.4/ \ - ${MASTER_SITE_GNOME:=sources/glib/2.4/} +MASTER_SITES= ftp://ftp.gtk.org/pub/glib/2.12/ \ + ftp://ftp.cs.umn.edu/pub/gimp/pub/glib/2.12/ \ + ${MASTER_SITE_GNOME:=sources/glib/2.12/} EXTRACT_SUFX= .tar.bz2 -MAINTAINER= jmmv@NetBSD.org +MAINTAINER= wiz@NetBSD.org HOMEPAGE= http://www.gtk.org/docs/glib_toc.html COMMENT= Some useful routines for C programming (glib2) PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir -BUILD_USES_MSGFMT= yes - -USE_BUILDLINK3= yes USE_PKGLOCALEDIR= yes -USE_GNU_TOOLS+= make -USE_PERL5= yes +USE_TOOLS+= gmake msgfmt perl:run pkg-config +USE_LANGUAGES= c c++ USE_LIBTOOL= yes TEST_TARGET= check -PKGCONFIG_OVERRIDE= glib-2.0.pc.in +PKGCONFIG_OVERRIDE= glib-2.0-uninstalled.pc.in +PKGCONFIG_OVERRIDE+= glib-2.0.pc.in +PKGCONFIG_OVERRIDE+= gmodule-2.0-uninstalled.pc.in PKGCONFIG_OVERRIDE+= gmodule-2.0.pc.in +PKGCONFIG_OVERRIDE+= gmodule-export-2.0.pc.in +PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0-uninstalled.pc.in +PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0.pc.in +PKGCONFIG_OVERRIDE+= gobject-2.0-uninstalled.pc.in PKGCONFIG_OVERRIDE+= gobject-2.0.pc.in +PKGCONFIG_OVERRIDE+= gthread-2.0-uninstalled.pc.in PKGCONFIG_OVERRIDE+= gthread-2.0.pc.in -GNU_CONFIGURE= # defined -CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR} +GNU_CONFIGURE= yes +CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} CONFIGURE_ARGS+= --enable-gtk-doc=no CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv} -CONFIGURE_ARGS.gnu-iconv= --with-libiconv=gnu +CONFIGURE_ARGS.gnu-iconv+= --with-libiconv=gnu # Avoid an ICE in gcc2 on sparc64 -CONFIGURE_ENV+= F77=${FALSE} +CONFIGURE_ENV+= F77=${FALSE:Q} + +CONFIGURE_ENV+= PERL_PATH=${PERL5:Q} -CONFIGURE_ENV+= PERL=${PERL5} -CONFIGURE_ENV+= PERL_PATH=${PERL5} +.include "options.mk" .include "../../mk/bsd.prefs.mk" -# FreeBSD fix for libgthread: -# Be sure libgthread is linked to the threaded library (libc_r), otherwise -# -pthread is added and this won't work with libraries, only executable -# binaries. +CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" +CPPFLAGS+= -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\"" +CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\"" + +.include "../../mk/compiler.mk" + +.if !empty(PKGSRC_COMPILER:Mmipspro*) +CFLAGS+= -c99 +.endif .if ${OPSYS} == "FreeBSD" -SUBST_CLASSES= thr +SUBST_CLASSES+= thr SUBST_STAGE.thr= post-patch SUBST_FILES.thr= gthread/Makefile.in -SUBST_SED.thr= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g" -SUBST_MESSAGE.thr= "Fixing libgthread." +. if ${OS_VERSION:R} >= 5 +SUBST_SED.thr+= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-lpthread|g" +. else +SUBST_SED.thr+= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g" +. endif +SUBST_MESSAGE.thr= Fixing libgthread. + +.endif +.if !empty(MACHINE_PLATFORM:MDarwin-[56].*-*) +CONFIGURE_ENV+= gt_cv_c_wchar_t=no .endif # Handle directories shared with devel/glib. @@ -67,8 +86,11 @@ PRINT_PLIST_AWK+= /^@dirrm include\/glib .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" -.include "../../devel/pkgconfig/buildlink3.mk" .include "../../mk/dlopen.buildlink3.mk" +.if !empty(LOWER_OPSYS:Mirix5*) +CONFIGURE_ARGS+= --disable-threads +.else .include "../../mk/pthread.buildlink3.mk" +.endif .include "../../mk/bsd.pkg.mk"