aboutsummaryrefslogtreecommitdiffstats
path: root/devel/linux-f8-sdl12/Makefile
blob: 28845887cf76c4c8eb71ca042da2d706d4670046 (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
# New ports collection makefile for:    linux-sdl
# Date created:             8 October 2001
# Whom:                         Martin Matuska <martin@tradex.sk>
# Based on:     emulators/linux_base by marcel@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   sdl
PORTVERSION=    1.2.5
PORTREVISION=   2
CATEGORIES= devel linux
MASTER_SITES=   http://www.libsdl.org/release/ \
        ftp://ftp.icm.edu.pl/vol/rzm9/linux-pld/pool/s/SDL/
PKGNAMEPREFIX=  linux-
DISTNAME=   ${PORTNAME:U}-${PORTVERSION:S/.1$/-1/}-1.${MACHINE_ARCH}
EXTRACT_SUFX=   .rpm
EXTRACT_ONLY=

MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT=    Cross-platform multi-media development API (linux version)

BUILD_DEPENDS=  rpm:${PORTSDIR}/archivers/rpm
RUN_DEPENDS=    ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1:${PORTSDIR}/x11/linux-XFree86-libs

USE_LINUX_PREFIX=   yes
LDCONFIG_LINUX= ${LINUXBASE}/sbin/ldconfig

ONLY_FOR_ARCHS= i386 alpha
DIST_SUBDIR=    rpm
NO_BUILD=   yes
NO_FILTER_SHLIBS=   yes
PLIST=      ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
MD5_FILE=   ${MASTERDIR}/distinfo.${MACHINE_ARCH}

DBPATH=     /var/lib/rpm
RPMFLAGS=   --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
        --nodeps --replacepkgs
RPMDIR=     ${DISTDIR}/${DIST_SUBDIR}

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha"
BROKEN=     "Unfetchable"
.endif

do-install:
    @${LOCALBASE}/bin/rpm -U ${RPMFLAGS} ${RPMDIR}/${DISTFILES}
    @${LDCONFIG_LINUX}

.include <bsd.port.post.mk>