079ded950c
changes.
78 lines
2.4 KiB
Makefile
78 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.41 2001/12/26 08:32:42 jlam Exp $
|
|
# FreeBSD Id: Makefile,v 1.2 1998/08/06 14:55:12 vanilla Exp
|
|
#
|
|
|
|
DISTNAME= glib-1.2.10
|
|
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/ \
|
|
${MASTER_SITE_GNOME:=stable/sources/glib/}
|
|
|
|
MAINTAINER= tron@netbsd.org
|
|
HOMEPAGE= http://www.gtk.org/docs/glib_toc.html
|
|
COMMENT= Some useful routines for C programming
|
|
|
|
CONFLICTS= gtk+-1.0.*
|
|
|
|
USE_BUILDLINK_ONLY= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib
|
|
|
|
INFO_FILES= glib.info
|
|
|
|
# XXX egcs is still broken on arm32.
|
|
.if (${MACHINE_ARCH} == arm32)
|
|
CFLAGS= -O0
|
|
.endif
|
|
|
|
# GLib needs a working pthreads implementation, and pth is proven to work.
|
|
USE_PTHREAD= native pth
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
GLIB_VERSION= ${DISTNAME:S/glib-//}
|
|
GLIB_MAJOR_VERSION= ${GLIB_VERSION:C/\..*//}
|
|
GLIB_MINOR_VERSION= ${GLIB_VERSION:C/[^.]*\.//:C/\..*//}
|
|
GLIB_MICRO_VERSION= ${GLIB_VERSION:C/.*\.//}
|
|
|
|
# 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" \
|
|
$${file} > $${file}.fixed; \
|
|
${MV} -f $${file}.fixed $${file}; \
|
|
done
|
|
|
|
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}|" \
|
|
$${file} > $${file}.fixed; \
|
|
${MV} $${file}.fixed $${file}; \
|
|
done; \
|
|
${CHMOD} +x config.status
|
|
.if exists(/usr/include/sys/null.h)
|
|
@cd ${WRKSRC}; \
|
|
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
|
|
.endif
|
|
|
|
.include "../../mk/pthread.buildlink.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|