2002-08-25 20:38:05 +02:00
|
|
|
# $NetBSD: Makefile,v 1.49 2002/08/25 18:38:27 jlam 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
|
|
|
# FreeBSD Id: Makefile,v 1.2 1998/08/06 14:55:12 vanilla Exp
|
|
|
|
#
|
|
|
|
|
2001-04-26 19:38:28 +02:00
|
|
|
DISTNAME= glib-1.2.10
|
2002-08-08 18:17:04 +02:00
|
|
|
PKGREVISION= 3
|
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/ \
|
|
|
|
http://www.ameth.org/gimp/pub/gtk/v1.2/ \
|
2001-04-27 13:46:34 +02:00
|
|
|
${MASTER_SITE_GNOME:=stable/sources/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
|
|
|
MAINTAINER= tron@netbsd.org
|
2002-05-19 00:46:47 +02:00
|
|
|
HOMEPAGE= http://developer.gnome.org/doc/API/glib/index.html
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= Some useful routines for C programming
|
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
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
USE_BUILDLINK2= yes
|
2000-06-05 02:54:47 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
|
|
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
|
2002-02-18 16:14:00 +01:00
|
|
|
TEXINFO_OVERRIDE= YES
|
1998-11-21 17:57:29 +01:00
|
|
|
|
1999-05-01 14:22:46 +02:00
|
|
|
# XXX egcs is still broken on arm32.
|
|
|
|
.if (${MACHINE_ARCH} == arm32)
|
|
|
|
CFLAGS= -O0
|
|
|
|
.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
|
|
|
|
2002-08-01 07:48:00 +02:00
|
|
|
PTHREAD_OPTS+= require
|
2001-01-13 10:42:45 +01: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"; \
|
|
|
|
for file in $${files}; do \
|
|
|
|
${SED} -e "s|@GLIB_VERSION@|${GLIB_VERSION}|g" \
|
|
|
|
-e "s|@VERSION@|${GLIB_VERSION}|g" \
|
2001-12-26 09:32:42 +01:00
|
|
|
$${file} > $${file}.fixed; \
|
|
|
|
${MV} -f $${file}.fixed $${file}; \
|
2001-06-19 08:03:25 +02:00
|
|
|
done
|
|
|
|
|
2001-06-19 08:48:50 +02:00
|
|
|
post-configure:
|
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
files="config.status config.h glibconfig.h"; \
|
|
|
|
for file in $${files}; do \
|
|
|
|
${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}|" \
|
2001-12-26 09:32:42 +01:00
|
|
|
$${file} > $${file}.fixed; \
|
|
|
|
${MV} $${file}.fixed $${file}; \
|
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"; \
|
|
|
|
for file in $${files}; do \
|
|
|
|
${SED} -e "s|^#define.NULL.*|#include <sys/null.h>|" \
|
|
|
|
$${file} > $${file}.fixed; \
|
|
|
|
${MV} $${file}.fixed $${file}; \
|
|
|
|
done
|
2001-10-06 19:52:21 +02:00
|
|
|
.endif
|
2001-06-19 08:48:50 +02:00
|
|
|
|
2002-03-21 13:20:29 +01:00
|
|
|
test: build
|
|
|
|
cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_PROGRAM} check 2>&1 | \
|
|
|
|
tee ${WRKDIR}/check.log
|
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
.include "../../mk/pthread.buildlink2.mk"
|
2002-02-18 16:14:00 +01:00
|
|
|
.include "../../mk/texinfo.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"
|