aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/linux-f8-gtk/Makefile
blob: c2fefd0942d19a72c34d14bd67a14ae51409e48a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for: linux-gtk
# Version required:     1.2.x
# Date created:         8 April 2000
# Whom:                 sada@FreeBSD.org
# Based on:     emulators/linux_base by marcel@FreeBSD.org
#           & graphics/xmovie by sanpei@sanpei.org
#
# $FreeBSD$
#

PORTNAME?=  gtk
PORTVERSION?=   1.2
CATEGORIES?=    x11-toolkits linux
MASTER_SITES=   ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
PKGNAMEPREFIX=  linux-
DISTFILES=  ${RPM_SET}

MAINTAINER= ports@FreeBSD.org

BUILD_DEPENDS=  rpm:${PORTSDIR}/misc/rpm
.if (${MACHINE_ARCH} == "i386")
RUN_DEPENDS=    /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
.elif (${MACHINE_ARCH} == "alpha")
RUN_DEPENDS=    /compat/linux/lib/libc.so.6.1:${PORTSDIR}/emulators/linux_base
.endif

ONLY_FOR_ARCHS= i386 alpha
DIST_SUBDIR=    rpm
EXTRACT_ONLY=
NO_BUILD=   yes
NO_FILTER_SHLIBS=   yes
NO_MTREE=   yes
PLIST=      ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
MD5_FILE=   ${MASTERDIR}/distinfo.${MACHINE_ARCH}
PREFIX=     /compat/linux

RPM_MIRRORS=    ftp://ftp.freesoftware.com/pub/linux/redhat/old-releases/__DIR__/ \
        ftp://ftp.freesoftware.com/pub/linux/redhat/__DIR__/
STDDIR=     redhat-6.1/${MACHINE_ARCH}/RedHat/RPMS
UPDDIR=     updates/6.1/${MACHINE_ARCH}
.if (${MACHINE_ARCH} == "i386")
RPM_SET?=   gtk+-1.2.5-2.${MACHINE_ARCH}.rpm
.elif (${MACHINE_ARCH} == "alpha")
RPM_SET?=   gtk+-1.2.6-1.${MACHINE_ARCH}.rpm
.endif
DBPATH=     /var/lib/rpm
RPMFLAGS=   --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
        --nodeps --replacepkgs
RPMDIR=     ${DISTDIR}/${DIST_SUBDIR}

do-install:
    @for R in ${RPM_SET}; do \
        ${ECHO} $$R; \
        rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
    done

.include <bsd.port.mk>