pkgsrc/pkgtools/rpm2pkg/Makefile
tron a07d62d8a7 Update "rpm2pkg" package to version 2.2. Changes since version 2.1.1:
- Switch to 2-clause BSD license.
- Compile with extra warnings (again) if GCC is used as the compiler.
- Fix build warnings reported by "-Wsign-compare".
2009-04-23 21:38:02 +00:00

46 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.41 2009/04/23 21:38:02 tron Exp $
DISTNAME= rpm2pkg-2.2
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
OWNER= tron@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/
COMMENT= Convert RPM archives to NetBSD packages
CONFLICTS+= suse-base<=6.4
LICENSE= modified-bsd
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.bzip2} ${BUILDLINK_CPPFLAGS.rpm} \
${BUILDLINK_CPPFLAGS.zlib}
LIBS+= -lrpm -lintl -lz -lbz2
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-*)
CFLAGS+= -Wall -Wshadow -Wsign-compare -Wunused-value
.endif
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
do-build:
cd ${WRKSRC}; ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o rpm2pkg \
${FILESDIR}/rpm2pkg.c ${LIBS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${DESTDIR}${PREFIX}/sbin
${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../misc/rpm/buildlink3.mk"
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"