summaryrefslogtreecommitdiff
path: root/graphics/linux-f10-tiff/Makefile
blob: 640efae1f05a911117811137ee5242d0c62fa6c9 (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-tiff
# Date created:		2001.02.08
# Whom:                 taoka@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	tiff
PORTVERSION=	3.6.1
CATEGORIES=	graphics linux
MASTER_SITES=	${MASTER_SITE_SUSE}
MASTER_SITE_SUBDIR=	i386/9.2/suse/i586
PKGNAMEPREFIX=	linux-
DISTNAME=	libtiff-3.6.1-47.3.i586.rpm
EXTRACT_ONLY=
EXTRACT_SUFX=

MAINTAINER=	freebsd-emulation@FreeBSD.org
COMMENT=	TIFF library, Linux/i386 binary

BUILD_DEPENDS=	rpm:${PORTSDIR}/archivers/rpm

DIST_SUBDIR=	rpm/i386/suse/9.2
DOCDIRS=	usr/share/doc/libtiff-3.6.1
NO_FILTER_SHLIBS=	yes
ONLY_FOR_ARCHS=	amd64 i386
PLIST=		${WRKDIR}/plist
PLIST_DIRS=	usr/share/doc/packages/libtiff usr/share/doc/packages
PLIST_FILES=	usr/lib/libtiff.so.3 usr/lib/libtiff.so.3.6.1 \
		usr/share/doc/packages/libtiff/COPYRIGHT \
		usr/share/doc/packages/libtiff/README
PREFIX=		${LINUXBASE}
USE_LINUX?=	yes

# dummy target so rpm can be in BUILD_DEPENDS
do-build:
	@${DO_NADA}

do-install:
	${MKDIR} ${WRKSRC}
	@rpm -U --ignorearch --ignoreos --root ${PREFIX} --dbpath /var/lib/rpm \
		--nodeps --replacepkgs ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} \
		|| ${TRUE}

post-install:
	@${RM} -f ${LINUXBASE}/etc/ld.so.cache
	@${FIND} ${LINUXBASE} -name lib -type d | ${SED} 's:${LINUXBASE}::g' \
		> ${LINUXBASE}/etc/ld.so.conf
	@chroot ${LINUXBASE} sbin/ldconfig

.include <bsd.port.mk>