1999-03-25 23:40:53 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.10 1999/03/26 04:40:53 brad Exp $
|
1999-02-27 10:32:39 -05:00
|
|
|
|
1999-03-25 23:40:01 -05:00
|
|
|
DISTNAME= glib-1.2.1
|
1999-03-16 16:06:20 -05:00
|
|
|
CATEGORIES= devel
|
1999-02-27 10:32:39 -05:00
|
|
|
|
1999-03-16 16:06:20 -05:00
|
|
|
NEED_VERSION= 1.73
|
1999-02-27 10:32:39 -05:00
|
|
|
|
1999-03-16 16:06:20 -05:00
|
|
|
MAINTAINER= rohee@OpenBSD.ORG
|
1999-02-27 10:32:39 -05:00
|
|
|
|
1999-03-16 16:06:20 -05:00
|
|
|
MASTER_SITES= ftp://ftp.gimp.org/pub/gtk/v1.2/ \
|
|
|
|
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v1.2/ \
|
|
|
|
http://www.ameth.org/gimp/gtk/v1.2/
|
1999-02-27 10:32:39 -05:00
|
|
|
|
1999-03-17 20:15:21 -05:00
|
|
|
SEPARATE_BUILD= yes
|
1999-03-16 16:06:20 -05:00
|
|
|
GNU_CONFIGURE= yes
|
1999-03-25 23:40:53 -05:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+=--enable-static --disable-threads
|
1999-03-16 16:06:20 -05:00
|
|
|
|
1999-03-25 15:14:42 -05:00
|
|
|
# People that installed an older version of gtk+ wound up with
|
|
|
|
# libglib.a and libglib.so.1.6 in /usr/X11R6/lib... these files
|
|
|
|
# MUST be removed as the version was incorrect (it came from 1.0.6
|
|
|
|
# sources). Check that out here (and bitch if necessary).
|
|
|
|
#
|
1999-03-25 18:48:37 -05:00
|
|
|
pre-extract:
|
1999-03-25 15:14:42 -05:00
|
|
|
@if [ -f ${X11BASE}/lib/libglib.a ]; then \
|
|
|
|
echo "+-------------------"; \
|
|
|
|
echo "| ERROR: you MUST remove the existing glib installation"; \
|
1999-03-25 20:53:44 -05:00
|
|
|
echo "| before installing this version. Glib was installed as"; \
|
|
|
|
echo "| part of an older version of gtk+. To fully remove run"; \
|
|
|
|
echo "| these commands as user root"; \
|
1999-03-25 15:14:42 -05:00
|
|
|
echo "|"; \
|
1999-03-25 20:53:44 -05:00
|
|
|
echo "| pkg_delete -f `pkg_info -e 'gtk+-*'`"; \
|
1999-03-25 20:55:53 -05:00
|
|
|
echo "| ldconfig ${X11BASE}/lib"; \
|
|
|
|
echo "| ldconfig -m ${LOCALBASE}/lib"; \
|
1999-03-25 15:14:42 -05:00
|
|
|
echo "|"; \
|
|
|
|
echo "+-------------------"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
1999-03-25 18:48:37 -05:00
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/docs/*.info
|
|
|
|
|
1999-02-27 10:32:39 -05:00
|
|
|
post-install:
|
1999-03-16 16:06:20 -05:00
|
|
|
@${MKDIR} ${LOCALBASE}/share/aclocal
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/glib.m4 ${LOCALBASE}/share/aclocal/
|
|
|
|
test -f ${PREFIX}/info/dir || \
|
|
|
|
sed -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir
|
|
|
|
install-info ${PREFIX}/info/glib.info ${PREFIX}/info/dir
|
1999-02-27 10:32:39 -05:00
|
|
|
${LDCONFIG} -m ${PREFIX}/lib
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|