1999-03-25 23:50:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.15 1999/03/26 04:50:45 marc Exp $
|
1998-06-02 16:44:37 -04:00
|
|
|
|
1999-03-14 18:44:01 -05:00
|
|
|
DISTNAME= gtk+-1.2.0
|
1998-06-02 16:44:37 -04:00
|
|
|
CATEGORIES= x11
|
|
|
|
|
1999-03-16 19:57:45 -05:00
|
|
|
NEED_VERSION= 1.79
|
1999-02-20 23:26:09 -05:00
|
|
|
|
1998-06-02 16:44:37 -04:00
|
|
|
MAINTAINER= marc@openbsd.org
|
|
|
|
|
1999-03-14 18:44:01 -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/
|
|
|
|
|
|
|
|
BUILD_DEPENDS= gettext:${PORTSDIR}/devel/gettext
|
|
|
|
RUN_DEPENDS= gettext:${PORTSDIR}/devel/gettext
|
1999-03-25 23:50:45 -05:00
|
|
|
LIB_DEPENDS= glib.1.2:${PORTSDIR}/devel/glib
|
1998-06-02 16:44:37 -04:00
|
|
|
|
|
|
|
USE_X11= yes
|
1999-03-14 18:44:01 -05:00
|
|
|
USE_PERL5= yes
|
1999-03-16 21:31:26 -05:00
|
|
|
SYSCONFDIR= ${PREFIX}/lib
|
1999-03-21 00:14:23 -05:00
|
|
|
SEPARATE_BUILD= yes
|
1998-06-02 16:44:37 -04:00
|
|
|
GNU_CONFIGURE= yes
|
1999-03-14 18:44:01 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
|
1999-03-16 19:57:45 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-static --sysconfdir=${SYSCONFDIR}
|
1999-03-14 18:44:01 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
|
1999-03-25 23:50:45 -05:00
|
|
|
# People that installed an older version of gtk+ wound up with
|
|
|
|
# libglib.a and other things 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).
|
|
|
|
#
|
|
|
|
pre-extract:
|
|
|
|
@if [ -f ${X11BASE}/lib/libglib.a ]; then \
|
|
|
|
echo "+-------------------"; \
|
|
|
|
echo "| ERROR: you MUST remove the existing gtk+ installation"; \
|
|
|
|
echo "| before installing this version. Run these commands"; \
|
|
|
|
echo "| as user root to remove the package:"; \
|
|
|
|
echo "|"; \
|
|
|
|
echo "| pkg_delete -f `pkg_info -e 'gtk+-*'`"; \
|
|
|
|
echo "| ldconfig ${X11BASE}/lib"; \
|
|
|
|
echo "| ldconfig -m ${LOCALBASE}/lib"; \
|
|
|
|
echo "|"; \
|
|
|
|
echo "+-------------------"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
1998-06-02 16:44:37 -04:00
|
|
|
|
1999-02-16 01:27:37 -05:00
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/docs/*.info
|
|
|
|
|
1998-06-02 16:44:37 -04:00
|
|
|
post-install:
|
1999-03-14 18:44:01 -05:00
|
|
|
@${MKDIR} ${LOCALBASE}/share/aclocal
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/gtk.m4 ${LOCALBASE}/share/aclocal/
|
1998-06-02 16:44:37 -04:00
|
|
|
test -f ${PREFIX}/info/dir || \
|
|
|
|
sed -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir
|
|
|
|
install-info ${PREFIX}/info/gtk.info ${PREFIX}/info/dir
|
|
|
|
install-info ${PREFIX}/info/gdk.info ${PREFIX}/info/dir
|
|
|
|
${LDCONFIG} -m ${PREFIX}/lib
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|