[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / glib2

Annotation of pkgsrc/devel/glib2/Makefile, Revision 1.138

1.138   ! tnn         1: # $NetBSD: Makefile,v 1.137 2008/05/19 19:08:36 tnn Exp $
1.1       dmcmahil    2:
1.118     tnn         3: # When updating glib2, please apply patch-ak to configure.in
                      4: # Then run a matching version of autoconf to regen patch-aa.
1.132     drochner    5: DISTNAME=              glib-2.16.3
1.39      jmmv        6: PKGNAME=               ${DISTNAME:S/glib/glib2/}
1.136     jmcneill    7: PKGREVISION=           2
1.1       dmcmahil    8: CATEGORIES=            devel
1.132     drochner    9: MASTER_SITES=          ftp://ftp.gtk.org/pub/glib/2.16/ \
                     10:                        ftp://ftp.cs.umn.edu/pub/gimp/pub/glib/2.16/ \
                     11:                        ${MASTER_SITE_GNOME:=sources/glib/2.16/}
1.15      grant      12: EXTRACT_SUFX=          .tar.bz2
1.1       dmcmahil   13:
1.117     wiz        14: MAINTAINER=            pkgsrc-users@NetBSD.org
1.119     tron       15: HOMEPAGE=              http://developer.gnome.org/doc/API/2.0/glib/glib.html
1.58      grant      16: COMMENT=               Some useful routines for C programming (glib2)
1.1       dmcmahil   17:
1.49      minskim    18: PKG_INSTALLATION_TYPES=        overwrite pkgviews
1.108     joerg      19: PKG_DESTDIR_SUPPORT=   user-destdir
1.49      minskim    20:
1.14      salo       21: USE_PKGLOCALEDIR=      yes
1.97      jlam       22: USE_TOOLS+=            gmake msgfmt perl:run pkg-config
1.110     jschauma   23: USE_LANGUAGES=         c c++ c99
1.40      jlam       24: USE_LIBTOOL=           yes
1.43      jlam       25: TEST_TARGET=           check
1.8       jlam       26:
1.68      jmmv       27: PKGCONFIG_OVERRIDE=    glib-2.0-uninstalled.pc.in
                     28: PKGCONFIG_OVERRIDE+=   glib-2.0.pc.in
                     29: PKGCONFIG_OVERRIDE+=   gmodule-2.0-uninstalled.pc.in
1.41      jmmv       30: PKGCONFIG_OVERRIDE+=   gmodule-2.0.pc.in
1.68      jmmv       31: PKGCONFIG_OVERRIDE+=   gmodule-export-2.0.pc.in
1.82      jmmv       32: PKGCONFIG_OVERRIDE+=   gmodule-no-export-2.0-uninstalled.pc.in
1.68      jmmv       33: PKGCONFIG_OVERRIDE+=   gmodule-no-export-2.0.pc.in
                     34: PKGCONFIG_OVERRIDE+=   gobject-2.0-uninstalled.pc.in
1.41      jmmv       35: PKGCONFIG_OVERRIDE+=   gobject-2.0.pc.in
1.68      jmmv       36: PKGCONFIG_OVERRIDE+=   gthread-2.0-uninstalled.pc.in
1.41      jmmv       37: PKGCONFIG_OVERRIDE+=   gthread-2.0.pc.in
1.132     drochner   38: PKGCONFIG_OVERRIDE+=   gio-2.0.pc.in
                     39: PKGCONFIG_OVERRIDE+=   gio-unix-2.0.pc.in
1.8       jlam       40:
1.81      rillig     41: GNU_CONFIGURE=         yes
1.86      rillig     42: CONFIGURE_ENV+=                PKGLOCALEDIR=${PKGLOCALEDIR:Q}
1.1       dmcmahil   43: CONFIGURE_ARGS+=       --includedir=${PREFIX}/include/glib
1.43      jlam       44: CONFIGURE_ARGS+=       ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
1.91      schwarz    45: CONFIGURE_ARGS.gnu-iconv+=     --with-libiconv=gnu
1.126     drochner   46: CONFIGURE_ARGS+=       --with-pcre=system
                     47: # need pcre utf8 + unicode-properties
                     48: BUILDLINK_API_DEPENDS.pcre+= pcre>=7.4nb1
1.36      jmmv       49:
1.44      snj        50: # Avoid an ICE in gcc2 on sparc64
1.86      rillig     51: CONFIGURE_ENV+=                F77=${FALSE:Q}
1.44      snj        52:
1.86      rillig     53: CONFIGURE_ENV+=                PERL_PATH=${PERL5:Q}
1.60      gavan      54:
1.80      jmmv       55: .include "../../mk/bsd.prefs.mk"
                     56:
1.132     drochner   57: .if ${OPSYS} == "NetBSD"
                     58: # configure detects wrongly
                     59: CONFIGURE_ENV+=                ac_cv_func_statfs=no
                     60: .endif
                     61:
1.66      recht      62: CPPFLAGS+=             -DPREFIX="\"${PREFIX}\""
                     63: CPPFLAGS+=             -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\""
                     64: CPPFLAGS+=             -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
1.64      jmmv       65:
1.47      xtraeme    66: .if ${OPSYS} == "FreeBSD"
                     67:
1.86      rillig     68: SUBST_CLASSES+=                thr
1.47      xtraeme    69: SUBST_STAGE.thr=       post-patch
                     70: SUBST_FILES.thr=       gthread/Makefile.in
1.74      reed       71: .  if ${OS_VERSION:R} >= 5
1.105     wiz        72: SUBST_SED.thr+=                -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-lpthread|g"
1.74      reed       73: .  else
1.105     wiz        74: SUBST_SED.thr+=                -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g"
1.74      reed       75: .  endif
1.93      wiz        76: SUBST_MESSAGE.thr=     Fixing libgthread.
1.47      xtraeme    77:
                     78: .endif
                     79:
1.102     minskim    80: .if !empty(MACHINE_PLATFORM:MDarwin-[56].*-*)
                     81: CONFIGURE_ENV+=                gt_cv_c_wchar_t=no
                     82: .endif
                     83:
1.137     tnn        84: .if ${OPSYS} == "IRIX"
                     85: SUBST_CLASSES+=                        fam-linkage
                     86: SUBST_STAGE.fam-linkage=       pre-configure
                     87: SUBST_MESSAGE.fam-linkage=     Fixing fam linkage
                     88: SUBST_FILES.fam-linkage=       gio/fam/Makefile.in
                     89: SUBST_SED.fam-linkage=         -e 's,^FAM_LIBS =.*$$,FAM_LIBS = -lfam -lC,g'
                     90:
                     91: BUILDLINK_TRANSFORM+=          l:fam:fam:C
                     92: .endif
                     93:
1.122     tnn        94: .if ${OPSYS} == "HPUX"
                     95: CONFIGURE_ENV+=                ac_cv_func_mmap_fixed_mapped=yes
                     96: .endif
                     97:
1.50      jmmv       98: # Handle directories shared with devel/glib.
                     99: PRINT_PLIST_AWK+=      /^@dirrm include\/glib$$/ \
                    100:                                { print "@unexec $${RMDIR} %D/" $$2 \
                    101:                                  " 2>/dev/null || $${TRUE}"; next; }
                    102:
1.35      xtraeme   103: .include "../../converters/libiconv/buildlink3.mk"
                    104: .include "../../devel/gettext-lib/buildlink3.mk"
1.62      grant     105: .include "../../mk/dlopen.buildlink3.mk"
1.131     tnn       106: .if !empty(MACHINE_PLATFORM:MIRIX-5*)
1.90      schwarz   107: CONFIGURE_ARGS+=       --disable-threads
                    108: .else
1.35      xtraeme   109: .include "../../mk/pthread.buildlink3.mk"
1.90      schwarz   110: .endif
1.126     drochner  111: .include "../../devel/pcre/buildlink3.mk"
1.134     tnn       112: PLIST_VARS+=           fam
1.138   ! tnn       113: .if ${OPSYS} == "HPUX" || ${OPSYS} == "OSF1"
1.133     tnn       114: CONFIGURE_ARGS+=       --disable-fam
                    115: .else
1.134     tnn       116: PLIST.fam=             yes
1.133     tnn       117: FAM_ACCEPTED=          fam
                    118: . include "../../mk/fam.buildlink3.mk"
                    119: .endif
1.5       jlam      120:
1.1       dmcmahil  121: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>