pkgsrc/pkgtools/rpm2pkg/Makefile

45 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.43 2009/06/14 22:44:34 joerg Exp $
DISTNAME= rpm2pkg-2.3
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
LICENSE= modified-bsd
CONFLICTS+= suse-base<=6.4
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"