aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/linux-libmng/Makefile
blob: 8429247003be23f281e5c3035be822b5762524f0 (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
# New ports collection makefile for: linux-libmng
# Date created:     01/09/18
# Whom:                 mranner@inode.at
#
# $FreeBSD$
#

PORTNAME=       libmng
PORTVERSION=    1.0.4
PORTREVISION=   2
CATEGORIES=     graphics linux
MASTER_SITES?=  ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
PKGNAMEPREFIX=  linux-
DISTNAME=       libmng-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX=   .rpm
EXTRACT_ONLY=

MAINTAINER=     mranner@inode.at
COMMENT=        RPM of libmng

BUILD_DEPENDS=  rpm:${PORTSDIR}/archivers/rpm
RUN_DEPENDS=    ${LINUXBASE}/usr/lib/libjpeg.so.62:${PORTSDIR}/graphics/linux-jpeg

BASEVERSION=    8.0
USE_LINUX=  yes
USE_LINUX_PREFIX=   yes
ONLY_FOR_ARCHS= i386

DIST_SUBDIR=    rpm
NO_BUILD=   yes
PLIST?=     ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
MD5_FILE?=  ${MASTERDIR}/distinfo.${MACHINE_ARCH}

# Let's avoid hardcoding 'en' as the language.
LANG?=      en
RPM_MIRRORS=    \
    ftp://ftp.redhat.com/pub/redhat/__DIR__/ \
    ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ \
    ftp://ftp.mirrorservice.org/sites/ftp.redhat.com/pub/redhat/__DIR__/
STDDIR=     linux/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}/RedHat/RPMS
UPDDIR=     linux/updates/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}
DBPATH=     /var/lib/rpm
RPMFLAGS=   --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
        --nodeps --replacepkgs
RPMDIR=     ${DISTDIR}/${DIST_SUBDIR}

do-install:
    @for R in ${DISTFILES}; do \
        ${ECHO_MSG} $$R; \
        rpm -U ${RPMFLAGS} ${RPMDIR}/$$R || true ; \
    done

.include <bsd.port.mk>