aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/linux-f10-gtk2/Makefile
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2005-06-11 22:19:39 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2005-06-11 22:19:39 +0000
commit6d462c16e3d118d33bd359296d55c0b1344b6852 (patch)
treea64ae2a930f5f4f1786c940894d4d545425ef3c7 /x11-toolkits/linux-f10-gtk2/Makefile
parent9b935738dc59cbe8ce752ee97d91586d1649cfc3 (diff)
downloadports-6d462c16e3d118d33bd359296d55c0b1344b6852.tar.gz
ports-6d462c16e3d118d33bd359296d55c0b1344b6852.zip
Notes
Diffstat (limited to 'x11-toolkits/linux-f10-gtk2/Makefile')
-rw-r--r--x11-toolkits/linux-f10-gtk2/Makefile25
1 files changed, 21 insertions, 4 deletions
diff --git a/x11-toolkits/linux-f10-gtk2/Makefile b/x11-toolkits/linux-f10-gtk2/Makefile
index 20f55f863e55..d6256fc5f5df 100644
--- a/x11-toolkits/linux-f10-gtk2/Makefile
+++ b/x11-toolkits/linux-f10-gtk2/Makefile
@@ -7,8 +7,9 @@
PORTNAME= gtk2
PORTVERSION= 2.2.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11-toolkits linux
+MASTER_SITES= http://www.infostrategique.com/linuxrpms/legacy/9/
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= GTK+ library, version 2.X, Linux binary
@@ -24,11 +25,27 @@ BUILD_DEPENDS+= ${LINUXBASE}/usr/lib/libglib-2.0.so.0:${PORTSDIR}/devel/linux-gl
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libX11.so.6:${PORTSDIR}/x11/linux-XFree86-libs \
${BUILD_DEPENDS}
-BASEVERSION= 9
+DIST_SUBDIR= rpm/i386/rh9
+NO_MTREE= yes
ONLY_FOR_ARCHS= i386
-PLIST= ${PKGDIR}/pkg-plist
+PLIST= ${WRKDIR}/plist
RESTRICTED= "binaries under GNU LGPL without accompanying source"
-RPM_SET= gtk2-2.2.1-4.i386.rpm
+RPM_SET= gtk2-2.2.1-4.1.legacy.i386.rpm
+
+pre-install:
+ ${RM} -f ${PLIST}
+.for ii in gtk.immodules gdk-pixbuf.loaders
+ ${ECHO_CMD} etc/gtk-2.0/${ii} >> ${PLIST}
+.endfor
+ ${MKDIR} ${WRKSRC}/tmp
+ cd ${WRKSRC}/tmp; \
+ rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${RPM_SET} | ${CPIO} -id; \
+ ${FIND} * -type f -o -type l >> ${PLIST}; \
+ ${FIND} -d * -type d | ${GREP} -E 'gtk|themes' | \
+ ${SED} -e 's:^:@dirrm :' >> ${PLIST}; \
+ ${FIND} -d * -type d | ${GREP} locale | \
+ ${SED} -e 's:^:@unexec rmdir %D/:;s:$$: 2>/dev/null || true:' \
+ >> ${PLIST}
post-install:
.for ii in gdk-pixbuf-query-loaders gtk-demo gtk-query-immodules-2.0 testgtk testtext