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

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

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

CVSweb <webmaster@jp.NetBSD.org>