summaryrefslogtreecommitdiff
path: root/pkgtools/rpm2pkg/Makefile
blob: f710cc29f55d723e0958aa946874f900fc9af797 (plain)
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
# $NetBSD: Makefile,v 1.10 2001/07/14 07:38:29 jlam Exp $

DISTNAME=	rpm2pkg-1.2
CATEGORIES=	pkgtools
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	tron@netbsd.org
HOMEPAGE=	ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt
COMMENT=	Convert RPM archives to NetBSD packages

CONFLICTS+=	suse-base<=6.4

USE_BUILDLINK_ONLY=	YES
NO_CHECKSUM=		YES
WRKSRC=			${WRKDIR}

RPMLIB=		${BUILDLINK_DIR}/lib/librpm.a

CFLAGS+=	-I${BUILDLINK_DIR}/include/rpm
LIBS=		${RPMLIB} -lintl -lz

do-build:
	${CC} ${FILESDIR}/rpm2pkg.c ${CFLAGS} ${LDFLAGS} ${LIBS}	\
		-o ${WRKSRC}/rpm2pkg

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${PREFIX}/sbin
	${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 ${PREFIX}/man/man8

.include "../../devel/zlib/buildlink.mk"
.include "../../misc/rpm/buildlink.mk"
.include "../../mk/bsd.pkg.mk"