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

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

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

CVSweb <webmaster@jp.NetBSD.org>