2004-02-18 22:29:37 +01:00
|
|
|
# $NetBSD: Makefile,v 1.22 2004/02/18 21:29:37 tron Exp $
|
2001-01-25 09:57:53 +01:00
|
|
|
|
2004-02-18 22:29:37 +01:00
|
|
|
DISTNAME= rpm2pkg-2.0
|
2001-01-25 09:57:53 +01:00
|
|
|
CATEGORIES= pkgtools
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tron@NetBSD.org
|
2004-02-18 22:29:37 +01:00
|
|
|
HOMEPAGE= http://www.netbsd.org/Documentation/pkgsrc/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Convert RPM archives to NetBSD packages
|
2001-01-25 09:57:53 +01:00
|
|
|
|
|
|
|
CONFLICTS+= suse-base<=6.4
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2002-08-25 21:43:33 +02:00
|
|
|
USE_BUILDLINK2= YES
|
|
|
|
NO_CHECKSUM= YES
|
2001-06-18 23:32:23 +02:00
|
|
|
|
2004-02-18 22:29:37 +01:00
|
|
|
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.bzip2} ${BUILDLINK_CPPFLAGS.rpm} \
|
|
|
|
${BUILDLINK_CPPFLAGS.zlib}
|
|
|
|
LIBS= -lrpm -lintl -lz -lbz2
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if (${CC} == gcc)
|
|
|
|
CFLAGS+= -Wall
|
|
|
|
.endif
|
2001-01-25 09:57:53 +01:00
|
|
|
|
|
|
|
do-build:
|
2004-02-18 22:29:37 +01:00
|
|
|
${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${WRKSRC}/rpm2pkg \
|
2002-09-19 04:46:07 +02:00
|
|
|
${FILESDIR}/rpm2pkg.c ${LIBS}
|
2001-01-25 09:57:53 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${PREFIX}/sbin
|
2001-01-28 11:44:39 +01:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 ${PREFIX}/man/man8
|
2001-01-25 09:57:53 +01:00
|
|
|
|
2004-02-18 22:29:37 +01:00
|
|
|
.include "../../archivers/bzip2/buildlink2.mk"
|
2002-08-25 21:43:33 +02:00
|
|
|
.include "../../devel/zlib/buildlink2.mk"
|
|
|
|
.include "../../misc/rpm/buildlink2.mk"
|
|
|
|
|
2001-01-25 09:57:53 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|