2005-04-11 23:44:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.77 2005/04/11 21:45:23 tv Exp $
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2001-04-26 19:38:28 +02:00
|
|
|
DISTNAME= glib-1.2.10
|
2004-10-05 14:12:57 +02:00
|
|
|
PKGREVISION= 8
|
2000-06-05 02:54:47 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v1.2/ \
|
|
|
|
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v1.2/ \
|
2002-10-19 12:54:42 +02:00
|
|
|
${MASTER_SITE_GNOME:=sources/glib/1.2/}
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= tron@NetBSD.org
|
2002-05-19 00:46:47 +02:00
|
|
|
HOMEPAGE= http://developer.gnome.org/doc/API/glib/index.html
|
2004-10-04 13:19:40 +02:00
|
|
|
COMMENT= Some useful routines for C programming (glib1)
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2000-06-05 02:54:47 +02:00
|
|
|
CONFLICTS= gtk+-1.0.*
|
2000-03-16 13:17:21 +01:00
|
|
|
|
2004-01-05 21:48:01 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2000-06-05 02:54:47 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
2004-02-14 19:26:26 +01:00
|
|
|
PKGCONFIG_OVERRIDE= glib.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= gmodule.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= gthread.pc.in
|
2000-06-05 02:54:47 +02:00
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2000-06-05 02:54:47 +02:00
|
|
|
INFO_FILES= glib.info
|
1998-11-21 17:57:29 +01:00
|
|
|
|
2003-07-12 15:13:46 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2003-03-04 20:53:26 +01:00
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# Force the result of this configure test, because the testing technique
|
|
|
|
# breaks with NetBSD's native libpthread.so.
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
CONFIGURE_ENV+= glib_cv_rtldglobal_broken=no
|
|
|
|
.endif
|
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 3.0
|
1999-05-01 14:22:46 +02:00
|
|
|
.endif
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2001-06-19 08:04:41 +02:00
|
|
|
GLIB_VERSION= ${DISTNAME:S/glib-//}
|
2001-06-19 08:48:50 +02:00
|
|
|
GLIB_MAJOR_VERSION= ${GLIB_VERSION:C/\..*//}
|
|
|
|
GLIB_MINOR_VERSION= ${GLIB_VERSION:C/[^.]*\.//:C/\..*//}
|
|
|
|
GLIB_MICRO_VERSION= ${GLIB_VERSION:C/.*\.//}
|
2001-06-19 08:03:25 +02:00
|
|
|
|
|
|
|
# We patch the version info in the configure scripts for reasons related to
|
|
|
|
# shared library numbering, but we don't want it to leak into the various
|
|
|
|
# installed files. Explicitly replace the version number with the correct
|
|
|
|
# one derived from the package name.
|
|
|
|
#
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
files="glib-config.in docs/glib-config.1.in glib.pc.in gmodule.pc.in gthread.pc.in"; \
|
2004-02-19 18:48:17 +01:00
|
|
|
for f in $${files}; do \
|
2001-06-19 08:03:25 +02:00
|
|
|
${SED} -e "s|@GLIB_VERSION@|${GLIB_VERSION}|g" \
|
|
|
|
-e "s|@VERSION@|${GLIB_VERSION}|g" \
|
2004-02-19 18:48:17 +01:00
|
|
|
$${f} > $${f}.fixed; \
|
|
|
|
${MV} -f $${f}.fixed $${f}; \
|
2001-06-19 08:03:25 +02:00
|
|
|
done
|
|
|
|
|
2001-06-19 08:48:50 +02:00
|
|
|
post-configure:
|
|
|
|
@cd ${WRKSRC}; \
|
2004-02-28 00:57:03 +01:00
|
|
|
files="config.status config.h glibconfig.h"; \
|
2004-02-19 18:48:17 +01:00
|
|
|
for f in $${files}; do \
|
2001-06-19 08:48:50 +02:00
|
|
|
${SED} -e "s|^\(#define.*GLIB_MAJOR_VERSION\).*|\1 ${GLIB_MAJOR_VERSION}|" \
|
|
|
|
-e "s|^\(#define.*GLIB_MINOR_VERSION\).*|\1 ${GLIB_MINOR_VERSION}|" \
|
|
|
|
-e "s|^\(#define.*GLIB_MICRO_VERSION\).*|\1 ${GLIB_MICRO_VERSION}|" \
|
2004-02-19 18:48:17 +01:00
|
|
|
$${f} > $${f}.fixed; \
|
2003-03-04 20:53:26 +01:00
|
|
|
${MV} $${f}.fixed $${f}; \
|
2001-10-06 19:52:21 +02:00
|
|
|
done; \
|
|
|
|
${CHMOD} +x config.status
|
|
|
|
.if exists(/usr/include/sys/null.h)
|
|
|
|
@cd ${WRKSRC}; \
|
2001-12-26 09:32:42 +01:00
|
|
|
files="glib.h"; \
|
2004-02-19 18:48:17 +01:00
|
|
|
for f in $${files}; do \
|
2001-12-26 09:32:42 +01:00
|
|
|
${SED} -e "s|^#define.NULL.*|#include <sys/null.h>|" \
|
2004-02-19 18:48:17 +01:00
|
|
|
$${f} > $${f}.fixed; \
|
2003-03-04 20:53:26 +01:00
|
|
|
${MV} $${f}.fixed $${f}; \
|
2001-12-26 09:32:42 +01:00
|
|
|
done
|
2001-10-06 19:52:21 +02:00
|
|
|
.endif
|
2001-06-19 08:48:50 +02:00
|
|
|
|
2004-01-05 21:48:01 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|