blob: 00d465d824cb390288e1529991adadf68792eb42 (
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
34
35
36
37
|
# $NetBSD: Makefile,v 1.4 2001/02/17 17:51:33 wiz Exp $
DISTNAME= rpm2pkg-1.1
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
BUILD_DEPENDS+= ${RPMLIB}:../../misc/rpm
CONFLICTS+= suse-base<=6.4
NO_CHECKSUM= YES
WRKSRC= ${WRKDIR}
RPMLIB= ${LOCALBASE}/lib/librpm.a
# librpm.a needs libintl.a
USE_LIBINTL= YES
.if exists(/usr/include/libintl.h)
LIBINTL= -lintl
.else
LIBINTL= -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lintl
.endif
do-build:
${CC} ${FILESDIR}/rpm2pkg.c ${CFLAGS} -I${PREFIX}/include/rpm \
${RPMLIB} -lz ${LIBINTL} -o ${WRKSRC}/rpm2pkg
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${PREFIX}/sbin
${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 ${PREFIX}/man/man8
.include "../../mk/bsd.pkg.mk"
|