# New ports collection makefile for: linux-gtk # Date created: 8 April 2000 # Whom: sada@FreeBSD.org # Based on: emulators/linux_base by marcel@FreeBSD.org # & multimedia/xmovie by sanpei@sanpei.org # # $FreeBSD$ # PORTNAME?= gtk PORTVERSION?= 1.2 PORTREVISION?= 5 CATEGORIES?= x11-toolkits linux MASTER_SITES?= ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g} PKGNAMEPREFIX= linux- DISTFILES= ${RPM_SET} MAINTAINER?= freebsd-emulation@FreeBSD.org COMMENT?= RPM of the Gtk lib BUILD_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm # XXX: I haven't checked if every port which includes this Makefile needs # USE_XLIB, so let it be a RUN_DEPENDS?= until the refactoring of the # RPM bits. RUN_DEPENDS?= ${LINUXBASE}/usr/X11R6/lib/libX11.so.6:${PORTSDIR}/x11/linux-XFree86-libs ONLY_FOR_ARCHS?= i386 alpha amd64 USE_LINUX= yes USE_LINUX_PREFIX= yes .include .if (${ARCH} == "amd64") ARCH= i386 RPMFLAGS+= --ignorearch .endif DIST_SUBDIR?= rpm EXTRACT_ONLY= NO_BUILD= yes PLIST?= ${PKGDIR}/pkg-plist.${ARCH} MD5_FILE?= ${MASTERDIR}/distinfo.${ARCH} LINUX_LDCONFIG?=${LINUXBASE}/sbin/ldconfig # Let's avoid hardcoding 'en' as the language. LANG= en # Set the version of linux_base BASEVERSION?= 7.1 RPM_MIRRORS= \ ftp://ftp.redhat.com/pub/redhat/__DIR__/ \ ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ STDDIR= linux/${BASEVERSION}/${LANG}/os/${ARCH}/RedHat/RPMS UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${ARCH} .if (${ARCH} == "i386") RPM_SET?= gtk+-1.2.9-4.${ARCH}.rpm .elif (${ARCH} == "alpha") RPM_SET?= gtk+-1.2.9-4.${ARCH}.rpm .endif DBPATH= /var/lib/rpm RPMFLAGS+= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \ --nodeps --replacepkgs --oldpackage RPMDIR= ${DISTDIR}/${DIST_SUBDIR} do-install: @for R in ${RPM_SET}; do \ ${ECHO_MSG} $$R; \ rpm -U ${RPMFLAGS} ${RPMDIR}/$$R || true ; \ done @${LINUX_LDCONFIG} new-plist: @${RM} -rf ${WRKSRC}/tmp @${MKDIR} ${WRKSRC}/tmp @cd ${WRKSRC}/tmp; \ rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${RPM_SET} | ${CPIO} -id; \ ${FIND} * -type f -o -type l > ${PLIST}.new; \ ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' \ >> ${PLIST}.new .include