pkgsrc/pkgtools/rpm2pkg/Makefile
tron 12956aee94 Update "rpm2pkg" package to version 3.1.2 (*sigh*):
Fix bug in last change which broke extracting RPMs via "lzcat" (which is
now also used for uncompressed RPMs).
2010-09-05 01:22:29 +00:00

50 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.49 2010/09/05 01:22:29 tron Exp $
DISTNAME= rpm2pkg-3.1.2
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
NO_CHECKSUM= yes
OWNER= tron@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/
COMMENT= Convert RPM archives to NetBSD packages
LICENSE= modified-bsd
CONFLICTS+= suse-base<=6.4
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c99
USE_TOOLS+= lzcat:run
WRKSRC= ${WRKDIR}
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.bzip2} ${BUILDLINK_CPPFLAGS.rpm} \
${BUILDLINK_CPPFLAGS.zlib} -DLZCAT=\"${TOOLS_PATH.lzcat:Q}\"
LIBS+= -lintl -lz -lbz2
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-*)
CFLAGS+= -Wall -Wshadow -Wsign-compare -Wunused-value
.endif
CFLAGS+= -g
LDFLAGS+= -g
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 "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"