2003-11-18 21:40:47 -05:00
|
|
|
# New ports collection makefile for: linux-gtk2
|
|
|
|
# Date created: 2003-11-19
|
|
|
|
# Whom: trevor
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gtk2
|
|
|
|
PORTVERSION= 2.2.1
|
2003-11-19 16:17:13 -05:00
|
|
|
PORTREVISION= 1
|
2003-11-18 21:40:47 -05:00
|
|
|
CATEGORIES= x11-toolkits linux
|
|
|
|
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
|
|
COMMENT= GTK+ library, version 2.X, i386 Linux binary
|
|
|
|
|
|
|
|
BASEVERSION= 9
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
PLIST= ${WRKDIR}/plist
|
|
|
|
RESTRICTED= "binaries under GNU LGPL without accompanying source"
|
|
|
|
RPM_SET= gtk2-2.2.1-4.i386.rpm
|
|
|
|
|
|
|
|
pre-install:
|
2003-11-19 16:17:13 -05:00
|
|
|
${RM} -f ${PLIST}
|
|
|
|
.for ii in gtk.immodules gdk-pixbuf.loaders
|
|
|
|
${ECHO_CMD} etc/gtk-2.0/${ii} >> ${PLIST}
|
|
|
|
.endfor
|
2003-11-18 21:40:47 -05:00
|
|
|
${RM} -rf ${WRKSRC}/tmp
|
|
|
|
${MKDIR} ${WRKSRC}/tmp
|
|
|
|
cd ${WRKSRC}/tmp; \
|
2004-02-08 13:11:15 -05:00
|
|
|
rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${RPM_SET} | cpio -id; \
|
2003-11-19 16:17:13 -05:00
|
|
|
${FIND} * -type f -o -type l >> ${PLIST}; \
|
|
|
|
${FIND} -d * -type d | ${GREP} -E 'locale|gtk|themes' | \
|
|
|
|
${SED} -e 's:^:@dirrm :' >> ${PLIST}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/gtk.immodules ${PREFIX}/etc/gtk-2.0/
|
|
|
|
${TOUCH} ${PREFIX}/etc/gtk-2.0/gdk-pixbuf.loaders
|
2003-11-18 21:40:47 -05:00
|
|
|
|
|
|
|
.include "../linux-gtk/Makefile"
|