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

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

1.126   ! drochner    1: # $NetBSD: Makefile,v 1.125 2007/10/29 19:06:04 drochner 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.126   ! drochner    5: DISTNAME=              glib-2.14.3
1.39      jmmv        6: PKGNAME=               ${DISTNAME:S/glib/glib2/}
1.1       dmcmahil    7: CATEGORIES=            devel
1.118     tnn         8: MASTER_SITES=          ftp://ftp.gtk.org/pub/glib/2.14/ \
                      9:                        ftp://ftp.cs.umn.edu/pub/gimp/pub/glib/2.14/ \
                     10:                        ${MASTER_SITE_GNOME:=sources/glib/2.14/}
1.15      grant      11: EXTRACT_SUFX=          .tar.bz2
1.1       dmcmahil   12:
1.117     wiz        13: MAINTAINER=            pkgsrc-users@NetBSD.org
1.119     tron       14: HOMEPAGE=              http://developer.gnome.org/doc/API/2.0/glib/glib.html
1.58      grant      15: COMMENT=               Some useful routines for C programming (glib2)
1.1       dmcmahil   16:
1.49      minskim    17: PKG_INSTALLATION_TYPES=        overwrite pkgviews
1.108     joerg      18: PKG_DESTDIR_SUPPORT=   user-destdir
1.49      minskim    19:
1.14      salo       20: USE_PKGLOCALEDIR=      yes
1.97      jlam       21: USE_TOOLS+=            gmake msgfmt perl:run pkg-config
1.110     jschauma   22: USE_LANGUAGES=         c c++ c99
1.40      jlam       23: USE_LIBTOOL=           yes
1.43      jlam       24: TEST_TARGET=           check
1.8       jlam       25:
1.68      jmmv       26: PKGCONFIG_OVERRIDE=    glib-2.0-uninstalled.pc.in
                     27: PKGCONFIG_OVERRIDE+=   glib-2.0.pc.in
                     28: PKGCONFIG_OVERRIDE+=   gmodule-2.0-uninstalled.pc.in
1.41      jmmv       29: PKGCONFIG_OVERRIDE+=   gmodule-2.0.pc.in
1.68      jmmv       30: PKGCONFIG_OVERRIDE+=   gmodule-export-2.0.pc.in
1.82      jmmv       31: PKGCONFIG_OVERRIDE+=   gmodule-no-export-2.0-uninstalled.pc.in
1.68      jmmv       32: PKGCONFIG_OVERRIDE+=   gmodule-no-export-2.0.pc.in
                     33: PKGCONFIG_OVERRIDE+=   gobject-2.0-uninstalled.pc.in
1.41      jmmv       34: PKGCONFIG_OVERRIDE+=   gobject-2.0.pc.in
1.68      jmmv       35: PKGCONFIG_OVERRIDE+=   gthread-2.0-uninstalled.pc.in
1.41      jmmv       36: PKGCONFIG_OVERRIDE+=   gthread-2.0.pc.in
1.8       jlam       37:
1.81      rillig     38: GNU_CONFIGURE=         yes
1.86      rillig     39: CONFIGURE_ENV+=                PKGLOCALEDIR=${PKGLOCALEDIR:Q}
1.1       dmcmahil   40: CONFIGURE_ARGS+=       --includedir=${PREFIX}/include/glib
1.43      jlam       41: CONFIGURE_ARGS+=       ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
1.91      schwarz    42: CONFIGURE_ARGS.gnu-iconv+=     --with-libiconv=gnu
1.126   ! drochner   43: CONFIGURE_ARGS+=       --with-pcre=system
        !            44: # need pcre utf8 + unicode-properties
        !            45: BUILDLINK_API_DEPENDS.pcre+= pcre>=7.4nb1
1.36      jmmv       46:
1.44      snj        47: # Avoid an ICE in gcc2 on sparc64
1.86      rillig     48: CONFIGURE_ENV+=                F77=${FALSE:Q}
1.44      snj        49:
1.86      rillig     50: CONFIGURE_ENV+=                PERL_PATH=${PERL5:Q}
1.60      gavan      51:
1.126   ! drochner   52: CONFIGURE_ENV+=                ac_cv_func_posix_memalign=no
        !            53:
1.80      jmmv       54: .include "../../mk/bsd.prefs.mk"
                     55:
1.66      recht      56: CPPFLAGS+=             -DPREFIX="\"${PREFIX}\""
                     57: CPPFLAGS+=             -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\""
                     58: CPPFLAGS+=             -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
1.64      jmmv       59:
1.47      xtraeme    60: .if ${OPSYS} == "FreeBSD"
                     61:
1.86      rillig     62: SUBST_CLASSES+=                thr
1.47      xtraeme    63: SUBST_STAGE.thr=       post-patch
                     64: SUBST_FILES.thr=       gthread/Makefile.in
1.74      reed       65: .  if ${OS_VERSION:R} >= 5
1.105     wiz        66: SUBST_SED.thr+=                -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-lpthread|g"
1.74      reed       67: .  else
1.105     wiz        68: SUBST_SED.thr+=                -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g"
1.74      reed       69: .  endif
1.93      wiz        70: SUBST_MESSAGE.thr=     Fixing libgthread.
1.47      xtraeme    71:
                     72: .endif
                     73:
1.102     minskim    74: .if !empty(MACHINE_PLATFORM:MDarwin-[56].*-*)
                     75: CONFIGURE_ENV+=                gt_cv_c_wchar_t=no
                     76: .endif
                     77:
1.122     tnn        78: .if ${OPSYS} == "HPUX"
                     79: CONFIGURE_ENV+=                ac_cv_func_mmap_fixed_mapped=yes
                     80: .endif
                     81:
1.50      jmmv       82: # Handle directories shared with devel/glib.
                     83: PRINT_PLIST_AWK+=      /^@dirrm include\/glib$$/ \
                     84:                                { print "@unexec $${RMDIR} %D/" $$2 \
                     85:                                  " 2>/dev/null || $${TRUE}"; next; }
                     86:
1.35      xtraeme    87: .include "../../converters/libiconv/buildlink3.mk"
                     88: .include "../../devel/gettext-lib/buildlink3.mk"
1.62      grant      89: .include "../../mk/dlopen.buildlink3.mk"
1.123     tnn        90: .if ${OPSYS} == "IRIX"
1.90      schwarz    91: CONFIGURE_ARGS+=       --disable-threads
                     92: .else
1.35      xtraeme    93: .include "../../mk/pthread.buildlink3.mk"
1.90      schwarz    94: .endif
1.126   ! drochner   95: .include "../../devel/pcre/buildlink3.mk"
1.5       jlam       96:
1.1       dmcmahil   97: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>