diff options
author | tron <tron@pkgsrc.org> | 2004-02-18 21:29:37 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2004-02-18 21:29:37 +0000 |
commit | ba25819afd30b4a25bc4084830087738121cb444 (patch) | |
tree | 8b9dab66e95a9794a0a2e7c7ea25e7444b6d3369 /pkgtools/rpm2pkg/Makefile | |
parent | 227648818b04ae03a6b948844424a0d8ff3fbaf5 (diff) | |
download | pkgsrc-ba25819afd30b4a25bc4084830087738121cb444.tar.gz |
Update "rpm2pkg" package to version 2.0. Changes since version 1.3:
- added support for RPM archive compress with bzip2 as used by e.g.
SuSE Linux 8.2.
- (hopefully) made portable
- rewrote ugly code for handling "-s" command line option
- converted source to KNF
Diffstat (limited to 'pkgtools/rpm2pkg/Makefile')
-rw-r--r-- | pkgtools/rpm2pkg/Makefile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/pkgtools/rpm2pkg/Makefile b/pkgtools/rpm2pkg/Makefile index b9c3731cdf4..6293c9350b9 100644 --- a/pkgtools/rpm2pkg/Makefile +++ b/pkgtools/rpm2pkg/Makefile @@ -1,13 +1,12 @@ -# $NetBSD: Makefile,v 1.21 2004/02/08 04:03:15 jlam Exp $ +# $NetBSD: Makefile,v 1.22 2004/02/18 21:29:37 tron Exp $ -DISTNAME= rpm2pkg-1.3 -PKGREVISION= 1 +DISTNAME= rpm2pkg-2.0 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty MAINTAINER= tron@NetBSD.org -HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/Packages.txt +HOMEPAGE= http://www.netbsd.org/Documentation/pkgsrc/ COMMENT= Convert RPM archives to NetBSD packages CONFLICTS+= suse-base<=6.4 @@ -16,17 +15,25 @@ WRKSRC= ${WRKDIR} USE_BUILDLINK2= YES NO_CHECKSUM= YES -CFLAGS+= ${BUILDLINK_CPPFLAGS.rpm} -LIBS= -lrpm -lintl -lz +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 do-build: - ${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/rpm2pkg \ + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${WRKSRC}/rpm2pkg \ ${FILESDIR}/rpm2pkg.c ${LIBS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${PREFIX}/sbin ${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 ${PREFIX}/man/man8 +.include "../../archivers/bzip2/buildlink2.mk" .include "../../devel/zlib/buildlink2.mk" .include "../../misc/rpm/buildlink2.mk" |