pkgsrc/x11/gtk/Makefile

76 lines
2.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.100 2004/02/14 18:26:29 jmmv Exp $
DISTNAME= gtk+-1.2.10
PKGREVISION= 6
2000-06-05 03:12:37 +02:00
CATEGORIES= x11
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v1.2/ \
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v1.2/ \
2002-12-19 14:07:42 +01:00
${MASTER_SITE_GNOME:=sources/gtk+/1.2/}
2003-07-18 00:50:55 +02:00
MAINTAINER= tech-pkg@NetBSD.org
2000-06-05 03:12:37 +02:00
HOMEPAGE= http://www.gtk.org/
2003-08-08 11:33:13 +02:00
COMMENT= The GIMP Toolkit - libraries for building X11 user interfaces
2004-01-07 11:06:28 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
.include "../../mk/bsd.prefs.mk"
2004-01-07 11:06:28 +01:00
BUILD_USES_MSGFMT= yes
USE_PERL5= build
2000-06-05 03:12:37 +02:00
USE_X11BASE= yes
USE_GNU_TOOLS+= make
2003-04-27 14:51:35 +02:00
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE= gdk.pc.in
PKGCONFIG_OVERRIDE+= gtk+.pc.in
2003-05-19 12:22:47 +02:00
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-xinput=xfree \
--with-native-locale=yes \
--sysconfdir=${X11PREFIX}/share
CONFIGURE_ENV+= X_LDFLAGS="${X_LDFLAGS}"
2000-06-05 03:12:37 +02:00
INFO_FILES= gdk.info gtk.info
MAKE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}"
2000-06-05 03:12:37 +02:00
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
# The following ensures that `gtk-config --libs' includes the correct linker
# flags for linking the X11 libs.
#
X_LDFLAGS= ${X11_LDFLAGS}
GTK_VERSION= ${DISTNAME:S/gtk+-//}
GTK_MAJOR_VERSION= ${GTK_VERSION:C/\..*//}
GTK_MINOR_VERSION= ${GTK_VERSION:C/[^.]*\.//:C/\..*//}
GTK_MICRO_VERSION= ${GTK_VERSION:C/.*\.//}
.if ${PKG_INSTALLATION_TYPE} == "overwrite"
USE_PKGINSTALL= yes
DEINSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL
INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL
.endif
# 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="gtk-config.in docs/gtk-config.1.in gdk.pc.in gtk+.pc.in gtk/gtkfeatures.h.in"; \
for file in $${files}; do \
${MV} -f $${file} $${file}.fixme; \
${SED} -e "s|@GTK_MAJOR_VERSION@|${GTK_MAJOR_VERSION}|g" \
-e "s|@GTK_MINOR_VERSION@|${GTK_MINOR_VERSION}|g" \
-e "s|@GTK_MICRO_VERSION@|${GTK_MICRO_VERSION}|g" \
-e "s|@VERSION@|${GTK_VERSION}|g" \
$${file}.fixme > $${file}; \
${RM} $${file}.fixme; \
done
2004-01-07 11:06:28 +01:00
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"